From 7d34de88f1752c1119f33a444b5383c8510e78e5 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Fri, 22 Jul 2022 17:43:27 +0000 Subject: [PATCH] tint/test-runner: Split expectations for FXC and DXC Change tint's `--fxc` flag to take the path of the FXC compiler DLL. Have tint attempt to validate with both FXC and DXC if `--validate` is passed. Fix the 'dirsWithNoPassExpectations' logic which looks like it got broken with the tint -> dawn merge. It also incorrectly applied filepath.FromSlash() on windows. Change-Id: I0f46aa5c21bc48a2abc48402c41f846aff4a8633 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96800 Reviewed-by: Antonio Maiorano Commit-Queue: Ben Clayton --- infra/kokoro/windows/build.bat | 12 +- src/tint/cmd/main.cc | 98 +- src/tint/utils/io/command_windows.cc | 35 +- src/tint/val/hlsl.cc | 6 +- src/tint/val/val.h | 8 +- ...d.hlsl => matrix.spvasm.expected.dxc.hlsl} | 0 .../let/matrix.spvasm.expected.fxc.hlsl | 10 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../access/let/matrix.wgsl.expected.fxc.hlsl | 7 + ...d.hlsl => vector.spvasm.expected.dxc.hlsl} | 0 .../let/vector.spvasm.expected.fxc.hlsl | 12 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../access/let/vector.wgsl.expected.fxc.hlsl | 8 + ...d.hlsl => matrix.spvasm.expected.dxc.hlsl} | 0 .../var/matrix.spvasm.expected.fxc.hlsl | 12 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../access/var/matrix.wgsl.expected.fxc.hlsl | 7 + ...d.hlsl => vector.spvasm.expected.dxc.hlsl} | 0 .../var/vector.spvasm.expected.fxc.hlsl | 15 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../access/var/vector.wgsl.expected.fxc.hlsl | 8 + ...gn_to_function_var.wgsl.expected.dxc.hlsl} | 0 ...ign_to_function_var.wgsl.expected.fxc.hlsl | 70 + ...ign_to_private_var.wgsl.expected.dxc.hlsl} | 0 ...sign_to_private_var.wgsl.expected.fxc.hlsl | 70 + ...ign_to_storage_var.wgsl.expected.dxc.hlsl} | 0 ...sign_to_storage_var.wgsl.expected.fxc.hlsl | 107 + ... assign_to_subexpr.wgsl.expected.dxc.hlsl} | 0 .../assign_to_subexpr.wgsl.expected.fxc.hlsl | 20 + ...n_to_workgroup_var.wgsl.expected.dxc.hlsl} | 0 ...gn_to_workgroup_var.wgsl.expected.fxc.hlsl | 70 + ...function_parameter.wgsl.expected.dxc.hlsl} | 0 .../function_parameter.wgsl.expected.fxc.hlsl | 22 + ...nction_return_type.wgsl.expected.dxc.hlsl} | 0 ...unction_return_type.wgsl.expected.fxc.hlsl | 30 + ...ected.hlsl => size.wgsl.expected.dxc.hlsl} | 0 test/tint/array/size.wgsl.expected.fxc.hlsl | 9 + ....hlsl => strides.spvasm.expected.dxc.hlsl} | 0 .../array/strides.spvasm.expected.fxc.hlsl | 103 + ...> type_constructor.wgsl.expected.dxc.hlsl} | 0 .../type_constructor.wgsl.expected.fxc.hlsl | 37 + ...ected.hlsl => read.wgsl.expected.dxc.hlsl} | 0 .../dynamic_index/read.wgsl.expected.fxc.hlsl | 42 + ...cted.hlsl => write.wgsl.expected.dxc.hlsl} | 0 .../write.wgsl.expected.fxc.hlsl | 44 + ...ected.hlsl => read.wgsl.expected.dxc.hlsl} | 0 .../static_index/read.wgsl.expected.fxc.hlsl | 44 + ...cted.hlsl => write.wgsl.expected.dxc.hlsl} | 0 .../static_index/write.wgsl.expected.fxc.hlsl | 46 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../types/array.wgsl.expected.fxc.hlsl | 28 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../storage/types/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../storage/types/i32.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => mat2x2.wgsl.expected.dxc.hlsl} | 0 .../types/mat2x2.wgsl.expected.fxc.hlsl | 17 + ...ted.hlsl => mat2x3.wgsl.expected.dxc.hlsl} | 0 .../types/mat2x3.wgsl.expected.fxc.hlsl | 17 + ...ted.hlsl => mat3x2.wgsl.expected.dxc.hlsl} | 0 .../types/mat3x2.wgsl.expected.fxc.hlsl | 18 + ...ted.hlsl => mat4x4.wgsl.expected.dxc.hlsl} | 0 .../types/mat4x4.wgsl.expected.fxc.hlsl | 19 + ...l => runtime_array.wgsl.expected.dxc.hlsl} | 0 .../runtime_array.wgsl.expected.fxc.hlsl | 21 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../types/struct.wgsl.expected.fxc.hlsl | 33 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../storage/types/u32.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => vec2.wgsl.expected.dxc.hlsl} | 0 .../storage/types/vec2.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => vec3.wgsl.expected.dxc.hlsl} | 0 .../storage/types/vec3.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => vec4.wgsl.expected.dxc.hlsl} | 0 .../storage/types/vec4.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => read.wgsl.expected.dxc.hlsl} | 0 .../dynamic_index/read.wgsl.expected.fxc.hlsl | 65 + ...ected.hlsl => read.wgsl.expected.dxc.hlsl} | 0 .../static_index/read.wgsl.expected.fxc.hlsl | 57 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../types/array.wgsl.expected.fxc.hlsl | 21 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/i32.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => mat2x2.wgsl.expected.dxc.hlsl} | 0 .../types/mat2x2.wgsl.expected.fxc.hlsl | 17 + ...ted.hlsl => mat2x3.wgsl.expected.dxc.hlsl} | 0 .../types/mat2x3.wgsl.expected.fxc.hlsl | 15 + ...ted.hlsl => mat3x2.wgsl.expected.dxc.hlsl} | 0 .../types/mat3x2.wgsl.expected.fxc.hlsl | 19 + ...ted.hlsl => mat4x4.wgsl.expected.dxc.hlsl} | 0 .../types/mat4x4.wgsl.expected.fxc.hlsl | 17 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../types/struct.wgsl.expected.fxc.hlsl | 27 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/u32.wgsl.expected.fxc.hlsl | 9 + ...ected.hlsl => vec2.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/vec2.wgsl.expected.fxc.hlsl | 9 + ...ected.hlsl => vec3.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/vec3.wgsl.expected.fxc.hlsl | 9 + ...ected.hlsl => vec4.wgsl.expected.dxc.hlsl} | 0 .../uniform/types/vec4.wgsl.expected.fxc.hlsl | 9 + ...ed.hlsl => 1221120.wgsl.expected.dxc.hlsl} | 0 .../chromium/1221120.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => 1236161.wgsl.expected.dxc.hlsl} | 0 .../chromium/1236161.wgsl.expected.fxc.hlsl | 19 + ...ed.hlsl => 1251009.wgsl.expected.dxc.hlsl} | 0 .../chromium/1251009.wgsl.expected.fxc.hlsl | 33 + ...ed.hlsl => 1273230.wgsl.expected.dxc.hlsl} | 0 .../chromium/1273230.wgsl.expected.fxc.hlsl | 102 + ...ed.hlsl => 1273451.wgsl.expected.dxc.hlsl} | 0 .../chromium/1273451.wgsl.expected.fxc.hlsl | 16 + ...ed.hlsl => 1290107.wgsl.expected.dxc.hlsl} | 0 .../chromium/1290107.wgsl.expected.fxc.hlsl | 10 + ...ed.hlsl => 1341475.wgsl.expected.dxc.hlsl} | 0 .../chromium/1341475.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => 1343242.wgsl.expected.dxc.hlsl} | 0 .../chromium/1343242.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => 1345468.wgsl.expected.dxc.hlsl} | 0 .../chromium/1345468.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => 947.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/dawn/947.wgsl.expected.fxc.hlsl | 86 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../read/function.wgsl.expected.fxc.hlsl | 16 + ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../read/private.wgsl.expected.fxc.hlsl | 16 + ...ed.hlsl => storage.wgsl.expected.dxc.hlsl} | 0 .../read/storage.wgsl.expected.fxc.hlsl | 13 + ...ed.hlsl => uniform.wgsl.expected.dxc.hlsl} | 0 .../read/uniform.wgsl.expected.fxc.hlsl | 12 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../read/workgroup.wgsl.expected.fxc.hlsl | 31 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../write/function.wgsl.expected.fxc.hlsl | 21 + ...function_via_param.wgsl.expected.dxc.hlsl} | 0 .../function_via_param.wgsl.expected.fxc.hlsl | 25 + ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../write/private.wgsl.expected.fxc.hlsl | 21 + ... private_via_param.wgsl.expected.dxc.hlsl} | 0 .../private_via_param.wgsl.expected.fxc.hlsl | 25 + ...ed.hlsl => storage.wgsl.expected.dxc.hlsl} | 0 .../write/storage.wgsl.expected.fxc.hlsl | 14 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../write/workgroup.wgsl.expected.fxc.hlsl | 32 + ...ected.hlsl => 1112.wgsl.expected.dxc.hlsl} | 0 .../1112.wgsl.expected.fxc.hlsl | 60 + ...ected.hlsl => 1206.wgsl.expected.dxc.hlsl} | 0 .../1206.wgsl.expected.fxc.hlsl | 38 + ...al_assign_scalar_x.wgsl.expected.dxc.hlsl} | 0 ...cal_assign_scalar_x.wgsl.expected.fxc.hlsl | 21 + ...l_assign_scalar_xy.wgsl.expected.dxc.hlsl} | 0 ...al_assign_scalar_xy.wgsl.expected.fxc.hlsl | 21 + ...al_assign_scalar_y.wgsl.expected.dxc.hlsl} | 0 ...al_assign_scalar_y.wgsl.expected.fxc.hlsl} | 0 ...ocal_assign_vector.wgsl.expected.dxc.hlsl} | 0 ...local_assign_vector.wgsl.expected.fxc.hlsl | 17 + ...le_assign_scalar_x.wgsl.expected.dxc.hlsl} | 0 ...ule_assign_scalar_x.wgsl.expected.fxc.hlsl | 21 + ...e_assign_scalar_xy.wgsl.expected.dxc.hlsl} | 0 ...le_assign_scalar_xy.wgsl.expected.fxc.hlsl | 21 + ...ule_assign_scalar_y.wgsl.expected.dxc.hlsl | 21 + ...ule_assign_scalar_y.wgsl.expected.fxc.hlsl | 21 + ...dule_assign_vector.wgsl.expected.dxc.hlsl} | 0 ...odule_assign_vector.wgsl.expected.fxc.hlsl | 17 + ...oop_call_with_loop.wgsl.expected.dxc.hlsl} | 0 ...loop_call_with_loop.wgsl.expected.fxc.hlsl | 41 + ..._call_with_no_loop.wgsl.expected.dxc.hlsl} | 0 ...p_call_with_no_loop.wgsl.expected.fxc.hlsl | 38 + ... => loop_types_all.wgsl.expected.dxc.hlsl} | 0 .../loop_types_all.wgsl.expected.fxc.hlsl | 80 + ...oop_types_repeated.wgsl.expected.dxc.hlsl} | 0 ...loop_types_repeated.wgsl.expected.fxc.hlsl | 40 + ...=> loop_types_some.wgsl.expected.dxc.hlsl} | 0 .../loop_types_some.wgsl.expected.fxc.hlsl | 81 + ...ed.hlsl => no_loop.wgsl.expected.dxc.hlsl} | 0 .../no_loop.wgsl.expected.fxc.hlsl | 77 + ...ected.hlsl => 1046.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1046.wgsl.expected.fxc.hlsl | 63 + ...ected.hlsl => 1064.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1064.wgsl.expected.fxc.hlsl | 15 + ...ected.hlsl => 1076.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1076.wgsl.expected.fxc.hlsl | 30 + ...ected.hlsl => 1081.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1081.wgsl.expected.fxc.hlsl | 46 + ...ected.hlsl => 1083.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1083.wgsl.expected.fxc.hlsl | 5 + ...ected.hlsl => 1086.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1086.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => 1088.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/1088.spvasm.expected.fxc.hlsl | 72 + ...ected.hlsl => 1113.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1113.wgsl.expected.fxc.hlsl | 179 ++ ...ected.hlsl => 1118.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1118.wgsl.expected.fxc.hlsl | 134 ++ ...ected.hlsl => 1121.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1121.wgsl.expected.fxc.hlsl | 116 + ...ected.hlsl => 1136.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1136.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => 1321.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1321.wgsl.expected.fxc.hlsl | 15 + ...ected.hlsl => 1332.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1332.wgsl.expected.fxc.hlsl | 5 + ...ected.hlsl => 1369.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1369.wgsl.expected.fxc.hlsl | 29 + ...ected.hlsl => 1385.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1385.wgsl.expected.fxc.hlsl | 11 + ...ected.hlsl => 1509.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1509.wgsl.expected.fxc.hlsl | 2020 +++++++++++++++++ ...ted.hlsl => 1520.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/1520.spvasm.expected.fxc.hlsl | 168 ++ ...ected.hlsl => 1540.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1540.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => 1541.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1541.wgsl.expected.fxc.hlsl | 5 + ...ected.hlsl => 1564.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1564.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => 1573.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1573.wgsl.expected.fxc.hlsl | 21 + ...ected.hlsl => 1574.wgsl.expected.dxc.hlsl} | 0 .../tint/bug/tint/1574.wgsl.expected.fxc.hlsl | 105 + ...cted.hlsl => 219.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/219.spvasm.expected.fxc.hlsl | 16 + ...pected.hlsl => 221.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/221.wgsl.expected.fxc.hlsl | 25 + ...pected.hlsl => 292.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/292.wgsl.expected.fxc.hlsl | 16 + ...pected.hlsl => 294.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/294.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => 369.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/369.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => 403.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/403.wgsl.expected.fxc.hlsl | 48 + ...cted.hlsl => 413.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/413.spvasm.expected.fxc.hlsl | 18 + ...pected.hlsl => 453.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/453.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => 492.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/492.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => 534.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/534.wgsl.expected.fxc.hlsl | 57 + ...pected.hlsl => 744.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/744.wgsl.expected.fxc.hlsl | 32 + ...cted.hlsl => 749.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/749.spvasm.expected.fxc.hlsl | 1658 ++++++++++++++ ...pected.hlsl => 757.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/757.wgsl.expected.fxc.hlsl | 27 + ...pected.hlsl => 764.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/764.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => 782.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/782.wgsl.expected.fxc.hlsl | 10 + ...xpected.hlsl => 804.spv.expected.dxc.hlsl} | 0 test/tint/bug/tint/804.spv.expected.fxc.hlsl | 19 + ...pected.hlsl => 824.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/824.wgsl.expected.fxc.hlsl | 30 + ...pected.hlsl => 825.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/825.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => 827.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/827.wgsl.expected.fxc.hlsl | 16 + ...cted.hlsl => 870.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/870.spvasm.expected.fxc.hlsl | 29 + ...pected.hlsl => 913.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/913.wgsl.expected.fxc.hlsl | 93 + ...pected.hlsl => 914.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/914.wgsl.expected.fxc.hlsl | 145 ++ ...pected.hlsl => 922.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/922.wgsl.expected.fxc.hlsl | 249 ++ ...pected.hlsl => 926.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/926.wgsl.expected.fxc.hlsl | 23 + ...pected.hlsl => 942.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/942.wgsl.expected.fxc.hlsl | 84 + ...cted.hlsl => 943.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/943.spvasm.expected.fxc.hlsl | 374 +++ ...pected.hlsl => 948.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/948.wgsl.expected.fxc.hlsl | 196 ++ ...pected.hlsl => 949.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/949.wgsl.expected.fxc.hlsl | 355 +++ ...cted.hlsl => 951.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/951.spvasm.expected.fxc.hlsl | 65 + ...pected.hlsl => 959.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/959.wgsl.expected.fxc.hlsl | 68 + ...cted.hlsl => 977.spvasm.expected.dxc.hlsl} | 0 .../bug/tint/977.spvasm.expected.fxc.hlsl | 58 + ...pected.hlsl => 978.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/978.wgsl.expected.fxc.hlsl | 32 + ...pected.hlsl => 980.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/980.wgsl.expected.fxc.hlsl | 26 + ...pected.hlsl => 990.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/990.wgsl.expected.fxc.hlsl | 12 + ...pected.hlsl => 992.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/992.wgsl.expected.fxc.hlsl | 16 + ...pected.hlsl => 993.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/993.wgsl.expected.fxc.hlsl | 26 + ...pected.hlsl => 998.wgsl.expected.dxc.hlsl} | 0 test/tint/bug/tint/998.wgsl.expected.fxc.hlsl | 21 + ...=> complex_via_let.wgsl.expected.dxc.hlsl} | 0 ...=> complex_via_let.wgsl.expected.fxc.hlsl} | 0 ..._via_let_no_struct.wgsl.expected.dxc.hlsl} | 0 ..._via_let_no_struct.wgsl.expected.fxc.hlsl} | 0 ...hlsl => deprecated.wgsl.expected.dxc.hlsl} | 0 .../deprecated.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => simple.wgsl.expected.dxc.hlsl} | 0 ...ted.hlsl => simple.wgsl.expected.fxc.hlsl} | 0 ...> simple_no_struct.wgsl.expected.dxc.hlsl} | 0 ...> simple_no_struct.wgsl.expected.fxc.hlsl} | 0 .../via_let.wgsl.expected.dxc.hlsl | 10 + .../via_let.wgsl.expected.fxc.hlsl | 10 + .../via_let_complex.wgsl.expected.dxc.hlsl | 10 + .../via_let_complex.wgsl.expected.fxc.hlsl | 10 + ...t_complex_no_struct.wgsl.expected.dxc.hlsl | 10 + ...t_complex_no_struct.wgsl.expected.fxc.hlsl | 10 + .../via_let_no_struct.wgsl.expected.dxc.hlsl | 10 + .../via_let_no_struct.wgsl.expected.fxc.hlsl | 10 + ...> aliased_arrays.spvasm.expected.dxc.hlsl} | 0 ...> aliased_arrays.spvasm.expected.fxc.hlsl} | 0 ... => aliased_arrays.wgsl.expected.dxc.hlsl} | 0 ... => aliased_arrays.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => array.spvasm.expected.dxc.hlsl} | 0 .../array/array.spvasm.expected.fxc.hlsl | 45 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../array/array.wgsl.expected.fxc.hlsl | 24 + .../array/arrays.spvasm.expected.dxc.hlsl | 47 + .../array/arrays.spvasm.expected.fxc.hlsl | 47 + .../array/arrays.wgsl.expected.dxc.hlsl | 26 + .../array/arrays.wgsl.expected.fxc.hlsl | 26 + ... array_of_struct.spvasm.expected.dxc.hlsl} | 0 .../array_of_struct.spvasm.expected.fxc.hlsl | 56 + ...=> array_of_struct.wgsl.expected.dxc.hlsl} | 0 .../array_of_struct.wgsl.expected.fxc.hlsl | 32 + ...multiple_atomics.spvasm.expected.dxc.hlsl} | 0 ..._multiple_atomics.spvasm.expected.fxc.hlsl | 50 + ...t_multiple_atomics.wgsl.expected.dxc.hlsl} | 0 ...at_multiple_atomics.wgsl.expected.fxc.hlsl | 32 + ...at_single_atomic.spvasm.expected.dxc.hlsl} | 0 ...at_single_atomic.spvasm.expected.fxc.hlsl} | 0 ...flat_single_atomic.wgsl.expected.dxc.hlsl} | 0 ...flat_single_atomic.wgsl.expected.fxc.hlsl} | 0 ...d.hlsl => nested.spvasm.expected.dxc.hlsl} | 0 .../struct/nested.spvasm.expected.fxc.hlsl | 73 + ...ted.hlsl => nested.wgsl.expected.dxc.hlsl} | 0 .../struct/nested.wgsl.expected.fxc.hlsl | 49 + ... struct_of_array.spvasm.expected.dxc.hlsl} | 0 .../struct_of_array.spvasm.expected.fxc.hlsl | 57 + ...=> struct_of_array.wgsl.expected.dxc.hlsl} | 0 .../struct_of_array.wgsl.expected.fxc.hlsl | 34 + .../via_ptr_let.spvasm.expected.dxc.hlsl | 46 + .../via_ptr_let.spvasm.expected.fxc.hlsl | 46 + .../struct/via_ptr_let.wgsl.expected.dxc.hlsl | 29 + .../struct/via_ptr_let.wgsl.expected.fxc.hlsl | 29 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl} | 0 ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl} | 0 ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl} | 0 ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl} | 0 ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 50 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 50 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 58 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 58 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl} | 0 ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl} | 0 ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl} | 0 ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl} | 0 ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 33 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 33 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 41 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 41 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 36 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 36 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + .../storage_i32.spvasm.expected.dxc.hlsl | 36 + .../storage_i32.spvasm.expected.fxc.hlsl | 36 + .../storage_u32.spvasm.expected.dxc.hlsl | 36 + .../storage_u32.spvasm.expected.fxc.hlsl | 36 + .../workgroup_i32.spvasm.expected.dxc.hlsl | 44 + .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + .../workgroup_u32.spvasm.expected.dxc.hlsl | 44 + .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 55 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 55 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 63 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 63 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + .../storage_i32.spvasm.expected.dxc.hlsl | 36 + .../storage_i32.spvasm.expected.fxc.hlsl | 36 + .../storage_u32.spvasm.expected.dxc.hlsl | 36 + .../storage_u32.spvasm.expected.fxc.hlsl | 36 + .../workgroup_i32.spvasm.expected.dxc.hlsl | 44 + .../workgroup_i32.spvasm.expected.fxc.hlsl | 44 + .../workgroup_u32.spvasm.expected.dxc.hlsl | 44 + .../workgroup_u32.spvasm.expected.fxc.hlsl | 44 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 35 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 35 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 43 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 43 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ...l => storage_i32.spvasm.expected.dxc.hlsl} | 0 .../storage_i32.spvasm.expected.fxc.hlsl | 38 + ...l => storage_u32.spvasm.expected.dxc.hlsl} | 0 .../storage_u32.spvasm.expected.fxc.hlsl | 38 + ...=> workgroup_i32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_i32.spvasm.expected.fxc.hlsl | 46 + ...=> workgroup_u32.spvasm.expected.dxc.hlsl} | 0 .../workgroup_u32.spvasm.expected.fxc.hlsl | 46 + ....hlsl => degrees.spvasm.expected.dxc.hlsl} | 0 .../builtins/degrees.spvasm.expected.fxc.hlsl | 17 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../scalar/i32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => u32.spvasm.expected.dxc.hlsl} | 0 .../scalar/u32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../vec3/i32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => u32.spvasm.expected.dxc.hlsl} | 0 .../vec3/u32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => frexp.wgsl.expected.dxc.hlsl} | 0 .../builtins/frexp.wgsl.expected.fxc.hlsl | 18 + ...ted.hlsl => 002533.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/002533.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 005174.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/005174.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1ce782.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/1ce782.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1e9d53.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/1e9d53.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 467cd1.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/467cd1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4ad288.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/4ad288.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 5ad50a.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/5ad50a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7326de.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/7326de.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7f28e6.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/7f28e6.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7faa9e.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/7faa9e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 9c80a6.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/9c80a6.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b96037.wgsl.expected.dxc.hlsl} | 0 .../literal/abs/b96037.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 489247.wgsl.expected.dxc.hlsl} | 0 .../acos/489247.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8e2acf.wgsl.expected.dxc.hlsl} | 0 .../acos/8e2acf.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a610c4.wgsl.expected.dxc.hlsl} | 0 .../acos/a610c4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => dfc915.wgsl.expected.dxc.hlsl} | 0 .../acos/dfc915.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 640883.wgsl.expected.dxc.hlsl} | 0 .../acosh/640883.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => d51ccb.wgsl.expected.dxc.hlsl} | 0 .../acosh/d51ccb.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => e38f5c.wgsl.expected.dxc.hlsl} | 0 .../acosh/e38f5c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => ecf2d1.wgsl.expected.dxc.hlsl} | 0 .../acosh/ecf2d1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 353d6a.wgsl.expected.dxc.hlsl} | 0 .../literal/all/353d6a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 986c7b.wgsl.expected.dxc.hlsl} | 0 .../literal/all/986c7b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => bd2dba.wgsl.expected.dxc.hlsl} | 0 .../literal/all/bd2dba.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f46790.wgsl.expected.dxc.hlsl} | 0 .../literal/all/f46790.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 083428.wgsl.expected.dxc.hlsl} | 0 .../literal/any/083428.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0e3e58.wgsl.expected.dxc.hlsl} | 0 .../literal/any/0e3e58.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 2ab91a.wgsl.expected.dxc.hlsl} | 0 .../literal/any/2ab91a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e755c1.wgsl.expected.dxc.hlsl} | 0 .../literal/any/e755c1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1588cd.wgsl.expected.dxc.hlsl} | 0 .../1588cd.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 61b1c7.wgsl.expected.dxc.hlsl} | 0 .../61b1c7.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 8421b9.wgsl.expected.dxc.hlsl} | 0 ...ted.hlsl => 8421b9.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a0f5ca.wgsl.expected.dxc.hlsl} | 0 .../a0f5ca.wgsl.expected.fxc.hlsl} | 0 .../cbd6b5.wgsl.expected.dxc.hlsl} | 0 .../cbd6b5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cdd123.wgsl.expected.dxc.hlsl} | 0 .../cdd123.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cfca0a.wgsl.expected.dxc.hlsl} | 0 .../cfca0a.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => eb510f.wgsl.expected.dxc.hlsl} | 0 .../eb510f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 064953.wgsl.expected.dxc.hlsl} | 0 .../asin/064953.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7b6a44.wgsl.expected.dxc.hlsl} | 0 .../asin/7b6a44.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8cd9c9.wgsl.expected.dxc.hlsl} | 0 .../asin/8cd9c9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c0c272.wgsl.expected.dxc.hlsl} | 0 .../asin/c0c272.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 157447.wgsl.expected.dxc.hlsl} | 0 .../asinh/157447.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2265ee.wgsl.expected.dxc.hlsl} | 0 .../asinh/2265ee.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 4a2226.wgsl.expected.dxc.hlsl} | 0 .../asinh/4a2226.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 8d2e51.wgsl.expected.dxc.hlsl} | 0 .../asinh/8d2e51.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 02979a.wgsl.expected.dxc.hlsl} | 0 .../atan/02979a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 331e6d.wgsl.expected.dxc.hlsl} | 0 .../atan/331e6d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a8b696.wgsl.expected.dxc.hlsl} | 0 .../atan/a8b696.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ad96e4.wgsl.expected.dxc.hlsl} | 0 .../atan/ad96e4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 57fb13.wgsl.expected.dxc.hlsl} | 0 .../atan2/57fb13.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 96057c.wgsl.expected.dxc.hlsl} | 0 .../atan2/96057c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a70d0d.wgsl.expected.dxc.hlsl} | 0 .../atan2/a70d0d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ae713e.wgsl.expected.dxc.hlsl} | 0 .../atan2/ae713e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 440cca.wgsl.expected.dxc.hlsl} | 0 .../atanh/440cca.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 7997d8.wgsl.expected.dxc.hlsl} | 0 .../atanh/7997d8.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c0e634.wgsl.expected.dxc.hlsl} | 0 .../atanh/c0e634.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f3e01b.wgsl.expected.dxc.hlsl} | 0 .../atanh/f3e01b.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 794055.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/794055.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 8a199a.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/8a199a.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => d32fe4.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/d32fe4.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => d5db1d.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/d5db1d.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 152966.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/152966.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 34edd3.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/34edd3.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 45a819.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/45a819.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 85a8d9.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/85a8d9.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 1bd40a.wgsl.expected.dxc.hlsl} | 0 .../1bd40a.wgsl.expected.fxc.hlsl | 29 + ...ted.hlsl => 63d8e6.wgsl.expected.dxc.hlsl} | 0 .../63d8e6.wgsl.expected.fxc.hlsl | 29 + ...ted.hlsl => 83580d.wgsl.expected.dxc.hlsl} | 0 .../83580d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e88938.wgsl.expected.dxc.hlsl} | 0 .../e88938.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0a5dca.wgsl.expected.dxc.hlsl} | 0 .../0a5dca.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => d59712.wgsl.expected.dxc.hlsl} | 0 .../d59712.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => e114ba.wgsl.expected.dxc.hlsl} | 0 .../e114ba.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => f2e22f.wgsl.expected.dxc.hlsl} | 0 .../f2e22f.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 0806ad.wgsl.expected.dxc.hlsl} | 0 .../atomicLoad/0806ad.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 361bf1.wgsl.expected.dxc.hlsl} | 0 .../atomicLoad/361bf1.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => afcc03.wgsl.expected.dxc.hlsl} | 0 .../atomicLoad/afcc03.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => fe6cc3.wgsl.expected.dxc.hlsl} | 0 .../atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 51b9be.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/51b9be.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 92aa72.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/92aa72.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => a89cc3.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/a89cc3.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => beccfc.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/beccfc.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 278235.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/278235.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 69d383.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/69d383.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 8e38dc.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/8e38dc.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => c67a74.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/c67a74.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 5e3d61.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/5e3d61.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 5e95d4.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/5e95d4.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 8d96a0.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/8d96a0.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => d09248.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/d09248.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 726882.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/726882.wgsl.expected.fxc.hlsl | 25 + ...ted.hlsl => 8bea94.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/8bea94.wgsl.expected.fxc.hlsl | 25 + ...ted.hlsl => cdc29e.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/cdc29e.wgsl.expected.fxc.hlsl | 22 + ...ted.hlsl => d1e9a6.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/d1e9a6.wgsl.expected.fxc.hlsl | 22 + ...ted.hlsl => 051100.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/051100.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 0d26c2.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/0d26c2.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 15bfc9.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/15bfc9.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 77883a.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/77883a.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 54510e.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/54510e.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 75dc95.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/75dc95.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => c1b78c.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/c1b78c.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => c8e6be.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/c8e6be.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 34064b.wgsl.expected.dxc.hlsl} | 0 .../ceil/34064b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 678655.wgsl.expected.dxc.hlsl} | 0 .../ceil/678655.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 96f597.wgsl.expected.dxc.hlsl} | 0 .../ceil/96f597.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b74c16.wgsl.expected.dxc.hlsl} | 0 .../ceil/b74c16.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0acf8f.wgsl.expected.dxc.hlsl} | 0 .../clamp/0acf8f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1a32e3.wgsl.expected.dxc.hlsl} | 0 .../clamp/1a32e3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 2bd567.wgsl.expected.dxc.hlsl} | 0 .../clamp/2bd567.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 2bde41.wgsl.expected.dxc.hlsl} | 0 .../clamp/2bde41.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 548fc7.wgsl.expected.dxc.hlsl} | 0 .../clamp/548fc7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 5f0819.wgsl.expected.dxc.hlsl} | 0 .../clamp/5f0819.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 6c1749.wgsl.expected.dxc.hlsl} | 0 .../clamp/6c1749.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7706d7.wgsl.expected.dxc.hlsl} | 0 .../clamp/7706d7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 867397.wgsl.expected.dxc.hlsl} | 0 .../clamp/867397.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a2de25.wgsl.expected.dxc.hlsl} | 0 .../clamp/a2de25.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b07c65.wgsl.expected.dxc.hlsl} | 0 .../clamp/b07c65.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => bd43ce.wgsl.expected.dxc.hlsl} | 0 .../clamp/bd43ce.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 16dc15.wgsl.expected.dxc.hlsl} | 0 .../literal/cos/16dc15.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 29d66d.wgsl.expected.dxc.hlsl} | 0 .../literal/cos/29d66d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c3b486.wgsl.expected.dxc.hlsl} | 0 .../literal/cos/c3b486.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c5c28e.wgsl.expected.dxc.hlsl} | 0 .../literal/cos/c5c28e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 377652.wgsl.expected.dxc.hlsl} | 0 .../cosh/377652.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c13756.wgsl.expected.dxc.hlsl} | 0 .../cosh/c13756.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => da92dd.wgsl.expected.dxc.hlsl} | 0 .../cosh/da92dd.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e0c1de.wgsl.expected.dxc.hlsl} | 0 .../cosh/e0c1de.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 208d46.wgsl.expected.dxc.hlsl} | 0 .../208d46.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 6d4656.wgsl.expected.dxc.hlsl} | 0 .../6d4656.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 70783f.wgsl.expected.dxc.hlsl} | 0 .../70783f.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 7c38a6.wgsl.expected.dxc.hlsl} | 0 .../7c38a6.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 858d40.wgsl.expected.dxc.hlsl} | 0 .../858d40.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => ab6345.wgsl.expected.dxc.hlsl} | 0 .../ab6345.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => eab32b.wgsl.expected.dxc.hlsl} | 0 .../eab32b.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => f70103.wgsl.expected.dxc.hlsl} | 0 .../f70103.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 0d0e46.wgsl.expected.dxc.hlsl} | 0 .../0d0e46.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0f7980.wgsl.expected.dxc.hlsl} | 0 .../0f7980.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 65d2ae.wgsl.expected.dxc.hlsl} | 0 .../65d2ae.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 690cfc.wgsl.expected.dxc.hlsl} | 0 .../690cfc.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 94fd81.wgsl.expected.dxc.hlsl} | 0 .../94fd81.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ae44f9.wgsl.expected.dxc.hlsl} | 0 .../ae44f9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => af90e2.wgsl.expected.dxc.hlsl} | 0 .../af90e2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fd88b2.wgsl.expected.dxc.hlsl} | 0 .../fd88b2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1ad138.wgsl.expected.dxc.hlsl} | 0 .../1ad138.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 1dc84a.wgsl.expected.dxc.hlsl} | 0 .../1dc84a.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 21e394.wgsl.expected.dxc.hlsl} | 0 .../21e394.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 327c37.wgsl.expected.dxc.hlsl} | 0 .../327c37.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 42fed6.wgsl.expected.dxc.hlsl} | 0 .../42fed6.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 8ed26f.wgsl.expected.dxc.hlsl} | 0 .../8ed26f.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => acfacb.wgsl.expected.dxc.hlsl} | 0 .../acfacb.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => d2b4a0.wgsl.expected.dxc.hlsl} | 0 .../d2b4a0.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 041cb0.wgsl.expected.dxc.hlsl} | 0 .../cross/041cb0.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0d170c.wgsl.expected.dxc.hlsl} | 0 .../degrees/0d170c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1ad5df.wgsl.expected.dxc.hlsl} | 0 .../degrees/1ad5df.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2af623.wgsl.expected.dxc.hlsl} | 0 .../degrees/2af623.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 51f705.wgsl.expected.dxc.hlsl} | 0 .../degrees/51f705.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2b62ba.wgsl.expected.dxc.hlsl} | 0 .../determinant/2b62ba.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a0a87c.wgsl.expected.dxc.hlsl} | 0 .../determinant/a0a87c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e19305.wgsl.expected.dxc.hlsl} | 0 .../determinant/e19305.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0657d4.wgsl.expected.dxc.hlsl} | 0 .../distance/0657d4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 9646ea.wgsl.expected.dxc.hlsl} | 0 .../distance/9646ea.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => aa4055.wgsl.expected.dxc.hlsl} | 0 .../distance/aa4055.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => cfed73.wgsl.expected.dxc.hlsl} | 0 .../distance/cfed73.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0c577b.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/0c577b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7548a0.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/7548a0.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 883f0e.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/883f0e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 97c7ee.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/97c7ee.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ba4246.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/ba4246.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e994c7.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/e994c7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ef6b1d.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/ef6b1d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f1312c.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/f1312c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fc5f7c.wgsl.expected.dxc.hlsl} | 0 .../literal/dot/fc5f7c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0763f7.wgsl.expected.dxc.hlsl} | 0 .../dpdx/0763f7.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 99edb1.wgsl.expected.dxc.hlsl} | 0 .../dpdx/99edb1.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => c487fa.wgsl.expected.dxc.hlsl} | 0 .../dpdx/c487fa.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => e263de.wgsl.expected.dxc.hlsl} | 0 .../dpdx/e263de.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 029152.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/029152.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 9581cf.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => c28641.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/c28641.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => f64d7b.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 8c5069.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/8c5069.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 9631de.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/9631de.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => f401a2.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/f401a2.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => f92fb6.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/f92fb6.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 699a05.wgsl.expected.dxc.hlsl} | 0 .../dpdy/699a05.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 7f8d84.wgsl.expected.dxc.hlsl} | 0 .../dpdy/7f8d84.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => a8b56e.wgsl.expected.dxc.hlsl} | 0 .../dpdy/a8b56e.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => feb40f.wgsl.expected.dxc.hlsl} | 0 .../dpdy/feb40f.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 3e1ab4.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 445d24.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/445d24.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 870a7e.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => ae1873.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 1fb7ab.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 6eb673.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/6eb673.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => d0a648.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/d0a648.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => df33aa.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/df33aa.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 0f70eb.wgsl.expected.dxc.hlsl} | 0 .../literal/exp/0f70eb.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1951e7.wgsl.expected.dxc.hlsl} | 0 .../literal/exp/1951e7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 771fd2.wgsl.expected.dxc.hlsl} | 0 .../literal/exp/771fd2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => d98450.wgsl.expected.dxc.hlsl} | 0 .../literal/exp/d98450.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1f8680.wgsl.expected.dxc.hlsl} | 0 .../exp2/1f8680.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a9d0a7.wgsl.expected.dxc.hlsl} | 0 .../exp2/a9d0a7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => d6777c.wgsl.expected.dxc.hlsl} | 0 .../exp2/d6777c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => dea523.wgsl.expected.dxc.hlsl} | 0 .../exp2/dea523.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 12b197.wgsl.expected.dxc.hlsl} | 0 .../extractBits/12b197.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => 249874.wgsl.expected.dxc.hlsl} | 0 .../extractBits/249874.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => 631377.wgsl.expected.dxc.hlsl} | 0 .../extractBits/631377.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => a99a8d.wgsl.expected.dxc.hlsl} | 0 .../extractBits/a99a8d.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => ce81f8.wgsl.expected.dxc.hlsl} | 0 .../extractBits/ce81f8.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => e04f5d.wgsl.expected.dxc.hlsl} | 0 .../extractBits/e04f5d.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => f28f69.wgsl.expected.dxc.hlsl} | 0 .../extractBits/f28f69.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => fb850f.wgsl.expected.dxc.hlsl} | 0 .../extractBits/fb850f.wgsl.expected.fxc.hlsl | 38 + ...ted.hlsl => 5afbd5.wgsl.expected.dxc.hlsl} | 0 .../faceForward/5afbd5.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b316e5.wgsl.expected.dxc.hlsl} | 0 .../faceForward/b316e5.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e6908b.wgsl.expected.dxc.hlsl} | 0 .../faceForward/e6908b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 000ff3.wgsl.expected.dxc.hlsl} | 0 .../000ff3.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 35053e.wgsl.expected.dxc.hlsl} | 0 .../35053e.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 3fd7d0.wgsl.expected.dxc.hlsl} | 0 .../3fd7d0.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 57a1a3.wgsl.expected.dxc.hlsl} | 0 .../57a1a3.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 6fe804.wgsl.expected.dxc.hlsl} | 0 .../6fe804.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => a622c2.wgsl.expected.dxc.hlsl} | 0 .../a622c2.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => c1f940.wgsl.expected.dxc.hlsl} | 0 .../c1f940.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => f0779d.wgsl.expected.dxc.hlsl} | 0 .../f0779d.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 110f2c.wgsl.expected.dxc.hlsl} | 0 .../110f2c.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 3a2acc.wgsl.expected.dxc.hlsl} | 0 .../3a2acc.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 45eb10.wgsl.expected.dxc.hlsl} | 0 .../45eb10.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 47d475.wgsl.expected.dxc.hlsl} | 0 .../47d475.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 50c072.wgsl.expected.dxc.hlsl} | 0 .../50c072.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 7496d6.wgsl.expected.dxc.hlsl} | 0 .../7496d6.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 86551b.wgsl.expected.dxc.hlsl} | 0 .../86551b.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => cb51ce.wgsl.expected.dxc.hlsl} | 0 .../cb51ce.wgsl.expected.fxc.hlsl | 45 + ...ted.hlsl => 3bccc4.wgsl.expected.dxc.hlsl} | 0 .../floor/3bccc4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 5fc9ac.wgsl.expected.dxc.hlsl} | 0 .../floor/5fc9ac.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 60d7ea.wgsl.expected.dxc.hlsl} | 0 .../floor/60d7ea.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 66f154.wgsl.expected.dxc.hlsl} | 0 .../floor/66f154.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 26a7a9.wgsl.expected.dxc.hlsl} | 0 .../literal/fma/26a7a9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 6a3283.wgsl.expected.dxc.hlsl} | 0 .../literal/fma/6a3283.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c10ba3.wgsl.expected.dxc.hlsl} | 0 .../literal/fma/c10ba3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e17c5c.wgsl.expected.dxc.hlsl} | 0 .../literal/fma/e17c5c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8bc1e9.wgsl.expected.dxc.hlsl} | 0 .../fract/8bc1e9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 943cb1.wgsl.expected.dxc.hlsl} | 0 .../fract/943cb1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a49758.wgsl.expected.dxc.hlsl} | 0 .../fract/a49758.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fa5c71.wgsl.expected.dxc.hlsl} | 0 .../fract/fa5c71.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 368997.wgsl.expected.dxc.hlsl} | 0 .../frexp/368997.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 3c4f48.wgsl.expected.dxc.hlsl} | 0 .../frexp/3c4f48.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 4bdfc7.wgsl.expected.dxc.hlsl} | 0 .../frexp/4bdfc7.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => eabd40.wgsl.expected.dxc.hlsl} | 0 .../frexp/eabd40.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 5d1b39.wgsl.expected.dxc.hlsl} | 0 .../fwidth/5d1b39.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => b83ebb.wgsl.expected.dxc.hlsl} | 0 .../fwidth/b83ebb.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => d2ab9a.wgsl.expected.dxc.hlsl} | 0 .../fwidth/d2ab9a.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => df38ef.wgsl.expected.dxc.hlsl} | 0 .../fwidth/df38ef.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 159c8a.wgsl.expected.dxc.hlsl} | 0 .../159c8a.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 1e59d9.wgsl.expected.dxc.hlsl} | 0 .../1e59d9.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 4e4fc4.wgsl.expected.dxc.hlsl} | 0 .../4e4fc4.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => e653f7.wgsl.expected.dxc.hlsl} | 0 .../e653f7.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 523fdc.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/523fdc.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 68f4ef.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/68f4ef.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => f1742d.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/f1742d.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => ff6aa0.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => 3c7ba5.wgsl.expected.dxc.hlsl} | 0 .../insertBits/3c7ba5.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 428b0b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/428b0b.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 51ede1.wgsl.expected.dxc.hlsl} | 0 .../insertBits/51ede1.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 65468b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/65468b.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 87826b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/87826b.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => d86978.wgsl.expected.dxc.hlsl} | 0 .../insertBits/d86978.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => e3e3a2.wgsl.expected.dxc.hlsl} | 0 .../insertBits/e3e3a2.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => fe6ba6.wgsl.expected.dxc.hlsl} | 0 .../insertBits/fe6ba6.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 84407e.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/84407e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8f2bd2.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b197b1.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/b197b1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c22347.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/c22347.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a31cdc.wgsl.expected.dxc.hlsl} | 0 .../ldexp/a31cdc.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => abd718.wgsl.expected.dxc.hlsl} | 0 .../ldexp/abd718.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => cc9cde.wgsl.expected.dxc.hlsl} | 0 .../ldexp/cc9cde.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => db8b49.wgsl.expected.dxc.hlsl} | 0 .../ldexp/db8b49.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 056071.wgsl.expected.dxc.hlsl} | 0 .../length/056071.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 602a17.wgsl.expected.dxc.hlsl} | 0 .../length/602a17.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => afde8b.wgsl.expected.dxc.hlsl} | 0 .../length/afde8b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => becebf.wgsl.expected.dxc.hlsl} | 0 .../length/becebf.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 3da25a.wgsl.expected.dxc.hlsl} | 0 .../literal/log/3da25a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7114a6.wgsl.expected.dxc.hlsl} | 0 .../literal/log/7114a6.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b2ce28.wgsl.expected.dxc.hlsl} | 0 .../literal/log/b2ce28.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f4c570.wgsl.expected.dxc.hlsl} | 0 .../literal/log/f4c570.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4036ed.wgsl.expected.dxc.hlsl} | 0 .../log2/4036ed.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 902988.wgsl.expected.dxc.hlsl} | 0 .../log2/902988.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => adb233.wgsl.expected.dxc.hlsl} | 0 .../log2/adb233.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => aea659.wgsl.expected.dxc.hlsl} | 0 .../log2/aea659.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0c0aae.wgsl.expected.dxc.hlsl} | 0 .../literal/max/0c0aae.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 25eafe.wgsl.expected.dxc.hlsl} | 0 .../literal/max/25eafe.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 320815.wgsl.expected.dxc.hlsl} | 0 .../literal/max/320815.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 44a39d.wgsl.expected.dxc.hlsl} | 0 .../literal/max/44a39d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 453e04.wgsl.expected.dxc.hlsl} | 0 .../literal/max/453e04.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 462050.wgsl.expected.dxc.hlsl} | 0 .../literal/max/462050.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4883ac.wgsl.expected.dxc.hlsl} | 0 .../literal/max/4883ac.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 85e6bc.wgsl.expected.dxc.hlsl} | 0 .../literal/max/85e6bc.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a93419.wgsl.expected.dxc.hlsl} | 0 .../literal/max/a93419.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b1b73a.wgsl.expected.dxc.hlsl} | 0 .../literal/max/b1b73a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ce7c30.wgsl.expected.dxc.hlsl} | 0 .../literal/max/ce7c30.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e8192f.wgsl.expected.dxc.hlsl} | 0 .../literal/max/e8192f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 03c7e3.wgsl.expected.dxc.hlsl} | 0 .../literal/min/03c7e3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0dc614.wgsl.expected.dxc.hlsl} | 0 .../literal/min/0dc614.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 3941e1.wgsl.expected.dxc.hlsl} | 0 .../literal/min/3941e1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 46c5d3.wgsl.expected.dxc.hlsl} | 0 .../literal/min/46c5d3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 82b28f.wgsl.expected.dxc.hlsl} | 0 .../literal/min/82b28f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 93cfc4.wgsl.expected.dxc.hlsl} | 0 .../literal/min/93cfc4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a45171.wgsl.expected.dxc.hlsl} | 0 .../literal/min/a45171.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => aa28ad.wgsl.expected.dxc.hlsl} | 0 .../literal/min/aa28ad.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => af326d.wgsl.expected.dxc.hlsl} | 0 .../literal/min/af326d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c70bb7.wgsl.expected.dxc.hlsl} | 0 .../literal/min/c70bb7.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c73147.wgsl.expected.dxc.hlsl} | 0 .../literal/min/c73147.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c76fa6.wgsl.expected.dxc.hlsl} | 0 .../literal/min/c76fa6.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0c8c33.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/0c8c33.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1faeb1.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/1faeb1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 2fadab.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/2fadab.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 315264.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/315264.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4f0b5e.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/4f0b5e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 6f8adc.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/6f8adc.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c37ede.wgsl.expected.dxc.hlsl} | 0 .../literal/mix/c37ede.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 180fed.wgsl.expected.dxc.hlsl} | 0 .../modf/180fed.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 9b75f7.wgsl.expected.dxc.hlsl} | 0 .../modf/9b75f7.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => ec2dbc.wgsl.expected.dxc.hlsl} | 0 .../modf/ec2dbc.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => f5f20d.wgsl.expected.dxc.hlsl} | 0 .../modf/f5f20d.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 64d8c0.wgsl.expected.dxc.hlsl} | 0 .../normalize/64d8c0.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 9a0aab.wgsl.expected.dxc.hlsl} | 0 .../normalize/9a0aab.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fc2ef1.wgsl.expected.dxc.hlsl} | 0 .../normalize/fc2ef1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0e97b3.wgsl.expected.dxc.hlsl} | 0 .../0e97b3.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 6c169b.wgsl.expected.dxc.hlsl} | 0 .../6c169b.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 0f08e4.wgsl.expected.dxc.hlsl} | 0 .../0f08e4.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 4d22e7.wgsl.expected.dxc.hlsl} | 0 .../4d22e7.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 95c456.wgsl.expected.dxc.hlsl} | 0 .../95c456.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 04a908.wgsl.expected.dxc.hlsl} | 0 .../literal/pow/04a908.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 46e029.wgsl.expected.dxc.hlsl} | 0 .../literal/pow/46e029.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4a46c9.wgsl.expected.dxc.hlsl} | 0 .../literal/pow/4a46c9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e60ea5.wgsl.expected.dxc.hlsl} | 0 .../literal/pow/e60ea5.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 09b7fc.wgsl.expected.dxc.hlsl} | 0 .../radians/09b7fc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 61687a.wgsl.expected.dxc.hlsl} | 0 .../radians/61687a.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6b0ff2.wgsl.expected.dxc.hlsl} | 0 .../radians/6b0ff2.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f96258.wgsl.expected.dxc.hlsl} | 0 .../radians/f96258.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 05357e.wgsl.expected.dxc.hlsl} | 0 .../reflect/05357e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b61e10.wgsl.expected.dxc.hlsl} | 0 .../reflect/b61e10.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f47fdb.wgsl.expected.dxc.hlsl} | 0 .../reflect/f47fdb.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7e02e6.wgsl.expected.dxc.hlsl} | 0 .../refract/7e02e6.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => cbc1d2.wgsl.expected.dxc.hlsl} | 0 .../refract/cbc1d2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => cd905f.wgsl.expected.dxc.hlsl} | 0 .../refract/cd905f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 222177.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/222177.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 35fea9.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/35fea9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4dbd6f.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/4dbd6f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7c4269.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/7c4269.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a6ccd4.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/a6ccd4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c21bc1.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/c21bc1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e1f4c1.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/e1f4c1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e31adf.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/e31adf.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 106c0b.wgsl.expected.dxc.hlsl} | 0 .../round/106c0b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1c7897.wgsl.expected.dxc.hlsl} | 0 .../round/1c7897.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 52c84d.wgsl.expected.dxc.hlsl} | 0 .../round/52c84d.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 9edc38.wgsl.expected.dxc.hlsl} | 0 .../round/9edc38.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 00b848.wgsl.expected.dxc.hlsl} | 0 .../select/00b848.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 01e2cd.wgsl.expected.dxc.hlsl} | 0 .../select/01e2cd.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 087ea4.wgsl.expected.dxc.hlsl} | 0 .../select/087ea4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 1e960b.wgsl.expected.dxc.hlsl} | 0 .../select/1e960b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 266aff.wgsl.expected.dxc.hlsl} | 0 .../select/266aff.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 28a27e.wgsl.expected.dxc.hlsl} | 0 .../select/28a27e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 3c25ce.wgsl.expected.dxc.hlsl} | 0 .../select/3c25ce.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 416e14.wgsl.expected.dxc.hlsl} | 0 .../select/416e14.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 51b047.wgsl.expected.dxc.hlsl} | 0 .../select/51b047.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 713567.wgsl.expected.dxc.hlsl} | 0 .../select/713567.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 78be5f.wgsl.expected.dxc.hlsl} | 0 .../select/78be5f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 80a9a9.wgsl.expected.dxc.hlsl} | 0 .../select/80a9a9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8fa62c.wgsl.expected.dxc.hlsl} | 0 .../select/8fa62c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 99f883.wgsl.expected.dxc.hlsl} | 0 .../select/99f883.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => a2860e.wgsl.expected.dxc.hlsl} | 0 .../select/a2860e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ab069f.wgsl.expected.dxc.hlsl} | 0 .../select/ab069f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b04721.wgsl.expected.dxc.hlsl} | 0 .../select/b04721.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => bb447f.wgsl.expected.dxc.hlsl} | 0 .../select/bb447f.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => bb8aae.wgsl.expected.dxc.hlsl} | 0 .../select/bb8aae.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => bf3d29.wgsl.expected.dxc.hlsl} | 0 .../select/bf3d29.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c31f9e.wgsl.expected.dxc.hlsl} | 0 .../select/c31f9e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c41bd1.wgsl.expected.dxc.hlsl} | 0 .../select/c41bd1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c4a4ef.wgsl.expected.dxc.hlsl} | 0 .../select/c4a4ef.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => cb9301.wgsl.expected.dxc.hlsl} | 0 .../select/cb9301.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e3e028.wgsl.expected.dxc.hlsl} | 0 .../select/e3e028.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ebfea2.wgsl.expected.dxc.hlsl} | 0 .../select/ebfea2.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ed8a15.wgsl.expected.dxc.hlsl} | 0 .../select/ed8a15.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fb7e53.wgsl.expected.dxc.hlsl} | 0 .../select/fb7e53.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 159665.wgsl.expected.dxc.hlsl} | 0 .../sign/159665.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b8f634.wgsl.expected.dxc.hlsl} | 0 .../sign/b8f634.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => d065d8.wgsl.expected.dxc.hlsl} | 0 .../sign/d065d8.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => dd790e.wgsl.expected.dxc.hlsl} | 0 .../sign/dd790e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 01f241.wgsl.expected.dxc.hlsl} | 0 .../literal/sin/01f241.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4e3979.wgsl.expected.dxc.hlsl} | 0 .../literal/sin/4e3979.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b78c91.wgsl.expected.dxc.hlsl} | 0 .../literal/sin/b78c91.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => fc8bc4.wgsl.expected.dxc.hlsl} | 0 .../literal/sin/fc8bc4.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 445e33.wgsl.expected.dxc.hlsl} | 0 .../sinh/445e33.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7bb598.wgsl.expected.dxc.hlsl} | 0 .../sinh/7bb598.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => b9860e.wgsl.expected.dxc.hlsl} | 0 .../sinh/b9860e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c9a5eb.wgsl.expected.dxc.hlsl} | 0 .../sinh/c9a5eb.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 392c19.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/392c19.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 40864c.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/40864c.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 6c4975.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/6c4975.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => aad1db.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/aad1db.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 20c74e.wgsl.expected.dxc.hlsl} | 0 .../sqrt/20c74e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8c7024.wgsl.expected.dxc.hlsl} | 0 .../sqrt/8c7024.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => aa0d7a.wgsl.expected.dxc.hlsl} | 0 .../sqrt/aa0d7a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f8c59a.wgsl.expected.dxc.hlsl} | 0 .../sqrt/f8c59a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 0b073b.wgsl.expected.dxc.hlsl} | 0 .../step/0b073b.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 19accd.wgsl.expected.dxc.hlsl} | 0 .../step/19accd.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 334303.wgsl.expected.dxc.hlsl} | 0 .../step/334303.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e2b337.wgsl.expected.dxc.hlsl} | 0 .../step/e2b337.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => d87211.wgsl.expected.dxc.hlsl} | 0 .../d87211.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 244e2a.wgsl.expected.dxc.hlsl} | 0 .../literal/tan/244e2a.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 2f030e.wgsl.expected.dxc.hlsl} | 0 .../literal/tan/2f030e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 7ea104.wgsl.expected.dxc.hlsl} | 0 .../literal/tan/7ea104.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 8ce3e9.wgsl.expected.dxc.hlsl} | 0 .../literal/tan/8ce3e9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 5663c5.wgsl.expected.dxc.hlsl} | 0 .../tanh/5663c5.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 5724b3.wgsl.expected.dxc.hlsl} | 0 .../tanh/5724b3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 9f9fb9.wgsl.expected.dxc.hlsl} | 0 .../tanh/9f9fb9.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c15fdb.wgsl.expected.dxc.hlsl} | 0 .../tanh/c15fdb.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 002b2a.wgsl.expected.dxc.hlsl} | 0 .../002b2a.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 012b82.wgsl.expected.dxc.hlsl} | 0 .../012b82.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 08753d.wgsl.expected.dxc.hlsl} | 0 .../08753d.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0c4772.wgsl.expected.dxc.hlsl} | 0 .../0c4772.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0cce40.wgsl.expected.dxc.hlsl} | 0 .../0cce40.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0cf2ff.wgsl.expected.dxc.hlsl} | 0 .../0cf2ff.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0d8b7e.wgsl.expected.dxc.hlsl} | 0 .../0d8b7e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0e32ee.wgsl.expected.dxc.hlsl} | 0 .../0e32ee.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0f3c50.wgsl.expected.dxc.hlsl} | 0 .../0f3c50.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1191a5.wgsl.expected.dxc.hlsl} | 0 .../1191a5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 12c9bb.wgsl.expected.dxc.hlsl} | 0 .../12c9bb.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 147998.wgsl.expected.dxc.hlsl} | 0 .../147998.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 16036c.wgsl.expected.dxc.hlsl} | 0 .../16036c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1b71f0.wgsl.expected.dxc.hlsl} | 0 .../1b71f0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1d6c26.wgsl.expected.dxc.hlsl} | 0 .../1d6c26.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1e9e39.wgsl.expected.dxc.hlsl} | 0 .../1e9e39.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1f20c5.wgsl.expected.dxc.hlsl} | 0 .../1f20c5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 214dd4.wgsl.expected.dxc.hlsl} | 0 .../214dd4.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 221f22.wgsl.expected.dxc.hlsl} | 0 .../221f22.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 267788.wgsl.expected.dxc.hlsl} | 0 .../267788.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 26bdfa.wgsl.expected.dxc.hlsl} | 0 .../26bdfa.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 26ef6c.wgsl.expected.dxc.hlsl} | 0 .../26ef6c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 2ad087.wgsl.expected.dxc.hlsl} | 0 .../2ad087.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 2efa05.wgsl.expected.dxc.hlsl} | 0 .../2efa05.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2f289f.wgsl.expected.dxc.hlsl} | 0 .../2f289f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 2fe1cc.wgsl.expected.dxc.hlsl} | 0 .../2fe1cc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 318ecc.wgsl.expected.dxc.hlsl} | 0 .../318ecc.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 340d06.wgsl.expected.dxc.hlsl} | 0 .../340d06.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 398e30.wgsl.expected.dxc.hlsl} | 0 .../398e30.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 3a94ea.wgsl.expected.dxc.hlsl} | 0 .../3a94ea.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 3aca08.wgsl.expected.dxc.hlsl} | 0 .../3aca08.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 3c5ad8.wgsl.expected.dxc.hlsl} | 0 .../3c5ad8.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 4152a6.wgsl.expected.dxc.hlsl} | 0 .../4152a6.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 423f99.wgsl.expected.dxc.hlsl} | 0 .../423f99.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 4267ee.wgsl.expected.dxc.hlsl} | 0 .../4267ee.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 42d4e6.wgsl.expected.dxc.hlsl} | 0 .../42d4e6.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 48cb89.wgsl.expected.dxc.hlsl} | 0 .../48cb89.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 49d274.wgsl.expected.dxc.hlsl} | 0 .../49d274.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 4df9a8.wgsl.expected.dxc.hlsl} | 0 .../4df9a8.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 50a9ee.wgsl.expected.dxc.hlsl} | 0 .../50a9ee.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 52045c.wgsl.expected.dxc.hlsl} | 0 .../52045c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 55b23e.wgsl.expected.dxc.hlsl} | 0 .../55b23e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 579629.wgsl.expected.dxc.hlsl} | 0 .../579629.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 57da0b.wgsl.expected.dxc.hlsl} | 0 .../57da0b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 57e28f.wgsl.expected.dxc.hlsl} | 0 .../57e28f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 58a515.wgsl.expected.dxc.hlsl} | 0 .../58a515.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 5985f3.wgsl.expected.dxc.hlsl} | 0 .../5985f3.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 5caa5e.wgsl.expected.dxc.hlsl} | 0 .../5caa5e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 5e295d.wgsl.expected.dxc.hlsl} | 0 .../5e295d.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 60bf54.wgsl.expected.dxc.hlsl} | 0 .../60bf54.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 63f3cf.wgsl.expected.dxc.hlsl} | 0 .../63f3cf.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 68105c.wgsl.expected.dxc.hlsl} | 0 .../68105c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 686ef2.wgsl.expected.dxc.hlsl} | 0 .../686ef2.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6adac6.wgsl.expected.dxc.hlsl} | 0 .../6adac6.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 6ec1b4.wgsl.expected.dxc.hlsl} | 0 .../6ec1b4.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 6f0d79.wgsl.expected.dxc.hlsl} | 0 .../6f0d79.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 702c53.wgsl.expected.dxc.hlsl} | 0 .../702c53.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 72e5d6.wgsl.expected.dxc.hlsl} | 0 .../72e5d6.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 79df87.wgsl.expected.dxc.hlsl} | 0 .../79df87.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 7bf826.wgsl.expected.dxc.hlsl} | 0 .../7bf826.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 7f5c2e.wgsl.expected.dxc.hlsl} | 0 .../7f5c2e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 8028f3.wgsl.expected.dxc.hlsl} | 0 .../8028f3.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 811679.wgsl.expected.dxc.hlsl} | 0 .../811679.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 820596.wgsl.expected.dxc.hlsl} | 0 .../820596.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 83ee5a.wgsl.expected.dxc.hlsl} | 0 .../83ee5a.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 85d556.wgsl.expected.dxc.hlsl} | 0 .../85d556.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 88ad17.wgsl.expected.dxc.hlsl} | 0 .../88ad17.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 8aa4c4.wgsl.expected.dxc.hlsl} | 0 .../8aa4c4.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 8deb5e.wgsl.expected.dxc.hlsl} | 0 .../8deb5e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 8f20bf.wgsl.expected.dxc.hlsl} | 0 .../8f20bf.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 8fca0f.wgsl.expected.dxc.hlsl} | 0 .../8fca0f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 90340b.wgsl.expected.dxc.hlsl} | 0 .../90340b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9042ab.wgsl.expected.dxc.hlsl} | 0 .../9042ab.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9393b0.wgsl.expected.dxc.hlsl} | 0 .../9393b0.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 939fdb.wgsl.expected.dxc.hlsl} | 0 .../939fdb.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 962dcd.wgsl.expected.dxc.hlsl} | 0 .../962dcd.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9abfe5.wgsl.expected.dxc.hlsl} | 0 .../9abfe5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9c9c57.wgsl.expected.dxc.hlsl} | 0 .../9c9c57.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 9da9e2.wgsl.expected.dxc.hlsl} | 0 .../9da9e2.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9eb8d8.wgsl.expected.dxc.hlsl} | 0 .../9eb8d8.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9f8e46.wgsl.expected.dxc.hlsl} | 0 .../9f8e46.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a01845.wgsl.expected.dxc.hlsl} | 0 .../a01845.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => a7d565.wgsl.expected.dxc.hlsl} | 0 .../a7d565.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a863f2.wgsl.expected.dxc.hlsl} | 0 .../a863f2.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a9c9c1.wgsl.expected.dxc.hlsl} | 0 .../a9c9c1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => b0e16d.wgsl.expected.dxc.hlsl} | 0 .../b0e16d.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => b3c954.wgsl.expected.dxc.hlsl} | 0 .../b3c954.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => b3e407.wgsl.expected.dxc.hlsl} | 0 .../b3e407.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => b91240.wgsl.expected.dxc.hlsl} | 0 .../b91240.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => ba1481.wgsl.expected.dxc.hlsl} | 0 .../ba1481.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => bb3dde.wgsl.expected.dxc.hlsl} | 0 .../bb3dde.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => c30e75.wgsl.expected.dxc.hlsl} | 0 .../c30e75.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => c7943d.wgsl.expected.dxc.hlsl} | 0 .../c7943d.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cc968c.wgsl.expected.dxc.hlsl} | 0 .../cc968c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cccc8f.wgsl.expected.dxc.hlsl} | 0 .../cccc8f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cd76a7.wgsl.expected.dxc.hlsl} | 0 .../cd76a7.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cdf473.wgsl.expected.dxc.hlsl} | 0 .../cdf473.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cec841.wgsl.expected.dxc.hlsl} | 0 .../cec841.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cf7e43.wgsl.expected.dxc.hlsl} | 0 .../cf7e43.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => d125bc.wgsl.expected.dxc.hlsl} | 0 .../d125bc.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => d83c45.wgsl.expected.dxc.hlsl} | 0 .../d83c45.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => daf7c0.wgsl.expected.dxc.hlsl} | 0 .../daf7c0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => dc2dd0.wgsl.expected.dxc.hlsl} | 0 .../dc2dd0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => e927be.wgsl.expected.dxc.hlsl} | 0 .../e927be.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => e9e96c.wgsl.expected.dxc.hlsl} | 0 .../e9e96c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => ef5b89.wgsl.expected.dxc.hlsl} | 0 .../ef5b89.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => efc8a4.wgsl.expected.dxc.hlsl} | 0 .../efc8a4.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f60bdb.wgsl.expected.dxc.hlsl} | 0 .../f60bdb.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => f7145b.wgsl.expected.dxc.hlsl} | 0 .../f7145b.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f931c7.wgsl.expected.dxc.hlsl} | 0 .../f931c7.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => fa9859.wgsl.expected.dxc.hlsl} | 0 .../fa9859.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => fb5670.wgsl.expected.dxc.hlsl} | 0 .../fb5670.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => fcac78.wgsl.expected.dxc.hlsl} | 0 .../fcac78.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 10c554.wgsl.expected.dxc.hlsl} | 0 .../10c554.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1f7f6b.wgsl.expected.dxc.hlsl} | 0 .../1f7f6b.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 22e930.wgsl.expected.dxc.hlsl} | 0 .../22e930.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2cc066.wgsl.expected.dxc.hlsl} | 0 .../2cc066.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2e0ed5.wgsl.expected.dxc.hlsl} | 0 .../2e0ed5.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 32c4e8.wgsl.expected.dxc.hlsl} | 0 .../32c4e8.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 3b32cc.wgsl.expected.dxc.hlsl} | 0 .../3b32cc.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 43025d.wgsl.expected.dxc.hlsl} | 0 .../43025d.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 49b07f.wgsl.expected.dxc.hlsl} | 0 .../49b07f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 4b8103.wgsl.expected.dxc.hlsl} | 0 .../4b8103.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5266da.wgsl.expected.dxc.hlsl} | 0 .../5266da.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5ba85f.wgsl.expected.dxc.hlsl} | 0 .../5ba85f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5bd491.wgsl.expected.dxc.hlsl} | 0 .../5bd491.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 751f8a.wgsl.expected.dxc.hlsl} | 0 .../751f8a.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 7c3828.wgsl.expected.dxc.hlsl} | 0 .../7c3828.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 8b754c.wgsl.expected.dxc.hlsl} | 0 .../8b754c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 9a6358.wgsl.expected.dxc.hlsl} | 0 .../9a6358.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => af55b3.wgsl.expected.dxc.hlsl} | 0 .../af55b3.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => bb3ac5.wgsl.expected.dxc.hlsl} | 0 .../bb3ac5.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c0640c.wgsl.expected.dxc.hlsl} | 0 .../c0640c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => d1f187.wgsl.expected.dxc.hlsl} | 0 .../d1f187.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => d90605.wgsl.expected.dxc.hlsl} | 0 .../d90605.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => e9d390.wgsl.expected.dxc.hlsl} | 0 .../e9d390.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => f2c6e3.wgsl.expected.dxc.hlsl} | 0 .../f2c6e3.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 182fd4.wgsl.expected.dxc.hlsl} | 0 .../182fd4.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 313add.wgsl.expected.dxc.hlsl} | 0 .../313add.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 60d2d1.wgsl.expected.dxc.hlsl} | 0 .../60d2d1.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 6d9352.wgsl.expected.dxc.hlsl} | 0 .../6d9352.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 783e65.wgsl.expected.dxc.hlsl} | 0 .../783e65.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => f585cc.wgsl.expected.dxc.hlsl} | 0 .../f585cc.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 19cf87.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/19cf87.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 1b8588.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/1b8588.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 1f2016.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/1f2016.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 484344.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/484344.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 4fd803.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/4fd803.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 5a2f9d.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/5a2f9d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6154d4.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/6154d4.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6273b1.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/6273b1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 79e697.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/79e697.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 7c90e5.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/7c90e5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 81c381.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/81c381.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 87be85.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/87be85.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 8acf41.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/8acf41.wgsl.expected.fxc.hlsl | 111 + ...ted.hlsl => 9b2667.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/9b2667.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => a583c9.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/a583c9.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => a9a9f5.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/a9a9f5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c2a480.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/c2a480.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c378ee.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/c378ee.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e3d2cc.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/e3d2cc.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 024820.wgsl.expected.dxc.hlsl} | 0 .../024820.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 053df7.wgsl.expected.dxc.hlsl} | 0 .../053df7.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 058cc3.wgsl.expected.dxc.hlsl} | 0 .../058cc3.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 09d05d.wgsl.expected.dxc.hlsl} | 0 .../09d05d.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 13b4ce.wgsl.expected.dxc.hlsl} | 0 .../13b4ce.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 22e53b.wgsl.expected.dxc.hlsl} | 0 .../22e53b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 562013.wgsl.expected.dxc.hlsl} | 0 .../562013.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 5d59cd.wgsl.expected.dxc.hlsl} | 0 .../5d59cd.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 68a65b.wgsl.expected.dxc.hlsl} | 0 .../68a65b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 778bd1.wgsl.expected.dxc.hlsl} | 0 .../778bd1.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 7f1937.wgsl.expected.dxc.hlsl} | 0 .../7f1937.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 85f980.wgsl.expected.dxc.hlsl} | 0 .../85f980.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 87953e.wgsl.expected.dxc.hlsl} | 0 .../87953e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 893e7c.wgsl.expected.dxc.hlsl} | 0 .../893e7c.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9700fb.wgsl.expected.dxc.hlsl} | 0 .../9700fb.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a216d2.wgsl.expected.dxc.hlsl} | 0 .../a216d2.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => cd5dc8.wgsl.expected.dxc.hlsl} | 0 .../cd5dc8.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => d5b228.wgsl.expected.dxc.hlsl} | 0 .../d5b228.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => e31be1.wgsl.expected.dxc.hlsl} | 0 .../e31be1.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => e653c0.wgsl.expected.dxc.hlsl} | 0 .../e653c0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => ee942f.wgsl.expected.dxc.hlsl} | 0 .../ee942f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => f33005.wgsl.expected.dxc.hlsl} | 0 .../f33005.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => fcec98.wgsl.expected.dxc.hlsl} | 0 .../fcec98.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => ff5e89.wgsl.expected.dxc.hlsl} | 0 .../ff5e89.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 076cb5.wgsl.expected.dxc.hlsl} | 0 .../076cb5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 080d95.wgsl.expected.dxc.hlsl} | 0 .../080d95.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 09ddd0.wgsl.expected.dxc.hlsl} | 0 .../09ddd0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 105988.wgsl.expected.dxc.hlsl} | 0 .../105988.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 1e6f3b.wgsl.expected.dxc.hlsl} | 0 .../1e6f3b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 23f750.wgsl.expected.dxc.hlsl} | 0 .../23f750.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 2c3575.wgsl.expected.dxc.hlsl} | 0 .../2c3575.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 32a0ae.wgsl.expected.dxc.hlsl} | 0 .../32a0ae.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 5101cf.wgsl.expected.dxc.hlsl} | 0 .../5101cf.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 51b5bb.wgsl.expected.dxc.hlsl} | 0 .../51b5bb.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 897aaf.wgsl.expected.dxc.hlsl} | 0 .../897aaf.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 9da7a5.wgsl.expected.dxc.hlsl} | 0 .../9da7a5.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a91c03.wgsl.expected.dxc.hlsl} | 0 .../a91c03.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => aee7c8.wgsl.expected.dxc.hlsl} | 0 .../aee7c8.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => b1b12b.wgsl.expected.dxc.hlsl} | 0 .../b1b12b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => b4f5ea.wgsl.expected.dxc.hlsl} | 0 .../b4f5ea.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => d004a9.wgsl.expected.dxc.hlsl} | 0 .../d004a9.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => dca09e.wgsl.expected.dxc.hlsl} | 0 .../dca09e.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => e67231.wgsl.expected.dxc.hlsl} | 0 .../e67231.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => ed078b.wgsl.expected.dxc.hlsl} | 0 .../ed078b.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => f46ec6.wgsl.expected.dxc.hlsl} | 0 .../f46ec6.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => f5828d.wgsl.expected.dxc.hlsl} | 0 .../f5828d.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 2c6f14.wgsl.expected.dxc.hlsl} | 0 .../2c6f14.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 42f8bb.wgsl.expected.dxc.hlsl} | 0 .../42f8bb.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 449d23.wgsl.expected.dxc.hlsl} | 0 .../449d23.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => a3c8a0.wgsl.expected.dxc.hlsl} | 0 .../a3c8a0.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 0dff6c.wgsl.expected.dxc.hlsl} | 0 .../0dff6c.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 17e988.wgsl.expected.dxc.hlsl} | 0 .../17e988.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 2149ec.wgsl.expected.dxc.hlsl} | 0 .../2149ec.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 38bbb9.wgsl.expected.dxc.hlsl} | 0 .../38bbb9.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 3b50bd.wgsl.expected.dxc.hlsl} | 0 .../3b50bd.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 4dd1bf.wgsl.expected.dxc.hlsl} | 0 .../4dd1bf.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 51b514.wgsl.expected.dxc.hlsl} | 0 .../51b514.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 60bf45.wgsl.expected.dxc.hlsl} | 0 .../60bf45.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 6717ca.wgsl.expected.dxc.hlsl} | 0 .../6717ca.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 6e64fb.wgsl.expected.dxc.hlsl} | 0 .../6e64fb.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 7e9ffd.wgsl.expected.dxc.hlsl} | 0 .../7e9ffd.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 85c4ba.wgsl.expected.dxc.hlsl} | 0 .../85c4ba.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => c2f4e8.wgsl.expected.dxc.hlsl} | 0 .../c2f4e8.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => e53267.wgsl.expected.dxc.hlsl} | 0 .../e53267.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => ea7030.wgsl.expected.dxc.hlsl} | 0 .../ea7030.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 53b9f7.wgsl.expected.dxc.hlsl} | 0 .../53b9f7.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 594824.wgsl.expected.dxc.hlsl} | 0 .../594824.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 6a9113.wgsl.expected.dxc.hlsl} | 0 .../6a9113.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 80e579.wgsl.expected.dxc.hlsl} | 0 .../80e579.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 9dbb51.wgsl.expected.dxc.hlsl} | 0 .../9dbb51.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => a161cf.wgsl.expected.dxc.hlsl} | 0 .../a161cf.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => d3fa1b.wgsl.expected.dxc.hlsl} | 0 .../d3fa1b.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => eed7c4.wgsl.expected.dxc.hlsl} | 0 .../eed7c4.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 3a5923.wgsl.expected.dxc.hlsl} | 0 .../3a5923.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 63fb83.wgsl.expected.dxc.hlsl} | 0 .../63fb83.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => a3ca7e.wgsl.expected.dxc.hlsl} | 0 .../a3ca7e.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => af1051.wgsl.expected.dxc.hlsl} | 0 .../af1051.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => dd431d.wgsl.expected.dxc.hlsl} | 0 .../dd431d.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => dec064.wgsl.expected.dxc.hlsl} | 0 .../dec064.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => 1116ed.wgsl.expected.dxc.hlsl} | 0 .../1116ed.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1568e3.wgsl.expected.dxc.hlsl} | 0 .../1568e3.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2ad2b1.wgsl.expected.dxc.hlsl} | 0 .../2ad2b1.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 4cf3a2.wgsl.expected.dxc.hlsl} | 0 .../4cf3a2.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 7f2b9a.wgsl.expected.dxc.hlsl} | 0 .../7f2b9a.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => b6e47c.wgsl.expected.dxc.hlsl} | 0 .../b6e47c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 21402b.wgsl.expected.dxc.hlsl} | 0 .../21402b.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2ecd8f.wgsl.expected.dxc.hlsl} | 0 .../2ecd8f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 521263.wgsl.expected.dxc.hlsl} | 0 .../521263.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5312f4.wgsl.expected.dxc.hlsl} | 0 .../5312f4.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5884dd.wgsl.expected.dxc.hlsl} | 0 .../5884dd.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => d4e3c5.wgsl.expected.dxc.hlsl} | 0 .../d4e3c5.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => d65515.wgsl.expected.dxc.hlsl} | 0 .../d65515.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => e383db.wgsl.expected.dxc.hlsl} | 0 .../e383db.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 02be59.wgsl.expected.dxc.hlsl} | 0 .../02be59.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 0b0a1b.wgsl.expected.dxc.hlsl} | 0 .../0b0a1b.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 0bdd9a.wgsl.expected.dxc.hlsl} | 0 .../0bdd9a.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1b0291.wgsl.expected.dxc.hlsl} | 0 .../1b0291.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1bf73e.wgsl.expected.dxc.hlsl} | 0 .../1bf73e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 302be4.wgsl.expected.dxc.hlsl} | 0 .../302be4.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 36780e.wgsl.expected.dxc.hlsl} | 0 .../36780e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 749baf.wgsl.expected.dxc.hlsl} | 0 .../749baf.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 979816.wgsl.expected.dxc.hlsl} | 0 .../979816.wgsl.expected.fxc.hlsl | 112 + ...ted.hlsl => abfcc0.wgsl.expected.dxc.hlsl} | 0 .../abfcc0.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => ae5e39.wgsl.expected.dxc.hlsl} | 0 .../ae5e39.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => b7c55c.wgsl.expected.dxc.hlsl} | 0 .../b7c55c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c32df7.wgsl.expected.dxc.hlsl} | 0 .../c32df7.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c6aca6.wgsl.expected.dxc.hlsl} | 0 .../c6aca6.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => dcbecb.wgsl.expected.dxc.hlsl} | 0 .../dcbecb.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 05ce15.wgsl.expected.dxc.hlsl} | 0 .../05ce15.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 064c7f.wgsl.expected.dxc.hlsl} | 0 .../064c7f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 068641.wgsl.expected.dxc.hlsl} | 0 .../068641.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0af6b5.wgsl.expected.dxc.hlsl} | 0 .../0af6b5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0c3dff.wgsl.expected.dxc.hlsl} | 0 .../0c3dff.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 102722.wgsl.expected.dxc.hlsl} | 0 .../102722.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 1bbd08.wgsl.expected.dxc.hlsl} | 0 .../1bbd08.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 1c02e7.wgsl.expected.dxc.hlsl} | 0 .../1c02e7.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 22d955.wgsl.expected.dxc.hlsl} | 0 .../22d955.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 26bf70.wgsl.expected.dxc.hlsl} | 0 .../26bf70.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 2796b4.wgsl.expected.dxc.hlsl} | 0 .../2796b4.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 2ac6c7.wgsl.expected.dxc.hlsl} | 0 .../2ac6c7.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 2eb2a4.wgsl.expected.dxc.hlsl} | 0 .../2eb2a4.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 2ed2a3.wgsl.expected.dxc.hlsl} | 0 .../2ed2a3.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 31745b.wgsl.expected.dxc.hlsl} | 0 .../31745b.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 32f368.wgsl.expected.dxc.hlsl} | 0 .../32f368.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 331aee.wgsl.expected.dxc.hlsl} | 0 .../331aee.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 38e8d7.wgsl.expected.dxc.hlsl} | 0 .../38e8d7.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 3a52ac.wgsl.expected.dxc.hlsl} | 0 .../3a52ac.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 3bb7a1.wgsl.expected.dxc.hlsl} | 0 .../3bb7a1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 3bec15.wgsl.expected.dxc.hlsl} | 0 .../3bec15.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 441ba8.wgsl.expected.dxc.hlsl} | 0 .../441ba8.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 4fc057.wgsl.expected.dxc.hlsl} | 0 .../4fc057.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 5a2f8f.wgsl.expected.dxc.hlsl} | 0 .../5a2f8f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 60975f.wgsl.expected.dxc.hlsl} | 0 .../60975f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 682fd6.wgsl.expected.dxc.hlsl} | 0 .../682fd6.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6b75c3.wgsl.expected.dxc.hlsl} | 0 .../6b75c3.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6b80d2.wgsl.expected.dxc.hlsl} | 0 .../6b80d2.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6cff2e.wgsl.expected.dxc.hlsl} | 0 .../6cff2e.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 6da692.wgsl.expected.dxc.hlsl} | 0 .../6da692.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 731349.wgsl.expected.dxc.hlsl} | 0 .../731349.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 752da6.wgsl.expected.dxc.hlsl} | 0 .../752da6.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 77c0ae.wgsl.expected.dxc.hlsl} | 0 .../77c0ae.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 7cec8d.wgsl.expected.dxc.hlsl} | 0 .../7cec8d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 7f7fae.wgsl.expected.dxc.hlsl} | 0 .../7f7fae.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 804942.wgsl.expected.dxc.hlsl} | 0 .../804942.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 805dae.wgsl.expected.dxc.hlsl} | 0 .../805dae.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 83bcc1.wgsl.expected.dxc.hlsl} | 0 .../83bcc1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 872747.wgsl.expected.dxc.hlsl} | 0 .../872747.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 8e0479.wgsl.expected.dxc.hlsl} | 0 .../8e0479.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 8f71a1.wgsl.expected.dxc.hlsl} | 0 .../8f71a1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 969534.wgsl.expected.dxc.hlsl} | 0 .../969534.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 9a3ecc.wgsl.expected.dxc.hlsl} | 0 .../9a3ecc.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 9d9cd5.wgsl.expected.dxc.hlsl} | 0 .../9d9cd5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 9e3ec5.wgsl.expected.dxc.hlsl} | 0 .../9e3ec5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ac67aa.wgsl.expected.dxc.hlsl} | 0 .../ac67aa.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => b706b1.wgsl.expected.dxc.hlsl} | 0 .../b706b1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => bbcb7f.wgsl.expected.dxc.hlsl} | 0 .../bbcb7f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => be6e30.wgsl.expected.dxc.hlsl} | 0 .../be6e30.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => bf775c.wgsl.expected.dxc.hlsl} | 0 .../bf775c.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c5af1e.wgsl.expected.dxc.hlsl} | 0 .../c5af1e.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c863be.wgsl.expected.dxc.hlsl} | 0 .../c863be.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => d73b5c.wgsl.expected.dxc.hlsl} | 0 .../d73b5c.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => dd7d81.wgsl.expected.dxc.hlsl} | 0 .../dd7d81.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => dde364.wgsl.expected.dxc.hlsl} | 0 .../dde364.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e885e8.wgsl.expected.dxc.hlsl} | 0 .../e885e8.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => eb702f.wgsl.expected.dxc.hlsl} | 0 .../eb702f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => eb78b9.wgsl.expected.dxc.hlsl} | 0 .../eb78b9.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ee6acc.wgsl.expected.dxc.hlsl} | 0 .../ee6acc.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ef9f2f.wgsl.expected.dxc.hlsl} | 0 .../ef9f2f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => f8dead.wgsl.expected.dxc.hlsl} | 0 .../f8dead.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => f9be83.wgsl.expected.dxc.hlsl} | 0 .../f9be83.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => fb9a8f.wgsl.expected.dxc.hlsl} | 0 .../fb9a8f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => fbf53f.wgsl.expected.dxc.hlsl} | 0 .../fbf53f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 2585cd.wgsl.expected.dxc.hlsl} | 0 .../transpose/2585cd.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 31d679.wgsl.expected.dxc.hlsl} | 0 .../transpose/31d679.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 31e37e.wgsl.expected.dxc.hlsl} | 0 .../transpose/31e37e.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4ce359.wgsl.expected.dxc.hlsl} | 0 .../transpose/4ce359.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 4dc9a1.wgsl.expected.dxc.hlsl} | 0 .../transpose/4dc9a1.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 854336.wgsl.expected.dxc.hlsl} | 0 .../transpose/854336.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => c1b600.wgsl.expected.dxc.hlsl} | 0 .../transpose/c1b600.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => d8f8ba.wgsl.expected.dxc.hlsl} | 0 .../transpose/d8f8ba.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => ed4bdc.wgsl.expected.dxc.hlsl} | 0 .../transpose/ed4bdc.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 562d05.wgsl.expected.dxc.hlsl} | 0 .../trunc/562d05.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => e183aa.wgsl.expected.dxc.hlsl} | 0 .../trunc/e183aa.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => eb83df.wgsl.expected.dxc.hlsl} | 0 .../trunc/eb83df.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => f370d3.wgsl.expected.dxc.hlsl} | 0 .../trunc/f370d3.wgsl.expected.fxc.hlsl | 30 + ...ted.hlsl => 32a5cf.wgsl.expected.dxc.hlsl} | 0 .../32a5cf.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => b4aea6.wgsl.expected.dxc.hlsl} | 0 .../b4aea6.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 7699c0.wgsl.expected.dxc.hlsl} | 0 .../7699c0.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 523fb3.wgsl.expected.dxc.hlsl} | 0 .../523fb3.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 750c74.wgsl.expected.dxc.hlsl} | 0 .../750c74.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => a17f7f.wgsl.expected.dxc.hlsl} | 0 .../a17f7f.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => 002533.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/002533.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 005174.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/005174.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1ce782.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/1ce782.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1e9d53.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/1e9d53.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 467cd1.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/467cd1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4ad288.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/4ad288.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 5ad50a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/5ad50a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7326de.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/7326de.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7f28e6.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/7f28e6.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7faa9e.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/7faa9e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 9c80a6.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/9c80a6.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b96037.wgsl.expected.dxc.hlsl} | 0 .../gen/var/abs/b96037.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 489247.wgsl.expected.dxc.hlsl} | 0 .../var/acos/489247.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 8e2acf.wgsl.expected.dxc.hlsl} | 0 .../var/acos/8e2acf.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a610c4.wgsl.expected.dxc.hlsl} | 0 .../var/acos/a610c4.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => dfc915.wgsl.expected.dxc.hlsl} | 0 .../var/acos/dfc915.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 640883.wgsl.expected.dxc.hlsl} | 0 .../var/acosh/640883.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => d51ccb.wgsl.expected.dxc.hlsl} | 0 .../var/acosh/d51ccb.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => e38f5c.wgsl.expected.dxc.hlsl} | 0 .../var/acosh/e38f5c.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => ecf2d1.wgsl.expected.dxc.hlsl} | 0 .../var/acosh/ecf2d1.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 353d6a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/all/353d6a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 986c7b.wgsl.expected.dxc.hlsl} | 0 .../gen/var/all/986c7b.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => bd2dba.wgsl.expected.dxc.hlsl} | 0 .../gen/var/all/bd2dba.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => f46790.wgsl.expected.dxc.hlsl} | 0 .../gen/var/all/f46790.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 083428.wgsl.expected.dxc.hlsl} | 0 .../gen/var/any/083428.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0e3e58.wgsl.expected.dxc.hlsl} | 0 .../gen/var/any/0e3e58.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 2ab91a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/any/2ab91a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e755c1.wgsl.expected.dxc.hlsl} | 0 .../gen/var/any/e755c1.wgsl.expected.fxc.hlsl | 31 + .../arrayLength/1588cd.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/1588cd.wgsl.expected.fxc.hlsl | 35 + .../arrayLength/61b1c7.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/61b1c7.wgsl.expected.fxc.hlsl | 35 + .../arrayLength/8421b9.wgsl.expected.dxc.hlsl | 1 + .../arrayLength/8421b9.wgsl.expected.fxc.hlsl | 1 + .../arrayLength/a0f5ca.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/a0f5ca.wgsl.expected.fxc.hlsl | 35 + .../arrayLength/cbd6b5.wgsl.expected.dxc.hlsl | 1 + .../arrayLength/cbd6b5.wgsl.expected.fxc.hlsl | 1 + .../arrayLength/cdd123.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/cdd123.wgsl.expected.fxc.hlsl | 35 + .../arrayLength/cfca0a.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/cfca0a.wgsl.expected.fxc.hlsl | 35 + .../arrayLength/eb510f.wgsl.expected.dxc.hlsl | 35 + .../arrayLength/eb510f.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 064953.wgsl.expected.dxc.hlsl} | 0 .../var/asin/064953.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7b6a44.wgsl.expected.dxc.hlsl} | 0 .../var/asin/7b6a44.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 8cd9c9.wgsl.expected.dxc.hlsl} | 0 .../var/asin/8cd9c9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c0c272.wgsl.expected.dxc.hlsl} | 0 .../var/asin/c0c272.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 157447.wgsl.expected.dxc.hlsl} | 0 .../var/asinh/157447.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2265ee.wgsl.expected.dxc.hlsl} | 0 .../var/asinh/2265ee.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 4a2226.wgsl.expected.dxc.hlsl} | 0 .../var/asinh/4a2226.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 8d2e51.wgsl.expected.dxc.hlsl} | 0 .../var/asinh/8d2e51.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 02979a.wgsl.expected.dxc.hlsl} | 0 .../var/atan/02979a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 331e6d.wgsl.expected.dxc.hlsl} | 0 .../var/atan/331e6d.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a8b696.wgsl.expected.dxc.hlsl} | 0 .../var/atan/a8b696.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => ad96e4.wgsl.expected.dxc.hlsl} | 0 .../var/atan/ad96e4.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 57fb13.wgsl.expected.dxc.hlsl} | 0 .../var/atan2/57fb13.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 96057c.wgsl.expected.dxc.hlsl} | 0 .../var/atan2/96057c.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => a70d0d.wgsl.expected.dxc.hlsl} | 0 .../var/atan2/a70d0d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ae713e.wgsl.expected.dxc.hlsl} | 0 .../var/atan2/ae713e.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 440cca.wgsl.expected.dxc.hlsl} | 0 .../var/atanh/440cca.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 7997d8.wgsl.expected.dxc.hlsl} | 0 .../var/atanh/7997d8.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => c0e634.wgsl.expected.dxc.hlsl} | 0 .../var/atanh/c0e634.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => f3e01b.wgsl.expected.dxc.hlsl} | 0 .../var/atanh/f3e01b.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 794055.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/794055.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 8a199a.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/8a199a.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => d32fe4.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/d32fe4.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => d5db1d.wgsl.expected.dxc.hlsl} | 0 .../atomicAdd/d5db1d.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 152966.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/152966.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 34edd3.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/34edd3.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 45a819.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/45a819.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 85a8d9.wgsl.expected.dxc.hlsl} | 0 .../atomicAnd/85a8d9.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 1bd40a.wgsl.expected.dxc.hlsl} | 0 .../1bd40a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 63d8e6.wgsl.expected.dxc.hlsl} | 0 .../63d8e6.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 83580d.wgsl.expected.dxc.hlsl} | 0 .../83580d.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => e88938.wgsl.expected.dxc.hlsl} | 0 .../e88938.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 0a5dca.wgsl.expected.dxc.hlsl} | 0 .../0a5dca.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => d59712.wgsl.expected.dxc.hlsl} | 0 .../d59712.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => e114ba.wgsl.expected.dxc.hlsl} | 0 .../e114ba.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => f2e22f.wgsl.expected.dxc.hlsl} | 0 .../f2e22f.wgsl.expected.fxc.hlsl | 24 + .../atomicLoad/0806ad.wgsl.expected.dxc.hlsl | 23 + .../atomicLoad/0806ad.wgsl.expected.fxc.hlsl | 23 + .../atomicLoad/361bf1.wgsl.expected.dxc.hlsl | 26 + .../atomicLoad/361bf1.wgsl.expected.fxc.hlsl | 26 + .../atomicLoad/afcc03.wgsl.expected.dxc.hlsl | 26 + .../atomicLoad/afcc03.wgsl.expected.fxc.hlsl | 26 + .../atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl | 23 + .../atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 51b9be.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/51b9be.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 92aa72.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/92aa72.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => a89cc3.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/a89cc3.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => beccfc.wgsl.expected.dxc.hlsl} | 0 .../atomicMax/beccfc.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 278235.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/278235.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 69d383.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/69d383.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 8e38dc.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/8e38dc.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => c67a74.wgsl.expected.dxc.hlsl} | 0 .../atomicMin/c67a74.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 5e3d61.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/5e3d61.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 5e95d4.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/5e95d4.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 8d96a0.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/8d96a0.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => d09248.wgsl.expected.dxc.hlsl} | 0 .../atomicOr/d09248.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 726882.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/726882.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => 8bea94.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/8bea94.wgsl.expected.fxc.hlsl | 26 + ...ted.hlsl => cdc29e.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/cdc29e.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => d1e9a6.wgsl.expected.dxc.hlsl} | 0 .../atomicStore/d1e9a6.wgsl.expected.fxc.hlsl | 23 + ...ted.hlsl => 051100.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/051100.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 0d26c2.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/0d26c2.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 15bfc9.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/15bfc9.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 77883a.wgsl.expected.dxc.hlsl} | 0 .../atomicSub/77883a.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 54510e.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/54510e.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => 75dc95.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/75dc95.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => c1b78c.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/c1b78c.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => c8e6be.wgsl.expected.dxc.hlsl} | 0 .../atomicXor/c8e6be.wgsl.expected.fxc.hlsl | 27 + ...ted.hlsl => 34064b.wgsl.expected.dxc.hlsl} | 0 .../var/ceil/34064b.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 678655.wgsl.expected.dxc.hlsl} | 0 .../var/ceil/678655.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 96f597.wgsl.expected.dxc.hlsl} | 0 .../var/ceil/96f597.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b74c16.wgsl.expected.dxc.hlsl} | 0 .../var/ceil/b74c16.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0acf8f.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/0acf8f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1a32e3.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/1a32e3.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2bd567.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/2bd567.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2bde41.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/2bde41.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 548fc7.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/548fc7.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 5f0819.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/5f0819.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 6c1749.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/6c1749.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 7706d7.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/7706d7.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 867397.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/867397.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => a2de25.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/a2de25.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => b07c65.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/b07c65.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => bd43ce.wgsl.expected.dxc.hlsl} | 0 .../var/clamp/bd43ce.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 16dc15.wgsl.expected.dxc.hlsl} | 0 .../gen/var/cos/16dc15.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 29d66d.wgsl.expected.dxc.hlsl} | 0 .../gen/var/cos/29d66d.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c3b486.wgsl.expected.dxc.hlsl} | 0 .../gen/var/cos/c3b486.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c5c28e.wgsl.expected.dxc.hlsl} | 0 .../gen/var/cos/c5c28e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 377652.wgsl.expected.dxc.hlsl} | 0 .../var/cosh/377652.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c13756.wgsl.expected.dxc.hlsl} | 0 .../var/cosh/c13756.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => da92dd.wgsl.expected.dxc.hlsl} | 0 .../var/cosh/da92dd.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e0c1de.wgsl.expected.dxc.hlsl} | 0 .../var/cosh/e0c1de.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 208d46.wgsl.expected.dxc.hlsl} | 0 .../208d46.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 6d4656.wgsl.expected.dxc.hlsl} | 0 .../6d4656.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 70783f.wgsl.expected.dxc.hlsl} | 0 .../70783f.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 7c38a6.wgsl.expected.dxc.hlsl} | 0 .../7c38a6.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 858d40.wgsl.expected.dxc.hlsl} | 0 .../858d40.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => ab6345.wgsl.expected.dxc.hlsl} | 0 .../ab6345.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => eab32b.wgsl.expected.dxc.hlsl} | 0 .../eab32b.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => f70103.wgsl.expected.dxc.hlsl} | 0 .../f70103.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 0d0e46.wgsl.expected.dxc.hlsl} | 0 .../0d0e46.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0f7980.wgsl.expected.dxc.hlsl} | 0 .../0f7980.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 65d2ae.wgsl.expected.dxc.hlsl} | 0 .../65d2ae.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 690cfc.wgsl.expected.dxc.hlsl} | 0 .../690cfc.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 94fd81.wgsl.expected.dxc.hlsl} | 0 .../94fd81.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => ae44f9.wgsl.expected.dxc.hlsl} | 0 .../ae44f9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => af90e2.wgsl.expected.dxc.hlsl} | 0 .../af90e2.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => fd88b2.wgsl.expected.dxc.hlsl} | 0 .../fd88b2.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1ad138.wgsl.expected.dxc.hlsl} | 0 .../1ad138.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 1dc84a.wgsl.expected.dxc.hlsl} | 0 .../1dc84a.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 21e394.wgsl.expected.dxc.hlsl} | 0 .../21e394.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 327c37.wgsl.expected.dxc.hlsl} | 0 .../327c37.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 42fed6.wgsl.expected.dxc.hlsl} | 0 .../42fed6.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 8ed26f.wgsl.expected.dxc.hlsl} | 0 .../8ed26f.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => acfacb.wgsl.expected.dxc.hlsl} | 0 .../acfacb.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => d2b4a0.wgsl.expected.dxc.hlsl} | 0 .../d2b4a0.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 041cb0.wgsl.expected.dxc.hlsl} | 0 .../var/cross/041cb0.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0d170c.wgsl.expected.dxc.hlsl} | 0 .../var/degrees/0d170c.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 1ad5df.wgsl.expected.dxc.hlsl} | 0 .../var/degrees/1ad5df.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2af623.wgsl.expected.dxc.hlsl} | 0 .../var/degrees/2af623.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 51f705.wgsl.expected.dxc.hlsl} | 0 .../var/degrees/51f705.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2b62ba.wgsl.expected.dxc.hlsl} | 0 .../determinant/2b62ba.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a0a87c.wgsl.expected.dxc.hlsl} | 0 .../determinant/a0a87c.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e19305.wgsl.expected.dxc.hlsl} | 0 .../determinant/e19305.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0657d4.wgsl.expected.dxc.hlsl} | 0 .../distance/0657d4.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 9646ea.wgsl.expected.dxc.hlsl} | 0 .../distance/9646ea.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => aa4055.wgsl.expected.dxc.hlsl} | 0 .../distance/aa4055.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => cfed73.wgsl.expected.dxc.hlsl} | 0 .../distance/cfed73.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0c577b.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/0c577b.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 7548a0.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/7548a0.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 883f0e.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/883f0e.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 97c7ee.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/97c7ee.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ba4246.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/ba4246.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e994c7.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/e994c7.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ef6b1d.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/ef6b1d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => f1312c.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/f1312c.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => fc5f7c.wgsl.expected.dxc.hlsl} | 0 .../gen/var/dot/fc5f7c.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0763f7.wgsl.expected.dxc.hlsl} | 0 .../var/dpdx/0763f7.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 99edb1.wgsl.expected.dxc.hlsl} | 0 .../var/dpdx/99edb1.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => c487fa.wgsl.expected.dxc.hlsl} | 0 .../var/dpdx/c487fa.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => e263de.wgsl.expected.dxc.hlsl} | 0 .../var/dpdx/e263de.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 029152.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/029152.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 9581cf.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => c28641.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/c28641.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => f64d7b.wgsl.expected.dxc.hlsl} | 0 .../dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 8c5069.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/8c5069.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 9631de.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/9631de.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => f401a2.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/f401a2.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => f92fb6.wgsl.expected.dxc.hlsl} | 0 .../dpdxFine/f92fb6.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 699a05.wgsl.expected.dxc.hlsl} | 0 .../var/dpdy/699a05.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 7f8d84.wgsl.expected.dxc.hlsl} | 0 .../var/dpdy/7f8d84.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => a8b56e.wgsl.expected.dxc.hlsl} | 0 .../var/dpdy/a8b56e.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => feb40f.wgsl.expected.dxc.hlsl} | 0 .../var/dpdy/feb40f.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 3e1ab4.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 445d24.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/445d24.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 870a7e.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => ae1873.wgsl.expected.dxc.hlsl} | 0 .../dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 1fb7ab.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 6eb673.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/6eb673.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => d0a648.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/d0a648.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => df33aa.wgsl.expected.dxc.hlsl} | 0 .../dpdyFine/df33aa.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 0f70eb.wgsl.expected.dxc.hlsl} | 0 .../gen/var/exp/0f70eb.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1951e7.wgsl.expected.dxc.hlsl} | 0 .../gen/var/exp/1951e7.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 771fd2.wgsl.expected.dxc.hlsl} | 0 .../gen/var/exp/771fd2.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => d98450.wgsl.expected.dxc.hlsl} | 0 .../gen/var/exp/d98450.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1f8680.wgsl.expected.dxc.hlsl} | 0 .../var/exp2/1f8680.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a9d0a7.wgsl.expected.dxc.hlsl} | 0 .../var/exp2/a9d0a7.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => d6777c.wgsl.expected.dxc.hlsl} | 0 .../var/exp2/d6777c.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => dea523.wgsl.expected.dxc.hlsl} | 0 .../var/exp2/dea523.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 12b197.wgsl.expected.dxc.hlsl} | 0 .../extractBits/12b197.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 249874.wgsl.expected.dxc.hlsl} | 0 .../extractBits/249874.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 631377.wgsl.expected.dxc.hlsl} | 0 .../extractBits/631377.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => a99a8d.wgsl.expected.dxc.hlsl} | 0 .../extractBits/a99a8d.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => ce81f8.wgsl.expected.dxc.hlsl} | 0 .../extractBits/ce81f8.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => e04f5d.wgsl.expected.dxc.hlsl} | 0 .../extractBits/e04f5d.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => f28f69.wgsl.expected.dxc.hlsl} | 0 .../extractBits/f28f69.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => fb850f.wgsl.expected.dxc.hlsl} | 0 .../extractBits/fb850f.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 5afbd5.wgsl.expected.dxc.hlsl} | 0 .../faceForward/5afbd5.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => b316e5.wgsl.expected.dxc.hlsl} | 0 .../faceForward/b316e5.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => e6908b.wgsl.expected.dxc.hlsl} | 0 .../faceForward/e6908b.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 000ff3.wgsl.expected.dxc.hlsl} | 0 .../000ff3.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 35053e.wgsl.expected.dxc.hlsl} | 0 .../35053e.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 3fd7d0.wgsl.expected.dxc.hlsl} | 0 .../3fd7d0.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 57a1a3.wgsl.expected.dxc.hlsl} | 0 .../57a1a3.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 6fe804.wgsl.expected.dxc.hlsl} | 0 .../6fe804.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => a622c2.wgsl.expected.dxc.hlsl} | 0 .../a622c2.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => c1f940.wgsl.expected.dxc.hlsl} | 0 .../c1f940.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => f0779d.wgsl.expected.dxc.hlsl} | 0 .../f0779d.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 110f2c.wgsl.expected.dxc.hlsl} | 0 .../110f2c.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 3a2acc.wgsl.expected.dxc.hlsl} | 0 .../3a2acc.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 45eb10.wgsl.expected.dxc.hlsl} | 0 .../45eb10.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 47d475.wgsl.expected.dxc.hlsl} | 0 .../47d475.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 50c072.wgsl.expected.dxc.hlsl} | 0 .../50c072.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 7496d6.wgsl.expected.dxc.hlsl} | 0 .../7496d6.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 86551b.wgsl.expected.dxc.hlsl} | 0 .../86551b.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => cb51ce.wgsl.expected.dxc.hlsl} | 0 .../cb51ce.wgsl.expected.fxc.hlsl | 46 + ...ted.hlsl => 3bccc4.wgsl.expected.dxc.hlsl} | 0 .../var/floor/3bccc4.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 5fc9ac.wgsl.expected.dxc.hlsl} | 0 .../var/floor/5fc9ac.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 60d7ea.wgsl.expected.dxc.hlsl} | 0 .../var/floor/60d7ea.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 66f154.wgsl.expected.dxc.hlsl} | 0 .../var/floor/66f154.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 26a7a9.wgsl.expected.dxc.hlsl} | 0 .../gen/var/fma/26a7a9.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 6a3283.wgsl.expected.dxc.hlsl} | 0 .../gen/var/fma/6a3283.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c10ba3.wgsl.expected.dxc.hlsl} | 0 .../gen/var/fma/c10ba3.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => e17c5c.wgsl.expected.dxc.hlsl} | 0 .../gen/var/fma/e17c5c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 8bc1e9.wgsl.expected.dxc.hlsl} | 0 .../var/fract/8bc1e9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 943cb1.wgsl.expected.dxc.hlsl} | 0 .../var/fract/943cb1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a49758.wgsl.expected.dxc.hlsl} | 0 .../var/fract/a49758.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => fa5c71.wgsl.expected.dxc.hlsl} | 0 .../var/fract/fa5c71.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 368997.wgsl.expected.dxc.hlsl} | 0 .../var/frexp/368997.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => 3c4f48.wgsl.expected.dxc.hlsl} | 0 .../var/frexp/3c4f48.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => 4bdfc7.wgsl.expected.dxc.hlsl} | 0 .../var/frexp/4bdfc7.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => eabd40.wgsl.expected.dxc.hlsl} | 0 .../var/frexp/eabd40.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => 5d1b39.wgsl.expected.dxc.hlsl} | 0 .../var/fwidth/5d1b39.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => b83ebb.wgsl.expected.dxc.hlsl} | 0 .../var/fwidth/b83ebb.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => d2ab9a.wgsl.expected.dxc.hlsl} | 0 .../var/fwidth/d2ab9a.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => df38ef.wgsl.expected.dxc.hlsl} | 0 .../var/fwidth/df38ef.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 159c8a.wgsl.expected.dxc.hlsl} | 0 .../159c8a.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 1e59d9.wgsl.expected.dxc.hlsl} | 0 .../1e59d9.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 4e4fc4.wgsl.expected.dxc.hlsl} | 0 .../4e4fc4.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => e653f7.wgsl.expected.dxc.hlsl} | 0 .../e653f7.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 523fdc.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/523fdc.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 68f4ef.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/68f4ef.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => f1742d.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/f1742d.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => ff6aa0.wgsl.expected.dxc.hlsl} | 0 .../fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 3c7ba5.wgsl.expected.dxc.hlsl} | 0 .../insertBits/3c7ba5.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 428b0b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/428b0b.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 51ede1.wgsl.expected.dxc.hlsl} | 0 .../insertBits/51ede1.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 65468b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/65468b.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 87826b.wgsl.expected.dxc.hlsl} | 0 .../insertBits/87826b.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => d86978.wgsl.expected.dxc.hlsl} | 0 .../insertBits/d86978.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => e3e3a2.wgsl.expected.dxc.hlsl} | 0 .../insertBits/e3e3a2.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => fe6ba6.wgsl.expected.dxc.hlsl} | 0 .../insertBits/fe6ba6.wgsl.expected.fxc.hlsl | 41 + ...ted.hlsl => 84407e.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/84407e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 8f2bd2.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b197b1.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/b197b1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c22347.wgsl.expected.dxc.hlsl} | 0 .../inverseSqrt/c22347.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a31cdc.wgsl.expected.dxc.hlsl} | 0 .../var/ldexp/a31cdc.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => abd718.wgsl.expected.dxc.hlsl} | 0 .../var/ldexp/abd718.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => cc9cde.wgsl.expected.dxc.hlsl} | 0 .../var/ldexp/cc9cde.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => db8b49.wgsl.expected.dxc.hlsl} | 0 .../var/ldexp/db8b49.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 056071.wgsl.expected.dxc.hlsl} | 0 .../var/length/056071.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 602a17.wgsl.expected.dxc.hlsl} | 0 .../var/length/602a17.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => afde8b.wgsl.expected.dxc.hlsl} | 0 .../var/length/afde8b.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => becebf.wgsl.expected.dxc.hlsl} | 0 .../var/length/becebf.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 3da25a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/log/3da25a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7114a6.wgsl.expected.dxc.hlsl} | 0 .../gen/var/log/7114a6.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b2ce28.wgsl.expected.dxc.hlsl} | 0 .../gen/var/log/b2ce28.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => f4c570.wgsl.expected.dxc.hlsl} | 0 .../gen/var/log/f4c570.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4036ed.wgsl.expected.dxc.hlsl} | 0 .../var/log2/4036ed.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 902988.wgsl.expected.dxc.hlsl} | 0 .../var/log2/902988.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => adb233.wgsl.expected.dxc.hlsl} | 0 .../var/log2/adb233.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => aea659.wgsl.expected.dxc.hlsl} | 0 .../var/log2/aea659.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0c0aae.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/0c0aae.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 25eafe.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/25eafe.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 320815.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/320815.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 44a39d.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/44a39d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 453e04.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/453e04.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 462050.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/462050.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 4883ac.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/4883ac.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 85e6bc.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/85e6bc.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => a93419.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/a93419.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => b1b73a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/b1b73a.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => ce7c30.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/ce7c30.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e8192f.wgsl.expected.dxc.hlsl} | 0 .../gen/var/max/e8192f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 03c7e3.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/03c7e3.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0dc614.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/0dc614.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 3941e1.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/3941e1.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 46c5d3.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/46c5d3.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 82b28f.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/82b28f.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 93cfc4.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/93cfc4.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => a45171.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/a45171.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => aa28ad.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/aa28ad.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => af326d.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/af326d.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c70bb7.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/c70bb7.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c73147.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/c73147.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => c76fa6.wgsl.expected.dxc.hlsl} | 0 .../gen/var/min/c76fa6.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 0c8c33.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/0c8c33.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1faeb1.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/1faeb1.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 2fadab.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/2fadab.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 315264.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/315264.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 4f0b5e.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/4f0b5e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 6f8adc.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/6f8adc.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c37ede.wgsl.expected.dxc.hlsl} | 0 .../gen/var/mix/c37ede.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 180fed.wgsl.expected.dxc.hlsl} | 0 .../var/modf/180fed.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => 9b75f7.wgsl.expected.dxc.hlsl} | 0 .../var/modf/9b75f7.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => ec2dbc.wgsl.expected.dxc.hlsl} | 0 .../var/modf/ec2dbc.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => f5f20d.wgsl.expected.dxc.hlsl} | 0 .../var/modf/f5f20d.wgsl.expected.fxc.hlsl | 42 + ...ted.hlsl => 64d8c0.wgsl.expected.dxc.hlsl} | 0 .../normalize/64d8c0.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 9a0aab.wgsl.expected.dxc.hlsl} | 0 .../normalize/9a0aab.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => fc2ef1.wgsl.expected.dxc.hlsl} | 0 .../normalize/fc2ef1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0e97b3.wgsl.expected.dxc.hlsl} | 0 .../0e97b3.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 6c169b.wgsl.expected.dxc.hlsl} | 0 .../6c169b.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 0f08e4.wgsl.expected.dxc.hlsl} | 0 .../0f08e4.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 4d22e7.wgsl.expected.dxc.hlsl} | 0 .../4d22e7.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 95c456.wgsl.expected.dxc.hlsl} | 0 .../95c456.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 04a908.wgsl.expected.dxc.hlsl} | 0 .../gen/var/pow/04a908.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 46e029.wgsl.expected.dxc.hlsl} | 0 .../gen/var/pow/46e029.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 4a46c9.wgsl.expected.dxc.hlsl} | 0 .../gen/var/pow/4a46c9.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e60ea5.wgsl.expected.dxc.hlsl} | 0 .../gen/var/pow/e60ea5.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 09b7fc.wgsl.expected.dxc.hlsl} | 0 .../var/radians/09b7fc.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 61687a.wgsl.expected.dxc.hlsl} | 0 .../var/radians/61687a.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 6b0ff2.wgsl.expected.dxc.hlsl} | 0 .../var/radians/6b0ff2.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => f96258.wgsl.expected.dxc.hlsl} | 0 .../var/radians/f96258.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 05357e.wgsl.expected.dxc.hlsl} | 0 .../var/reflect/05357e.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => b61e10.wgsl.expected.dxc.hlsl} | 0 .../var/reflect/b61e10.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => f47fdb.wgsl.expected.dxc.hlsl} | 0 .../var/reflect/f47fdb.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 7e02e6.wgsl.expected.dxc.hlsl} | 0 .../var/refract/7e02e6.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => cbc1d2.wgsl.expected.dxc.hlsl} | 0 .../var/refract/cbc1d2.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => cd905f.wgsl.expected.dxc.hlsl} | 0 .../var/refract/cd905f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 222177.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/222177.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 35fea9.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/35fea9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4dbd6f.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/4dbd6f.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7c4269.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/7c4269.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => a6ccd4.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/a6ccd4.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c21bc1.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/c21bc1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e1f4c1.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/e1f4c1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e31adf.wgsl.expected.dxc.hlsl} | 0 .../reverseBits/e31adf.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 106c0b.wgsl.expected.dxc.hlsl} | 0 .../var/round/106c0b.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 1c7897.wgsl.expected.dxc.hlsl} | 0 .../var/round/1c7897.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 52c84d.wgsl.expected.dxc.hlsl} | 0 .../var/round/52c84d.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 9edc38.wgsl.expected.dxc.hlsl} | 0 .../var/round/9edc38.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 00b848.wgsl.expected.dxc.hlsl} | 0 .../var/select/00b848.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 01e2cd.wgsl.expected.dxc.hlsl} | 0 .../var/select/01e2cd.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 087ea4.wgsl.expected.dxc.hlsl} | 0 .../var/select/087ea4.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 1e960b.wgsl.expected.dxc.hlsl} | 0 .../var/select/1e960b.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 266aff.wgsl.expected.dxc.hlsl} | 0 .../var/select/266aff.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 28a27e.wgsl.expected.dxc.hlsl} | 0 .../var/select/28a27e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 3c25ce.wgsl.expected.dxc.hlsl} | 0 .../var/select/3c25ce.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 416e14.wgsl.expected.dxc.hlsl} | 0 .../var/select/416e14.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 51b047.wgsl.expected.dxc.hlsl} | 0 .../var/select/51b047.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 713567.wgsl.expected.dxc.hlsl} | 0 .../var/select/713567.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 78be5f.wgsl.expected.dxc.hlsl} | 0 .../var/select/78be5f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 80a9a9.wgsl.expected.dxc.hlsl} | 0 .../var/select/80a9a9.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 8fa62c.wgsl.expected.dxc.hlsl} | 0 .../var/select/8fa62c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 99f883.wgsl.expected.dxc.hlsl} | 0 .../var/select/99f883.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => a2860e.wgsl.expected.dxc.hlsl} | 0 .../var/select/a2860e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => ab069f.wgsl.expected.dxc.hlsl} | 0 .../var/select/ab069f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => b04721.wgsl.expected.dxc.hlsl} | 0 .../var/select/b04721.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => bb447f.wgsl.expected.dxc.hlsl} | 0 .../var/select/bb447f.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => bb8aae.wgsl.expected.dxc.hlsl} | 0 .../var/select/bb8aae.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => bf3d29.wgsl.expected.dxc.hlsl} | 0 .../var/select/bf3d29.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c31f9e.wgsl.expected.dxc.hlsl} | 0 .../var/select/c31f9e.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c41bd1.wgsl.expected.dxc.hlsl} | 0 .../var/select/c41bd1.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => c4a4ef.wgsl.expected.dxc.hlsl} | 0 .../var/select/c4a4ef.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => cb9301.wgsl.expected.dxc.hlsl} | 0 .../var/select/cb9301.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => e3e028.wgsl.expected.dxc.hlsl} | 0 .../var/select/e3e028.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => ebfea2.wgsl.expected.dxc.hlsl} | 0 .../var/select/ebfea2.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => ed8a15.wgsl.expected.dxc.hlsl} | 0 .../var/select/ed8a15.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => fb7e53.wgsl.expected.dxc.hlsl} | 0 .../var/select/fb7e53.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 159665.wgsl.expected.dxc.hlsl} | 0 .../var/sign/159665.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b8f634.wgsl.expected.dxc.hlsl} | 0 .../var/sign/b8f634.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => d065d8.wgsl.expected.dxc.hlsl} | 0 .../var/sign/d065d8.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => dd790e.wgsl.expected.dxc.hlsl} | 0 .../var/sign/dd790e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 01f241.wgsl.expected.dxc.hlsl} | 0 .../gen/var/sin/01f241.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4e3979.wgsl.expected.dxc.hlsl} | 0 .../gen/var/sin/4e3979.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b78c91.wgsl.expected.dxc.hlsl} | 0 .../gen/var/sin/b78c91.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => fc8bc4.wgsl.expected.dxc.hlsl} | 0 .../gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 445e33.wgsl.expected.dxc.hlsl} | 0 .../var/sinh/445e33.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7bb598.wgsl.expected.dxc.hlsl} | 0 .../var/sinh/7bb598.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => b9860e.wgsl.expected.dxc.hlsl} | 0 .../var/sinh/b9860e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c9a5eb.wgsl.expected.dxc.hlsl} | 0 .../var/sinh/c9a5eb.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 392c19.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/392c19.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 40864c.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/40864c.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 6c4975.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/6c4975.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => aad1db.wgsl.expected.dxc.hlsl} | 0 .../smoothstep/aad1db.wgsl.expected.fxc.hlsl | 33 + ...ted.hlsl => 20c74e.wgsl.expected.dxc.hlsl} | 0 .../var/sqrt/20c74e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 8c7024.wgsl.expected.dxc.hlsl} | 0 .../var/sqrt/8c7024.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => aa0d7a.wgsl.expected.dxc.hlsl} | 0 .../var/sqrt/aa0d7a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => f8c59a.wgsl.expected.dxc.hlsl} | 0 .../var/sqrt/f8c59a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 0b073b.wgsl.expected.dxc.hlsl} | 0 .../var/step/0b073b.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 19accd.wgsl.expected.dxc.hlsl} | 0 .../var/step/19accd.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => 334303.wgsl.expected.dxc.hlsl} | 0 .../var/step/334303.wgsl.expected.fxc.hlsl | 32 + ...ted.hlsl => e2b337.wgsl.expected.dxc.hlsl} | 0 .../var/step/e2b337.wgsl.expected.fxc.hlsl | 32 + .../d87211.wgsl.expected.dxc.hlsl | 9 + .../d87211.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => 244e2a.wgsl.expected.dxc.hlsl} | 0 .../gen/var/tan/244e2a.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 2f030e.wgsl.expected.dxc.hlsl} | 0 .../gen/var/tan/2f030e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 7ea104.wgsl.expected.dxc.hlsl} | 0 .../gen/var/tan/7ea104.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 8ce3e9.wgsl.expected.dxc.hlsl} | 0 .../gen/var/tan/8ce3e9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 5663c5.wgsl.expected.dxc.hlsl} | 0 .../var/tanh/5663c5.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 5724b3.wgsl.expected.dxc.hlsl} | 0 .../var/tanh/5724b3.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 9f9fb9.wgsl.expected.dxc.hlsl} | 0 .../var/tanh/9f9fb9.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c15fdb.wgsl.expected.dxc.hlsl} | 0 .../var/tanh/c15fdb.wgsl.expected.fxc.hlsl | 31 + .../002b2a.wgsl.expected.dxc.hlsl | 34 + .../002b2a.wgsl.expected.fxc.hlsl | 34 + .../012b82.wgsl.expected.dxc.hlsl | 34 + .../012b82.wgsl.expected.fxc.hlsl | 34 + .../08753d.wgsl.expected.dxc.hlsl | 34 + .../08753d.wgsl.expected.fxc.hlsl | 34 + .../0c4772.wgsl.expected.dxc.hlsl | 34 + .../0c4772.wgsl.expected.fxc.hlsl | 34 + .../0cce40.wgsl.expected.dxc.hlsl | 34 + .../0cce40.wgsl.expected.fxc.hlsl | 34 + .../0cf2ff.wgsl.expected.dxc.hlsl | 34 + .../0cf2ff.wgsl.expected.fxc.hlsl | 34 + .../0d8b7e.wgsl.expected.dxc.hlsl | 34 + .../0d8b7e.wgsl.expected.fxc.hlsl | 34 + .../0e32ee.wgsl.expected.dxc.hlsl | 34 + .../0e32ee.wgsl.expected.fxc.hlsl | 34 + .../0f3c50.wgsl.expected.dxc.hlsl | 34 + .../0f3c50.wgsl.expected.fxc.hlsl | 34 + .../1191a5.wgsl.expected.dxc.hlsl | 34 + .../1191a5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 12c9bb.wgsl.expected.dxc.hlsl} | 0 .../12c9bb.wgsl.expected.fxc.hlsl | 35 + .../147998.wgsl.expected.dxc.hlsl | 34 + .../147998.wgsl.expected.fxc.hlsl | 34 + .../16036c.wgsl.expected.dxc.hlsl | 34 + .../16036c.wgsl.expected.fxc.hlsl | 34 + .../1b71f0.wgsl.expected.dxc.hlsl | 34 + .../1b71f0.wgsl.expected.fxc.hlsl | 34 + .../1d6c26.wgsl.expected.dxc.hlsl | 34 + .../1d6c26.wgsl.expected.fxc.hlsl | 34 + .../1e9e39.wgsl.expected.dxc.hlsl | 34 + .../1e9e39.wgsl.expected.fxc.hlsl | 34 + .../1f20c5.wgsl.expected.dxc.hlsl | 34 + .../1f20c5.wgsl.expected.fxc.hlsl | 34 + .../214dd4.wgsl.expected.dxc.hlsl | 34 + .../214dd4.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 221f22.wgsl.expected.dxc.hlsl} | 0 .../221f22.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 267788.wgsl.expected.dxc.hlsl} | 0 .../267788.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 26bdfa.wgsl.expected.dxc.hlsl} | 0 .../26bdfa.wgsl.expected.fxc.hlsl | 35 + .../26ef6c.wgsl.expected.dxc.hlsl | 34 + .../26ef6c.wgsl.expected.fxc.hlsl | 34 + .../2ad087.wgsl.expected.dxc.hlsl | 34 + .../2ad087.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2efa05.wgsl.expected.dxc.hlsl} | 0 .../2efa05.wgsl.expected.fxc.hlsl | 35 + .../2f289f.wgsl.expected.dxc.hlsl | 34 + .../2f289f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2fe1cc.wgsl.expected.dxc.hlsl} | 0 .../2fe1cc.wgsl.expected.fxc.hlsl | 35 + .../318ecc.wgsl.expected.dxc.hlsl | 34 + .../318ecc.wgsl.expected.fxc.hlsl | 34 + .../340d06.wgsl.expected.dxc.hlsl | 34 + .../340d06.wgsl.expected.fxc.hlsl | 34 + .../398e30.wgsl.expected.dxc.hlsl | 34 + .../398e30.wgsl.expected.fxc.hlsl | 34 + .../3a94ea.wgsl.expected.dxc.hlsl | 34 + .../3a94ea.wgsl.expected.fxc.hlsl | 34 + .../3aca08.wgsl.expected.dxc.hlsl | 34 + .../3aca08.wgsl.expected.fxc.hlsl | 34 + .../3c5ad8.wgsl.expected.dxc.hlsl | 34 + .../3c5ad8.wgsl.expected.fxc.hlsl | 34 + .../4152a6.wgsl.expected.dxc.hlsl | 34 + .../4152a6.wgsl.expected.fxc.hlsl | 34 + .../423f99.wgsl.expected.dxc.hlsl | 34 + .../423f99.wgsl.expected.fxc.hlsl | 34 + .../4267ee.wgsl.expected.dxc.hlsl | 34 + .../4267ee.wgsl.expected.fxc.hlsl | 34 + .../42d4e6.wgsl.expected.dxc.hlsl | 34 + .../42d4e6.wgsl.expected.fxc.hlsl | 34 + .../48cb89.wgsl.expected.dxc.hlsl | 34 + .../48cb89.wgsl.expected.fxc.hlsl | 34 + .../49d274.wgsl.expected.dxc.hlsl | 34 + .../49d274.wgsl.expected.fxc.hlsl | 34 + .../4df9a8.wgsl.expected.dxc.hlsl | 34 + .../4df9a8.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 50a9ee.wgsl.expected.dxc.hlsl} | 0 .../50a9ee.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 52045c.wgsl.expected.dxc.hlsl} | 0 .../52045c.wgsl.expected.fxc.hlsl | 35 + .../55b23e.wgsl.expected.dxc.hlsl | 34 + .../55b23e.wgsl.expected.fxc.hlsl | 34 + .../579629.wgsl.expected.dxc.hlsl | 34 + .../579629.wgsl.expected.fxc.hlsl | 34 + .../57da0b.wgsl.expected.dxc.hlsl | 34 + .../57da0b.wgsl.expected.fxc.hlsl | 34 + .../57e28f.wgsl.expected.dxc.hlsl | 34 + .../57e28f.wgsl.expected.fxc.hlsl | 34 + .../58a515.wgsl.expected.dxc.hlsl | 34 + .../58a515.wgsl.expected.fxc.hlsl | 34 + .../5985f3.wgsl.expected.dxc.hlsl | 34 + .../5985f3.wgsl.expected.fxc.hlsl | 34 + .../5caa5e.wgsl.expected.dxc.hlsl | 34 + .../5caa5e.wgsl.expected.fxc.hlsl | 34 + .../5e295d.wgsl.expected.dxc.hlsl | 34 + .../5e295d.wgsl.expected.fxc.hlsl | 34 + .../60bf54.wgsl.expected.dxc.hlsl | 34 + .../60bf54.wgsl.expected.fxc.hlsl | 34 + .../63f3cf.wgsl.expected.dxc.hlsl | 34 + .../63f3cf.wgsl.expected.fxc.hlsl | 34 + .../68105c.wgsl.expected.dxc.hlsl | 34 + .../68105c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 686ef2.wgsl.expected.dxc.hlsl} | 0 .../686ef2.wgsl.expected.fxc.hlsl | 35 + .../6adac6.wgsl.expected.dxc.hlsl | 34 + .../6adac6.wgsl.expected.fxc.hlsl | 34 + .../6ec1b4.wgsl.expected.dxc.hlsl | 34 + .../6ec1b4.wgsl.expected.fxc.hlsl | 34 + .../6f0d79.wgsl.expected.dxc.hlsl | 34 + .../6f0d79.wgsl.expected.fxc.hlsl | 34 + .../702c53.wgsl.expected.dxc.hlsl | 34 + .../702c53.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 72e5d6.wgsl.expected.dxc.hlsl} | 0 .../72e5d6.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 79df87.wgsl.expected.dxc.hlsl} | 0 .../79df87.wgsl.expected.fxc.hlsl | 35 + .../7bf826.wgsl.expected.dxc.hlsl | 34 + .../7bf826.wgsl.expected.fxc.hlsl | 34 + .../7f5c2e.wgsl.expected.dxc.hlsl | 34 + .../7f5c2e.wgsl.expected.fxc.hlsl | 34 + .../8028f3.wgsl.expected.dxc.hlsl | 34 + .../8028f3.wgsl.expected.fxc.hlsl | 34 + .../811679.wgsl.expected.dxc.hlsl | 34 + .../811679.wgsl.expected.fxc.hlsl | 34 + .../820596.wgsl.expected.dxc.hlsl | 34 + .../820596.wgsl.expected.fxc.hlsl | 34 + .../83ee5a.wgsl.expected.dxc.hlsl | 34 + .../83ee5a.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 85d556.wgsl.expected.dxc.hlsl} | 0 .../85d556.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 88ad17.wgsl.expected.dxc.hlsl} | 0 .../88ad17.wgsl.expected.fxc.hlsl | 35 + .../8aa4c4.wgsl.expected.dxc.hlsl | 34 + .../8aa4c4.wgsl.expected.fxc.hlsl | 34 + .../8deb5e.wgsl.expected.dxc.hlsl | 34 + .../8deb5e.wgsl.expected.fxc.hlsl | 34 + .../8f20bf.wgsl.expected.dxc.hlsl | 34 + .../8f20bf.wgsl.expected.fxc.hlsl | 34 + .../8fca0f.wgsl.expected.dxc.hlsl | 34 + .../8fca0f.wgsl.expected.fxc.hlsl | 34 + .../90340b.wgsl.expected.dxc.hlsl | 34 + .../90340b.wgsl.expected.fxc.hlsl | 34 + .../9042ab.wgsl.expected.dxc.hlsl | 34 + .../9042ab.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 9393b0.wgsl.expected.dxc.hlsl} | 0 .../9393b0.wgsl.expected.fxc.hlsl | 35 + .../939fdb.wgsl.expected.dxc.hlsl | 34 + .../939fdb.wgsl.expected.fxc.hlsl | 34 + .../962dcd.wgsl.expected.dxc.hlsl | 34 + .../962dcd.wgsl.expected.fxc.hlsl | 34 + .../9abfe5.wgsl.expected.dxc.hlsl | 34 + .../9abfe5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 9c9c57.wgsl.expected.dxc.hlsl} | 0 .../9c9c57.wgsl.expected.fxc.hlsl | 35 + .../9da9e2.wgsl.expected.dxc.hlsl | 34 + .../9da9e2.wgsl.expected.fxc.hlsl | 34 + .../9eb8d8.wgsl.expected.dxc.hlsl | 34 + .../9eb8d8.wgsl.expected.fxc.hlsl | 34 + .../9f8e46.wgsl.expected.dxc.hlsl | 34 + .../9f8e46.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => a01845.wgsl.expected.dxc.hlsl} | 0 .../a01845.wgsl.expected.fxc.hlsl | 35 + .../a7d565.wgsl.expected.dxc.hlsl | 34 + .../a7d565.wgsl.expected.fxc.hlsl | 34 + .../a863f2.wgsl.expected.dxc.hlsl | 34 + .../a863f2.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => a9c9c1.wgsl.expected.dxc.hlsl} | 0 .../a9c9c1.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => b0e16d.wgsl.expected.dxc.hlsl} | 0 .../b0e16d.wgsl.expected.fxc.hlsl | 35 + .../b3c954.wgsl.expected.dxc.hlsl | 34 + .../b3c954.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => b3e407.wgsl.expected.dxc.hlsl} | 0 .../b3e407.wgsl.expected.fxc.hlsl | 35 + .../b91240.wgsl.expected.dxc.hlsl | 34 + .../b91240.wgsl.expected.fxc.hlsl | 34 + .../ba1481.wgsl.expected.dxc.hlsl | 38 + .../ba1481.wgsl.expected.fxc.hlsl | 38 + .../bb3dde.wgsl.expected.dxc.hlsl | 34 + .../bb3dde.wgsl.expected.fxc.hlsl | 34 + .../c30e75.wgsl.expected.dxc.hlsl | 34 + .../c30e75.wgsl.expected.fxc.hlsl | 34 + .../c7943d.wgsl.expected.dxc.hlsl | 34 + .../c7943d.wgsl.expected.fxc.hlsl | 34 + .../cc968c.wgsl.expected.dxc.hlsl | 34 + .../cc968c.wgsl.expected.fxc.hlsl | 34 + .../cccc8f.wgsl.expected.dxc.hlsl | 34 + .../cccc8f.wgsl.expected.fxc.hlsl | 34 + .../cd76a7.wgsl.expected.dxc.hlsl | 34 + .../cd76a7.wgsl.expected.fxc.hlsl | 34 + .../cdf473.wgsl.expected.dxc.hlsl | 34 + .../cdf473.wgsl.expected.fxc.hlsl | 34 + .../cec841.wgsl.expected.dxc.hlsl | 34 + .../cec841.wgsl.expected.fxc.hlsl | 34 + .../cf7e43.wgsl.expected.dxc.hlsl | 34 + .../cf7e43.wgsl.expected.fxc.hlsl | 34 + .../d125bc.wgsl.expected.dxc.hlsl | 34 + .../d125bc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => d83c45.wgsl.expected.dxc.hlsl} | 0 .../d83c45.wgsl.expected.fxc.hlsl | 35 + .../daf7c0.wgsl.expected.dxc.hlsl | 34 + .../daf7c0.wgsl.expected.fxc.hlsl | 34 + .../dc2dd0.wgsl.expected.dxc.hlsl | 34 + .../dc2dd0.wgsl.expected.fxc.hlsl | 34 + .../e927be.wgsl.expected.dxc.hlsl | 34 + .../e927be.wgsl.expected.fxc.hlsl | 34 + .../e9e96c.wgsl.expected.dxc.hlsl | 34 + .../e9e96c.wgsl.expected.fxc.hlsl | 34 + .../ef5b89.wgsl.expected.dxc.hlsl | 34 + .../ef5b89.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => efc8a4.wgsl.expected.dxc.hlsl} | 0 .../efc8a4.wgsl.expected.fxc.hlsl | 35 + .../f60bdb.wgsl.expected.dxc.hlsl | 34 + .../f60bdb.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f7145b.wgsl.expected.dxc.hlsl} | 0 .../f7145b.wgsl.expected.fxc.hlsl | 35 + .../f931c7.wgsl.expected.dxc.hlsl | 34 + .../f931c7.wgsl.expected.fxc.hlsl | 34 + .../fa9859.wgsl.expected.dxc.hlsl | 34 + .../fa9859.wgsl.expected.fxc.hlsl | 34 + .../fb5670.wgsl.expected.dxc.hlsl | 34 + .../fb5670.wgsl.expected.fxc.hlsl | 34 + .../fcac78.wgsl.expected.dxc.hlsl | 34 + .../fcac78.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 10c554.wgsl.expected.dxc.hlsl} | 0 .../10c554.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1f7f6b.wgsl.expected.dxc.hlsl} | 0 .../1f7f6b.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 22e930.wgsl.expected.dxc.hlsl} | 0 .../22e930.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2cc066.wgsl.expected.dxc.hlsl} | 0 .../2cc066.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2e0ed5.wgsl.expected.dxc.hlsl} | 0 .../2e0ed5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 32c4e8.wgsl.expected.dxc.hlsl} | 0 .../32c4e8.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 3b32cc.wgsl.expected.dxc.hlsl} | 0 .../3b32cc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 43025d.wgsl.expected.dxc.hlsl} | 0 .../43025d.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 49b07f.wgsl.expected.dxc.hlsl} | 0 .../49b07f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 4b8103.wgsl.expected.dxc.hlsl} | 0 .../4b8103.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 5266da.wgsl.expected.dxc.hlsl} | 0 .../5266da.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 5ba85f.wgsl.expected.dxc.hlsl} | 0 .../5ba85f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 5bd491.wgsl.expected.dxc.hlsl} | 0 .../5bd491.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 751f8a.wgsl.expected.dxc.hlsl} | 0 .../751f8a.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 7c3828.wgsl.expected.dxc.hlsl} | 0 .../7c3828.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 8b754c.wgsl.expected.dxc.hlsl} | 0 .../8b754c.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 9a6358.wgsl.expected.dxc.hlsl} | 0 .../9a6358.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => af55b3.wgsl.expected.dxc.hlsl} | 0 .../af55b3.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => bb3ac5.wgsl.expected.dxc.hlsl} | 0 .../bb3ac5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c0640c.wgsl.expected.dxc.hlsl} | 0 .../c0640c.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => d1f187.wgsl.expected.dxc.hlsl} | 0 .../d1f187.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => d90605.wgsl.expected.dxc.hlsl} | 0 .../d90605.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => e9d390.wgsl.expected.dxc.hlsl} | 0 .../e9d390.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => f2c6e3.wgsl.expected.dxc.hlsl} | 0 .../f2c6e3.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 182fd4.wgsl.expected.dxc.hlsl} | 0 .../182fd4.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 313add.wgsl.expected.dxc.hlsl} | 0 .../313add.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 60d2d1.wgsl.expected.dxc.hlsl} | 0 .../60d2d1.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 6d9352.wgsl.expected.dxc.hlsl} | 0 .../6d9352.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 783e65.wgsl.expected.dxc.hlsl} | 0 .../783e65.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => f585cc.wgsl.expected.dxc.hlsl} | 0 .../f585cc.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 19cf87.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/19cf87.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1b8588.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/1b8588.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1f2016.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/1f2016.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 484344.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/484344.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 4fd803.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/4fd803.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 5a2f9d.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/5a2f9d.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6154d4.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/6154d4.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6273b1.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/6273b1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 79e697.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/79e697.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 7c90e5.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/7c90e5.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 81c381.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/81c381.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 87be85.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/87be85.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 8acf41.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/8acf41.wgsl.expected.fxc.hlsl | 112 + ...ted.hlsl => 9b2667.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/9b2667.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => a583c9.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/a583c9.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => a9a9f5.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/a9a9f5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c2a480.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/c2a480.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c378ee.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/c378ee.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => e3d2cc.wgsl.expected.dxc.hlsl} | 0 .../textureLoad/e3d2cc.wgsl.expected.fxc.hlsl | 34 + .../024820.wgsl.expected.dxc.hlsl | 34 + .../024820.wgsl.expected.fxc.hlsl | 34 + .../053df7.wgsl.expected.dxc.hlsl | 34 + .../053df7.wgsl.expected.fxc.hlsl | 34 + .../058cc3.wgsl.expected.dxc.hlsl | 34 + .../058cc3.wgsl.expected.fxc.hlsl | 34 + .../09d05d.wgsl.expected.dxc.hlsl | 34 + .../09d05d.wgsl.expected.fxc.hlsl | 34 + .../13b4ce.wgsl.expected.dxc.hlsl | 34 + .../13b4ce.wgsl.expected.fxc.hlsl | 34 + .../22e53b.wgsl.expected.dxc.hlsl | 34 + .../22e53b.wgsl.expected.fxc.hlsl | 34 + .../562013.wgsl.expected.dxc.hlsl | 34 + .../562013.wgsl.expected.fxc.hlsl | 34 + .../5d59cd.wgsl.expected.dxc.hlsl | 34 + .../5d59cd.wgsl.expected.fxc.hlsl | 34 + .../68a65b.wgsl.expected.dxc.hlsl | 34 + .../68a65b.wgsl.expected.fxc.hlsl | 34 + .../778bd1.wgsl.expected.dxc.hlsl | 34 + .../778bd1.wgsl.expected.fxc.hlsl | 34 + .../7f1937.wgsl.expected.dxc.hlsl | 34 + .../7f1937.wgsl.expected.fxc.hlsl | 34 + .../85f980.wgsl.expected.dxc.hlsl | 34 + .../85f980.wgsl.expected.fxc.hlsl | 34 + .../87953e.wgsl.expected.dxc.hlsl | 34 + .../87953e.wgsl.expected.fxc.hlsl | 34 + .../893e7c.wgsl.expected.dxc.hlsl | 34 + .../893e7c.wgsl.expected.fxc.hlsl | 34 + .../9700fb.wgsl.expected.dxc.hlsl | 34 + .../9700fb.wgsl.expected.fxc.hlsl | 34 + .../a216d2.wgsl.expected.dxc.hlsl | 34 + .../a216d2.wgsl.expected.fxc.hlsl | 34 + .../cd5dc8.wgsl.expected.dxc.hlsl | 34 + .../cd5dc8.wgsl.expected.fxc.hlsl | 34 + .../d5b228.wgsl.expected.dxc.hlsl | 34 + .../d5b228.wgsl.expected.fxc.hlsl | 34 + .../e31be1.wgsl.expected.dxc.hlsl | 34 + .../e31be1.wgsl.expected.fxc.hlsl | 34 + .../e653c0.wgsl.expected.dxc.hlsl | 34 + .../e653c0.wgsl.expected.fxc.hlsl | 34 + .../ee942f.wgsl.expected.dxc.hlsl | 34 + .../ee942f.wgsl.expected.fxc.hlsl | 34 + .../f33005.wgsl.expected.dxc.hlsl | 34 + .../f33005.wgsl.expected.fxc.hlsl | 34 + .../fcec98.wgsl.expected.dxc.hlsl | 34 + .../fcec98.wgsl.expected.fxc.hlsl | 34 + .../ff5e89.wgsl.expected.dxc.hlsl | 34 + .../ff5e89.wgsl.expected.fxc.hlsl | 34 + .../076cb5.wgsl.expected.dxc.hlsl | 34 + .../076cb5.wgsl.expected.fxc.hlsl | 34 + .../080d95.wgsl.expected.dxc.hlsl | 34 + .../080d95.wgsl.expected.fxc.hlsl | 34 + .../09ddd0.wgsl.expected.dxc.hlsl | 34 + .../09ddd0.wgsl.expected.fxc.hlsl | 34 + .../105988.wgsl.expected.dxc.hlsl | 34 + .../105988.wgsl.expected.fxc.hlsl | 34 + .../1e6f3b.wgsl.expected.dxc.hlsl | 34 + .../1e6f3b.wgsl.expected.fxc.hlsl | 34 + .../23f750.wgsl.expected.dxc.hlsl | 34 + .../23f750.wgsl.expected.fxc.hlsl | 34 + .../2c3575.wgsl.expected.dxc.hlsl | 34 + .../2c3575.wgsl.expected.fxc.hlsl | 34 + .../32a0ae.wgsl.expected.dxc.hlsl | 34 + .../32a0ae.wgsl.expected.fxc.hlsl | 34 + .../5101cf.wgsl.expected.dxc.hlsl | 34 + .../5101cf.wgsl.expected.fxc.hlsl | 34 + .../51b5bb.wgsl.expected.dxc.hlsl | 34 + .../51b5bb.wgsl.expected.fxc.hlsl | 34 + .../897aaf.wgsl.expected.dxc.hlsl | 34 + .../897aaf.wgsl.expected.fxc.hlsl | 34 + .../9da7a5.wgsl.expected.dxc.hlsl | 34 + .../9da7a5.wgsl.expected.fxc.hlsl | 34 + .../a91c03.wgsl.expected.dxc.hlsl | 34 + .../a91c03.wgsl.expected.fxc.hlsl | 34 + .../aee7c8.wgsl.expected.dxc.hlsl | 34 + .../aee7c8.wgsl.expected.fxc.hlsl | 34 + .../b1b12b.wgsl.expected.dxc.hlsl | 34 + .../b1b12b.wgsl.expected.fxc.hlsl | 34 + .../b4f5ea.wgsl.expected.dxc.hlsl | 34 + .../b4f5ea.wgsl.expected.fxc.hlsl | 34 + .../d004a9.wgsl.expected.dxc.hlsl | 34 + .../d004a9.wgsl.expected.fxc.hlsl | 34 + .../dca09e.wgsl.expected.dxc.hlsl | 34 + .../dca09e.wgsl.expected.fxc.hlsl | 34 + .../e67231.wgsl.expected.dxc.hlsl | 34 + .../e67231.wgsl.expected.fxc.hlsl | 34 + .../ed078b.wgsl.expected.dxc.hlsl | 34 + .../ed078b.wgsl.expected.fxc.hlsl | 34 + .../f46ec6.wgsl.expected.dxc.hlsl | 34 + .../f46ec6.wgsl.expected.fxc.hlsl | 34 + .../f5828d.wgsl.expected.dxc.hlsl | 34 + .../f5828d.wgsl.expected.fxc.hlsl | 34 + .../2c6f14.wgsl.expected.dxc.hlsl | 34 + .../2c6f14.wgsl.expected.fxc.hlsl | 34 + .../42f8bb.wgsl.expected.dxc.hlsl | 34 + .../42f8bb.wgsl.expected.fxc.hlsl | 34 + .../449d23.wgsl.expected.dxc.hlsl | 34 + .../449d23.wgsl.expected.fxc.hlsl | 34 + .../a3c8a0.wgsl.expected.dxc.hlsl | 34 + .../a3c8a0.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 0dff6c.wgsl.expected.dxc.hlsl} | 0 .../0dff6c.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 17e988.wgsl.expected.dxc.hlsl} | 0 .../17e988.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 2149ec.wgsl.expected.dxc.hlsl} | 0 .../2149ec.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 38bbb9.wgsl.expected.dxc.hlsl} | 0 .../38bbb9.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 3b50bd.wgsl.expected.dxc.hlsl} | 0 .../3b50bd.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 4dd1bf.wgsl.expected.dxc.hlsl} | 0 .../4dd1bf.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 51b514.wgsl.expected.dxc.hlsl} | 0 .../51b514.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 60bf45.wgsl.expected.dxc.hlsl} | 0 .../60bf45.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 6717ca.wgsl.expected.dxc.hlsl} | 0 .../6717ca.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 6e64fb.wgsl.expected.dxc.hlsl} | 0 .../6e64fb.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 7e9ffd.wgsl.expected.dxc.hlsl} | 0 .../7e9ffd.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 85c4ba.wgsl.expected.dxc.hlsl} | 0 .../85c4ba.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => c2f4e8.wgsl.expected.dxc.hlsl} | 0 .../c2f4e8.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => e53267.wgsl.expected.dxc.hlsl} | 0 .../e53267.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => ea7030.wgsl.expected.dxc.hlsl} | 0 .../ea7030.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => 53b9f7.wgsl.expected.dxc.hlsl} | 0 .../53b9f7.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 594824.wgsl.expected.dxc.hlsl} | 0 .../594824.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 6a9113.wgsl.expected.dxc.hlsl} | 0 .../6a9113.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 80e579.wgsl.expected.dxc.hlsl} | 0 .../80e579.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => 9dbb51.wgsl.expected.dxc.hlsl} | 0 .../9dbb51.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => a161cf.wgsl.expected.dxc.hlsl} | 0 .../a161cf.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => d3fa1b.wgsl.expected.dxc.hlsl} | 0 .../d3fa1b.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => eed7c4.wgsl.expected.dxc.hlsl} | 0 .../eed7c4.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => 3a5923.wgsl.expected.dxc.hlsl} | 0 .../3a5923.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 63fb83.wgsl.expected.dxc.hlsl} | 0 .../63fb83.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => a3ca7e.wgsl.expected.dxc.hlsl} | 0 .../a3ca7e.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => af1051.wgsl.expected.dxc.hlsl} | 0 .../af1051.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => dd431d.wgsl.expected.dxc.hlsl} | 0 .../dd431d.wgsl.expected.fxc.hlsl | 14 + ...ted.hlsl => dec064.wgsl.expected.dxc.hlsl} | 0 .../dec064.wgsl.expected.fxc.hlsl | 13 + ...ted.hlsl => 1116ed.wgsl.expected.dxc.hlsl} | 0 .../1116ed.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 1568e3.wgsl.expected.dxc.hlsl} | 0 .../1568e3.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2ad2b1.wgsl.expected.dxc.hlsl} | 0 .../2ad2b1.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 4cf3a2.wgsl.expected.dxc.hlsl} | 0 .../4cf3a2.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 7f2b9a.wgsl.expected.dxc.hlsl} | 0 .../7f2b9a.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => b6e47c.wgsl.expected.dxc.hlsl} | 0 .../b6e47c.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 21402b.wgsl.expected.dxc.hlsl} | 0 .../21402b.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 2ecd8f.wgsl.expected.dxc.hlsl} | 0 .../2ecd8f.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 521263.wgsl.expected.dxc.hlsl} | 0 .../521263.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 5312f4.wgsl.expected.dxc.hlsl} | 0 .../5312f4.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 5884dd.wgsl.expected.dxc.hlsl} | 0 .../5884dd.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => d4e3c5.wgsl.expected.dxc.hlsl} | 0 .../d4e3c5.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => d65515.wgsl.expected.dxc.hlsl} | 0 .../d65515.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => e383db.wgsl.expected.dxc.hlsl} | 0 .../e383db.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 02be59.wgsl.expected.dxc.hlsl} | 0 .../02be59.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 0b0a1b.wgsl.expected.dxc.hlsl} | 0 .../0b0a1b.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 0bdd9a.wgsl.expected.dxc.hlsl} | 0 .../0bdd9a.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 1b0291.wgsl.expected.dxc.hlsl} | 0 .../1b0291.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 1bf73e.wgsl.expected.dxc.hlsl} | 0 .../1bf73e.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 302be4.wgsl.expected.dxc.hlsl} | 0 .../302be4.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 36780e.wgsl.expected.dxc.hlsl} | 0 .../36780e.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => 749baf.wgsl.expected.dxc.hlsl} | 0 .../749baf.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 979816.wgsl.expected.dxc.hlsl} | 0 .../979816.wgsl.expected.fxc.hlsl | 113 + ...ted.hlsl => abfcc0.wgsl.expected.dxc.hlsl} | 0 .../abfcc0.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => ae5e39.wgsl.expected.dxc.hlsl} | 0 .../ae5e39.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => b7c55c.wgsl.expected.dxc.hlsl} | 0 .../b7c55c.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => c32df7.wgsl.expected.dxc.hlsl} | 0 .../c32df7.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => c6aca6.wgsl.expected.dxc.hlsl} | 0 .../c6aca6.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => dcbecb.wgsl.expected.dxc.hlsl} | 0 .../dcbecb.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 05ce15.wgsl.expected.dxc.hlsl} | 0 .../05ce15.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 064c7f.wgsl.expected.dxc.hlsl} | 0 .../064c7f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 068641.wgsl.expected.dxc.hlsl} | 0 .../068641.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 0af6b5.wgsl.expected.dxc.hlsl} | 0 .../0af6b5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 0c3dff.wgsl.expected.dxc.hlsl} | 0 .../0c3dff.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 102722.wgsl.expected.dxc.hlsl} | 0 .../102722.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1bbd08.wgsl.expected.dxc.hlsl} | 0 .../1bbd08.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 1c02e7.wgsl.expected.dxc.hlsl} | 0 .../1c02e7.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 22d955.wgsl.expected.dxc.hlsl} | 0 .../22d955.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 26bf70.wgsl.expected.dxc.hlsl} | 0 .../26bf70.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2796b4.wgsl.expected.dxc.hlsl} | 0 .../2796b4.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2ac6c7.wgsl.expected.dxc.hlsl} | 0 .../2ac6c7.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2eb2a4.wgsl.expected.dxc.hlsl} | 0 .../2eb2a4.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 2ed2a3.wgsl.expected.dxc.hlsl} | 0 .../2ed2a3.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 31745b.wgsl.expected.dxc.hlsl} | 0 .../31745b.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 32f368.wgsl.expected.dxc.hlsl} | 0 .../32f368.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 331aee.wgsl.expected.dxc.hlsl} | 0 .../331aee.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 38e8d7.wgsl.expected.dxc.hlsl} | 0 .../38e8d7.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 3a52ac.wgsl.expected.dxc.hlsl} | 0 .../3a52ac.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 3bb7a1.wgsl.expected.dxc.hlsl} | 0 .../3bb7a1.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 3bec15.wgsl.expected.dxc.hlsl} | 0 .../3bec15.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 441ba8.wgsl.expected.dxc.hlsl} | 0 .../441ba8.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 4fc057.wgsl.expected.dxc.hlsl} | 0 .../4fc057.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 5a2f8f.wgsl.expected.dxc.hlsl} | 0 .../5a2f8f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 60975f.wgsl.expected.dxc.hlsl} | 0 .../60975f.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 682fd6.wgsl.expected.dxc.hlsl} | 0 .../682fd6.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6b75c3.wgsl.expected.dxc.hlsl} | 0 .../6b75c3.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6b80d2.wgsl.expected.dxc.hlsl} | 0 .../6b80d2.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6cff2e.wgsl.expected.dxc.hlsl} | 0 .../6cff2e.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 6da692.wgsl.expected.dxc.hlsl} | 0 .../6da692.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 731349.wgsl.expected.dxc.hlsl} | 0 .../731349.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 752da6.wgsl.expected.dxc.hlsl} | 0 .../752da6.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 77c0ae.wgsl.expected.dxc.hlsl} | 0 .../77c0ae.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 7cec8d.wgsl.expected.dxc.hlsl} | 0 .../7cec8d.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 7f7fae.wgsl.expected.dxc.hlsl} | 0 .../7f7fae.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 804942.wgsl.expected.dxc.hlsl} | 0 .../804942.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 805dae.wgsl.expected.dxc.hlsl} | 0 .../805dae.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 83bcc1.wgsl.expected.dxc.hlsl} | 0 .../83bcc1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 872747.wgsl.expected.dxc.hlsl} | 0 .../872747.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 8e0479.wgsl.expected.dxc.hlsl} | 0 .../8e0479.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 8f71a1.wgsl.expected.dxc.hlsl} | 0 .../8f71a1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 969534.wgsl.expected.dxc.hlsl} | 0 .../969534.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 9a3ecc.wgsl.expected.dxc.hlsl} | 0 .../9a3ecc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => 9d9cd5.wgsl.expected.dxc.hlsl} | 0 .../9d9cd5.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 9e3ec5.wgsl.expected.dxc.hlsl} | 0 .../9e3ec5.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => ac67aa.wgsl.expected.dxc.hlsl} | 0 .../ac67aa.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => b706b1.wgsl.expected.dxc.hlsl} | 0 .../b706b1.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => bbcb7f.wgsl.expected.dxc.hlsl} | 0 .../bbcb7f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => be6e30.wgsl.expected.dxc.hlsl} | 0 .../be6e30.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => bf775c.wgsl.expected.dxc.hlsl} | 0 .../bf775c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c5af1e.wgsl.expected.dxc.hlsl} | 0 .../c5af1e.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => c863be.wgsl.expected.dxc.hlsl} | 0 .../c863be.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => d73b5c.wgsl.expected.dxc.hlsl} | 0 .../d73b5c.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => dd7d81.wgsl.expected.dxc.hlsl} | 0 .../dd7d81.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => dde364.wgsl.expected.dxc.hlsl} | 0 .../dde364.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => e885e8.wgsl.expected.dxc.hlsl} | 0 .../e885e8.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => eb702f.wgsl.expected.dxc.hlsl} | 0 .../eb702f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => eb78b9.wgsl.expected.dxc.hlsl} | 0 .../eb78b9.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => ee6acc.wgsl.expected.dxc.hlsl} | 0 .../ee6acc.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => ef9f2f.wgsl.expected.dxc.hlsl} | 0 .../ef9f2f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f8dead.wgsl.expected.dxc.hlsl} | 0 .../f8dead.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => f9be83.wgsl.expected.dxc.hlsl} | 0 .../f9be83.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => fb9a8f.wgsl.expected.dxc.hlsl} | 0 .../fb9a8f.wgsl.expected.fxc.hlsl | 34 + ...ted.hlsl => fbf53f.wgsl.expected.dxc.hlsl} | 0 .../fbf53f.wgsl.expected.fxc.hlsl | 35 + ...ted.hlsl => 2585cd.wgsl.expected.dxc.hlsl} | 0 .../transpose/2585cd.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 31d679.wgsl.expected.dxc.hlsl} | 0 .../transpose/31d679.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 31e37e.wgsl.expected.dxc.hlsl} | 0 .../transpose/31e37e.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4ce359.wgsl.expected.dxc.hlsl} | 0 .../transpose/4ce359.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 4dc9a1.wgsl.expected.dxc.hlsl} | 0 .../transpose/4dc9a1.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 854336.wgsl.expected.dxc.hlsl} | 0 .../transpose/854336.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => c1b600.wgsl.expected.dxc.hlsl} | 0 .../transpose/c1b600.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => d8f8ba.wgsl.expected.dxc.hlsl} | 0 .../transpose/d8f8ba.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => ed4bdc.wgsl.expected.dxc.hlsl} | 0 .../transpose/ed4bdc.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 562d05.wgsl.expected.dxc.hlsl} | 0 .../var/trunc/562d05.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => e183aa.wgsl.expected.dxc.hlsl} | 0 .../var/trunc/e183aa.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => eb83df.wgsl.expected.dxc.hlsl} | 0 .../var/trunc/eb83df.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => f370d3.wgsl.expected.dxc.hlsl} | 0 .../var/trunc/f370d3.wgsl.expected.fxc.hlsl | 31 + ...ted.hlsl => 32a5cf.wgsl.expected.dxc.hlsl} | 0 .../32a5cf.wgsl.expected.fxc.hlsl | 36 + ...ted.hlsl => b4aea6.wgsl.expected.dxc.hlsl} | 0 .../b4aea6.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 7699c0.wgsl.expected.dxc.hlsl} | 0 .../7699c0.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 523fb3.wgsl.expected.dxc.hlsl} | 0 .../523fb3.wgsl.expected.fxc.hlsl | 37 + ...ted.hlsl => 750c74.wgsl.expected.dxc.hlsl} | 0 .../750c74.wgsl.expected.fxc.hlsl | 37 + .../a17f7f.wgsl.expected.dxc.hlsl | 9 + .../a17f7f.wgsl.expected.fxc.hlsl | 9 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../scalar/i32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => u32.spvasm.expected.dxc.hlsl} | 0 .../scalar/u32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../vec3/i32.spvasm.expected.fxc.hlsl | 21 + ...cted.hlsl => u32.spvasm.expected.dxc.hlsl} | 0 .../vec3/u32.spvasm.expected.fxc.hlsl | 21 + ...ected.hlsl => modf.wgsl.expected.dxc.hlsl} | 0 .../tint/builtins/modf.wgsl.expected.fxc.hlsl | 18 + ....hlsl => radians.spvasm.expected.dxc.hlsl} | 0 .../builtins/radians.spvasm.expected.fxc.hlsl | 17 + ...sl => repeated_use.wgsl.expected.dxc.hlsl} | 0 .../repeated_use.wgsl.expected.fxc.hlsl | 32 + ...hlsl => depth_ms.spvasm.expected.dxc.hlsl} | 0 .../depth_ms.spvasm.expected.fxc.hlsl | 63 + ...cted.hlsl => alpha.wgsl.expected.dxc.hlsl} | 0 .../f32/alpha.wgsl.expected.fxc.hlsl | 7 + ...ected.hlsl => blue.wgsl.expected.dxc.hlsl} | 0 .../f32/blue.wgsl.expected.fxc.hlsl | 7 + ...cted.hlsl => green.wgsl.expected.dxc.hlsl} | 0 .../f32/green.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => red.wgsl.expected.dxc.hlsl} | 0 .../f32/red.wgsl.expected.fxc.hlsl | 7 + ...cted.hlsl => alpha.wgsl.expected.dxc.hlsl} | 0 .../i32/alpha.wgsl.expected.fxc.hlsl | 7 + ...ected.hlsl => blue.wgsl.expected.dxc.hlsl} | 0 .../i32/blue.wgsl.expected.fxc.hlsl | 7 + ...cted.hlsl => green.wgsl.expected.dxc.hlsl} | 0 .../i32/green.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => red.wgsl.expected.dxc.hlsl} | 0 .../i32/red.wgsl.expected.fxc.hlsl | 7 + ...cted.hlsl => alpha.wgsl.expected.dxc.hlsl} | 0 .../u32/alpha.wgsl.expected.fxc.hlsl | 7 + ...ected.hlsl => blue.wgsl.expected.dxc.hlsl} | 0 .../u32/blue.wgsl.expected.fxc.hlsl | 7 + ...cted.hlsl => green.wgsl.expected.dxc.hlsl} | 0 .../u32/green.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => red.wgsl.expected.dxc.hlsl} | 0 .../u32/red.wgsl.expected.fxc.hlsl | 7 + ...hlsl => depth_ms.spvasm.expected.dxc.hlsl} | 0 .../depth_ms.spvasm.expected.fxc.hlsl | 61 + ...ure_external_param.wgsl.expected.dxc.hlsl} | 0 ...ture_external_param.wgsl.expected.fxc.hlsl | 115 + ...l => texture_param.wgsl.expected.dxc.hlsl} | 0 .../texture_param.wgsl.expected.fxc.hlsl | 36 + ...hlsl => depth_ms.spvasm.expected.dxc.hlsl} | 0 .../depth_ms.spvasm.expected.fxc.hlsl | 63 + ...ted.hlsl => global.wgsl.expected.dxc.hlsl} | 0 .../global/global.wgsl.expected.fxc.hlsl | 22 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../inferred/function.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../add/vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../add/vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../add/vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/bool.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/bool.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../div/vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../div/vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../div/vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vector-vector/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vector-vector/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mod/vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../mod/vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x4-mat4x2/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x2-vec3/f32.wgsl.expected.fxc.hlsl | 18 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3-vec3/f32.wgsl.expected.fxc.hlsl | 15 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x2-mat2x4/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-mat3x3/f32.wgsl.expected.fxc.hlsl | 15 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-mat4x3/f32.wgsl.expected.fxc.hlsl | 16 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mul/vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../mul/vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../mul/vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vector-vector/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vector-vector/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/f32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/i32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-scalar/u32.wgsl.expected.fxc.hlsl | 5 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/i32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../vec3-scalar/u32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../sub/vec3-vec3/f32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../sub/vec3-vec3/i32.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../sub/vec3-vec3/u32.wgsl.expected.fxc.hlsl | 7 + ...ed.hlsl => f32-f32.wgsl.expected.dxc.hlsl} | 0 .../scalar/f32-f32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => f32-i32.wgsl.expected.dxc.hlsl} | 0 .../scalar/f32-i32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => f32-u32.wgsl.expected.dxc.hlsl} | 0 .../scalar/f32-u32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => i32-f32.wgsl.expected.dxc.hlsl} | 0 .../scalar/i32-f32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => i32-i32.wgsl.expected.dxc.hlsl} | 0 .../scalar/i32-i32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => i32-u32.wgsl.expected.dxc.hlsl} | 0 .../scalar/i32-u32.wgsl.expected.fxc.hlsl | 5 + ...hlsl => i32min-u32.wgsl.expected.dxc.hlsl} | 0 .../scalar/i32min-u32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => u32-f32.wgsl.expected.dxc.hlsl} | 0 .../scalar/u32-f32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => u32-i32.wgsl.expected.dxc.hlsl} | 0 .../scalar/u32-i32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => u32-u32.wgsl.expected.dxc.hlsl} | 0 .../scalar/u32-u32.wgsl.expected.fxc.hlsl | 5 + ...ed.hlsl => f32-f32.wgsl.expected.dxc.hlsl} | 0 .../vector/f32-f32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => f32-i32.wgsl.expected.dxc.hlsl} | 0 .../vector/f32-i32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => f32-u32.wgsl.expected.dxc.hlsl} | 0 .../vector/f32-u32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => i32-f32.wgsl.expected.dxc.hlsl} | 0 .../vector/i32-f32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => i32-i32.wgsl.expected.dxc.hlsl} | 0 .../vector/i32-i32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => i32-u32.wgsl.expected.dxc.hlsl} | 0 .../vector/i32-u32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => u32-f32.wgsl.expected.dxc.hlsl} | 0 .../vector/u32-f32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => u32-i32.wgsl.expected.dxc.hlsl} | 0 .../vector/u32-i32.wgsl.expected.fxc.hlsl | 6 + ...ed.hlsl => u32-u32.wgsl.expected.dxc.hlsl} | 0 .../vector/u32-u32.wgsl.expected.fxc.hlsl | 6 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../literal/array.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../literal/matrix.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../literal/vector.wgsl.expected.fxc.hlsl} | 0 ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../let/param/array.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../let/param/matrix.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../let/param/vector.wgsl.expected.fxc.hlsl | 9 + .../let/literal/array.wgsl.expected.dxc.hlsl | 9 + .../let/literal/array.wgsl.expected.fxc.hlsl | 9 + .../let/literal/matrix.wgsl.expected.dxc.hlsl | 9 + .../let/literal/matrix.wgsl.expected.fxc.hlsl | 9 + .../let/literal/vector.wgsl.expected.dxc.hlsl | 9 + .../let/literal/vector.wgsl.expected.fxc.hlsl | 9 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../let/param/array.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../let/param/matrix.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../let/param/vector.wgsl.expected.fxc.hlsl | 9 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../var/literal/array.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../literal/matrix.wgsl.expected.fxc.hlsl} | 0 ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../literal/vector.wgsl.expected.fxc.hlsl} | 0 .../literal/array.wgsl.expected.dxc.hlsl} | 0 .../let/literal/array.wgsl.expected.fxc.hlsl | 9 + .../literal/matrix.wgsl.expected.dxc.hlsl} | 0 .../let/literal/matrix.wgsl.expected.fxc.hlsl | 9 + .../literal/vector.wgsl.expected.dxc.hlsl} | 0 .../let/literal/vector.wgsl.expected.fxc.hlsl | 9 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../let/param/array.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../let/param/matrix.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../let/param/vector.wgsl.expected.fxc.hlsl | 9 + .../var/literal/array.wgsl.expected.dxc.hlsl | 9 + .../var/literal/array.wgsl.expected.fxc.hlsl | 9 + .../var/literal/matrix.wgsl.expected.dxc.hlsl | 9 + .../var/literal/matrix.wgsl.expected.fxc.hlsl | 9 + .../var/literal/vector.wgsl.expected.dxc.hlsl | 9 + .../var/literal/vector.wgsl.expected.fxc.hlsl | 9 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../var/param/array.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../var/param/matrix.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../var/param/vector.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => -inf.spvasm.expected.dxc.hlsl} | 0 .../literals/-inf.spvasm.expected.fxc.hlsl | 26 + ...cted.hlsl => inf.spvasm.expected.dxc.hlsl} | 0 .../literals/inf.spvasm.expected.fxc.hlsl | 26 + ...ted.hlsl => intmin.wgsl.expected.dxc.hlsl} | 0 .../literals/intmin.wgsl.expected.fxc.hlsl | 11 + ...cted.hlsl => nan.spvasm.expected.dxc.hlsl} | 0 .../literals/nan.spvasm.expected.fxc.hlsl | 26 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../splat/call/bool.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../splat/call/f32.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../splat/call/i32.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../splat/call/u32.wgsl.expected.fxc.hlsl | 17 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../expression/bool.wgsl.expected.fxc.hlsl | 22 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../expression/f32.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../expression/i32.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../expression/u32.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../immediate/bool.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../immediate/f32.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../immediate/i32.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../immediate/u32.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../splat/var/bool.wgsl.expected.fxc.hlsl | 15 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../splat/var/f32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../splat/var/i32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../splat/var/u32.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../with_swizzle/f32.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/f32.wgsl.expected.fxc.hlsl | 132 ++ ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/i32.wgsl.expected.fxc.hlsl | 132 ++ ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/u32.wgsl.expected.fxc.hlsl | 132 ++ ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../read/vec3/f32.wgsl.expected.fxc.hlsl | 134 ++ ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../read/vec3/i32.wgsl.expected.fxc.hlsl | 134 ++ ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../read/vec3/u32.wgsl.expected.fxc.hlsl | 134 ++ ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/f32.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/i32.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../packed_vec3/u32.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../write/vec3/f32.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../write/vec3/i32.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../write/vec3/u32.wgsl.expected.fxc.hlsl | 17 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x2/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x2/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x3/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x3/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x4/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x4/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x2/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x2/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x4/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x4/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x2/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x2/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x3/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x3/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../identity/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 .../vectors/f32.wgsl.expected.dxc.hlsl} | 0 .../vectors/f32.wgsl.expected.fxc.hlsl} | 0 .../identity/f32.wgsl.expected.dxc.hlsl | 11 + .../identity/f32.wgsl.expected.fxc.hlsl | 11 + .../abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl} | 0 .../scalars/f32.wgsl.expected.dxc.hlsl | 6 + .../scalars/f32.wgsl.expected.fxc.hlsl | 6 + .../abstract-float.wgsl.expected.dxc.hlsl | 6 + .../abstract-float.wgsl.expected.fxc.hlsl | 6 + .../vectors/f32.wgsl.expected.dxc.hlsl | 6 + .../vectors/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x4/load/f32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x4/zero/f32.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../bool.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../i32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../u32.wgsl.expected.fxc.hlsl} | 0 ... => abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl | 6 + ...sl => abstract-int.wgsl.expected.dxc.hlsl} | 0 .../abstract-int.wgsl.expected.fxc.hlsl | 6 + .../vec2/inferred/bool.wgsl.expected.dxc.hlsl | 6 + .../vec2/inferred/bool.wgsl.expected.fxc.hlsl | 6 + .../vec2/inferred/f32.wgsl.expected.dxc.hlsl | 6 + .../vec2/inferred/f32.wgsl.expected.fxc.hlsl | 6 + .../vec2/inferred/i32.wgsl.expected.dxc.hlsl | 6 + .../vec2/inferred/i32.wgsl.expected.fxc.hlsl | 6 + .../vec2/inferred/u32.wgsl.expected.dxc.hlsl | 6 + .../vec2/inferred/u32.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../bool.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../i32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../u32.wgsl.expected.fxc.hlsl} | 0 ... => abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl | 6 + ...sl => abstract-int.wgsl.expected.dxc.hlsl} | 0 .../abstract-int.wgsl.expected.fxc.hlsl | 6 + .../vec3/inferred/bool.wgsl.expected.dxc.hlsl | 6 + .../vec3/inferred/bool.wgsl.expected.fxc.hlsl | 6 + .../vec3/inferred/f32.wgsl.expected.dxc.hlsl | 6 + .../vec3/inferred/f32.wgsl.expected.fxc.hlsl | 6 + .../vec3/inferred/i32.wgsl.expected.dxc.hlsl | 6 + .../vec3/inferred/i32.wgsl.expected.fxc.hlsl | 6 + .../vec3/inferred/u32.wgsl.expected.dxc.hlsl | 6 + .../vec3/inferred/u32.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../bool.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../i32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../u32.wgsl.expected.fxc.hlsl} | 0 ... => abstract-float.wgsl.expected.dxc.hlsl} | 0 .../abstract-float.wgsl.expected.fxc.hlsl | 6 + ...sl => abstract-int.wgsl.expected.dxc.hlsl} | 0 .../abstract-int.wgsl.expected.fxc.hlsl | 6 + .../vec4/inferred/bool.wgsl.expected.dxc.hlsl | 6 + .../vec4/inferred/bool.wgsl.expected.fxc.hlsl | 6 + .../vec4/inferred/f32.wgsl.expected.dxc.hlsl | 6 + .../vec4/inferred/f32.wgsl.expected.fxc.hlsl | 6 + .../vec4/inferred/i32.wgsl.expected.dxc.hlsl | 6 + .../vec4/inferred/i32.wgsl.expected.fxc.hlsl | 6 + .../vec4/inferred/u32.wgsl.expected.dxc.hlsl | 6 + .../vec4/inferred/u32.wgsl.expected.fxc.hlsl | 6 + ...hlsl => complement.wgsl.expected.dxc.hlsl} | 0 .../complement.wgsl.expected.fxc.hlsl | 20 + ...ted.hlsl => negate.wgsl.expected.dxc.hlsl} | 0 .../negate/negate.wgsl.expected.fxc.hlsl | 12 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../array/bool.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../array/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../array/i32.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../array/struct.wgsl.expected.fxc.hlsl | 15 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../array/u32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x2/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x3/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat2x4/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x2/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x3/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat3x4/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x2/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x3/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../mat4x4/f32.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../scalar/bool.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../scalar/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../scalar/i32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../scalar/u32.wgsl.expected.fxc.hlsl | 8 + ...cted.hlsl => array.wgsl.expected.dxc.hlsl} | 0 .../struct/array.wgsl.expected.fxc.hlsl | 12 + ...ted.hlsl => scalar.wgsl.expected.dxc.hlsl} | 0 .../struct/scalar.wgsl.expected.fxc.hlsl | 15 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../vec2/bool.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec2/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec2/i32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec2/u32.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../vec3/bool.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec3/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec3/i32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec3/u32.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../vec4/bool.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec4/f32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec4/i32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/vec4/u32.wgsl.expected.fxc.hlsl | 8 + ...cted.hlsl => basic.wgsl.expected.dxc.hlsl} | 0 ...cted.hlsl => basic.wgsl.expected.fxc.hlsl} | 0 ...plicated_extensions.wgsl.expected.dxc.hlsl | 14 + ...plicated_extensions.wgsl.expected.fxc.hlsl | 14 + ...cted.hlsl => alias.wgsl.expected.dxc.hlsl} | 0 .../alias.wgsl.expected.fxc.hlsl} | 0 ...cted.hlsl => const.wgsl.expected.dxc.hlsl} | 0 .../const.wgsl.expected.fxc.hlsl} | 0 ...xpected.hlsl => fn.wgsl.expected.dxc.hlsl} | 0 .../double/fn.wgsl.expected.fxc.hlsl | 18 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../double/let.wgsl.expected.fxc.hlsl | 10 + ....hlsl => parameter.wgsl.expected.dxc.hlsl} | 0 .../double/parameter.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../double/struct.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../double/var.wgsl.expected.fxc.hlsl | 12 + .../alias.wgsl.expected.dxc.hlsl} | 0 .../prefix/lower/alias.wgsl.expected.fxc.hlsl | 9 + .../prefix/lower/const.wgsl.expected.dxc.hlsl | 7 + .../prefix/lower/const.wgsl.expected.fxc.hlsl | 7 + ...xpected.hlsl => fn.wgsl.expected.dxc.hlsl} | 0 .../prefix/lower/fn.wgsl.expected.fxc.hlsl | 18 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../prefix/lower/let.wgsl.expected.fxc.hlsl | 10 + ....hlsl => parameter.wgsl.expected.dxc.hlsl} | 0 .../lower/parameter.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../lower/struct.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../prefix/lower/var.wgsl.expected.fxc.hlsl | 12 + .../prefix/upper/alias.wgsl.expected.dxc.hlsl | 9 + .../prefix/upper/alias.wgsl.expected.fxc.hlsl | 9 + ...xpected.hlsl => fn.wgsl.expected.dxc.hlsl} | 0 .../prefix/upper/fn.wgsl.expected.fxc.hlsl | 18 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../prefix/upper/let.wgsl.expected.fxc.hlsl | 9 + ....hlsl => parameter.wgsl.expected.dxc.hlsl} | 0 .../upper/parameter.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../upper/struct.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../prefix/upper/var.wgsl.expected.fxc.hlsl | 12 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../storage/mat2x2/f32.wgsl.expected.fxc.hlsl | 17 + ...ected.hlsl => 16.spvasm.expected.dxc.hlsl} | 0 .../mat2x2/stride/16.spvasm.expected.fxc.hlsl | 59 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../inferred/function.wgsl.expected.fxc.hlsl | 59 + ...continue_in_switch.wgsl.expected.dxc.hlsl} | 0 .../continue_in_switch.wgsl.expected.fxc.hlsl | 24 + ...ected.hlsl => loop.wgsl.expected.dxc.hlsl} | 0 test/tint/loops/loop.wgsl.expected.fxc.hlsl | 14 + ...op_with_continuing.wgsl.expected.dxc.hlsl} | 0 ...oop_with_continuing.wgsl.expected.fxc.hlsl | 16 + ...sl => nested_loops.wgsl.expected.dxc.hlsl} | 0 .../loops/nested_loops.wgsl.expected.fxc.hlsl | 21 + ...ps_with_continuing.wgsl.expected.dxc.hlsl} | 0 ...ops_with_continuing.wgsl.expected.fxc.hlsl | 25 + ...cted.hlsl => while.wgsl.expected.dxc.hlsl} | 0 test/tint/loops/while.wgsl.expected.fxc.hlsl | 12 + ...hile_with_continue.wgsl.expected.dxc.hlsl} | 0 ...while_with_continue.wgsl.expected.fxc.hlsl | 13 + ...cted.hlsl => alias.wgsl.expected.dxc.hlsl} | 0 .../alias/alias.wgsl.expected.fxc.hlsl | 4 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../struct.wgsl.expected.fxc.hlsl} | 0 ...cted.hlsl => alias.wgsl.expected.dxc.hlsl} | 0 .../array/alias.wgsl.expected.fxc.hlsl | 6 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../array/struct.wgsl.expected.fxc.hlsl | 11 + ...cted.hlsl => const.wgsl.expected.dxc.hlsl} | 0 .../func/const.wgsl.expected.fxc.hlsl | 3 + ...ected.hlsl => func.wgsl.expected.dxc.hlsl} | 0 .../func/func.wgsl.expected.fxc.hlsl | 7 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../func/let.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => type.wgsl.expected.dxc.hlsl} | 0 .../func/type.wgsl.expected.fxc.hlsl | 4 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../func/var.wgsl.expected.fxc.hlsl | 6 + .../struct/alias.wgsl.expected.dxc.hlsl | 8 + .../struct/alias.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../struct/struct.wgsl.expected.fxc.hlsl | 11 + ...d.hlsl => matrix.spvasm.expected.dxc.hlsl} | 0 .../access/matrix.spvasm.expected.fxc.hlsl | 12 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../access/matrix.wgsl.expected.fxc.hlsl | 6 + ...hlsl => ptr_copy.spvasm.expected.dxc.hlsl} | 0 .../copy/ptr_copy.spvasm.expected.fxc.hlsl | 10 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../load/global/i32.spvasm.expected.fxc.hlsl | 12 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../load/global/i32.wgsl.expected.fxc.hlsl | 7 + ... => struct_field.spvasm.expected.dxc.hlsl} | 0 .../struct_field.spvasm.expected.fxc.hlsl | 18 + ...sl => struct_field.wgsl.expected.dxc.hlsl} | 0 .../struct_field.wgsl.expected.fxc.hlsl | 11 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../load/local/i32.spvasm.expected.fxc.hlsl | 12 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.fxc.hlsl} | 0 .../local/ptr_function.wgsl.expected.dxc.hlsl | 6 + .../local/ptr_function.wgsl.expected.fxc.hlsl | 6 + ...lsl => ptr_private.wgsl.expected.dxc.hlsl} | 0 .../local/ptr_private.wgsl.expected.fxc.hlsl | 7 + ...lsl => ptr_storage.wgsl.expected.dxc.hlsl} | 0 .../local/ptr_storage.wgsl.expected.fxc.hlsl | 7 + ...lsl => ptr_uniform.wgsl.expected.dxc.hlsl} | 0 .../local/ptr_uniform.wgsl.expected.fxc.hlsl | 9 + ...l => ptr_workgroup.wgsl.expected.dxc.hlsl} | 0 .../ptr_workgroup.wgsl.expected.fxc.hlsl | 20 + ... => struct_field.spvasm.expected.dxc.hlsl} | 0 .../struct_field.spvasm.expected.fxc.hlsl | 17 + ...sl => struct_field.wgsl.expected.dxc.hlsl} | 0 .../local/struct_field.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => ptr.spvasm.expected.dxc.hlsl} | 0 .../load/param/ptr.spvasm.expected.fxc.hlsl | 17 + ...pected.hlsl => ptr.wgsl.expected.dxc.hlsl} | 0 .../load/param/ptr.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../store/global/i32.spvasm.expected.fxc.hlsl | 13 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../store/global/i32.wgsl.expected.fxc.hlsl | 8 + ... => struct_field.spvasm.expected.dxc.hlsl} | 0 .../struct_field.spvasm.expected.fxc.hlsl | 16 + ...cted.hlsl => i32.spvasm.expected.dxc.hlsl} | 0 .../store/local/i32.spvasm.expected.fxc.hlsl | 13 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../store/local/i32.wgsl.expected.fxc.hlsl | 7 + ... => struct_field.spvasm.expected.dxc.hlsl} | 0 .../struct_field.spvasm.expected.fxc.hlsl | 15 + ...cted.hlsl => ptr.spvasm.expected.dxc.hlsl} | 0 .../store/param/ptr.spvasm.expected.fxc.hlsl | 17 + ...pected.hlsl => ptr.wgsl.expected.dxc.hlsl} | 0 .../store/param/ptr.wgsl.expected.fxc.hlsl | 10 + ...l => compute_boids.wgsl.expected.dxc.hlsl} | 0 .../compute_boids.wgsl.expected.fxc.hlsl | 111 + ...ected.hlsl => cube.wgsl.expected.dxc.hlsl} | 0 test/tint/samples/cube.wgsl.expected.fxc.hlsl | 62 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../samples/function.wgsl.expected.fxc.hlsl | 8 + ...ted.hlsl => simple.wgsl.expected.dxc.hlsl} | 0 .../samples/simple.wgsl.expected.fxc.hlsl | 19 + ...=> simple_vertex.spvasm.expected.dxc.hlsl} | 0 .../simple_vertex.spvasm.expected.fxc.hlsl | 26 + ...d.hlsl => triangle.wgsl.expected.dxc.hlsl} | 0 .../samples/triangle.wgsl.expected.fxc.hlsl | 33 + ...ute_input_builtins.wgsl.expected.dxc.hlsl} | 0 ...pute_input_builtins.wgsl.expected.fxc.hlsl | 20 + ...ut_builtins_struct.wgsl.expected.dxc.hlsl} | 0 ...put_builtins_struct.wgsl.expected.fxc.hlsl | 28 + ...ompute_input_mixed.wgsl.expected.dxc.hlsl} | 0 ...compute_input_mixed.wgsl.expected.fxc.hlsl | 24 + ...ent_input_builtins.wgsl.expected.dxc.hlsl} | 0 ...ment_input_builtins.wgsl.expected.fxc.hlsl | 18 + ...ut_builtins_struct.wgsl.expected.dxc.hlsl} | 0 ...put_builtins_struct.wgsl.expected.fxc.hlsl | 25 + ...nt_input_locations.wgsl.expected.dxc.hlsl} | 0 ...ent_input_locations.wgsl.expected.fxc.hlsl | 18 + ...t_locations_struct.wgsl.expected.dxc.hlsl} | 0 ...ut_locations_struct.wgsl.expected.fxc.hlsl | 25 + ...agment_input_mixed.wgsl.expected.dxc.hlsl} | 0 ...ragment_input_mixed.wgsl.expected.fxc.hlsl | 36 + ...nt_output_builtins.wgsl.expected.dxc.hlsl} | 0 ...ent_output_builtins.wgsl.expected.fxc.hlsl | 29 + ...ut_builtins_struct.wgsl.expected.dxc.hlsl} | 0 ...put_builtins_struct.wgsl.expected.fxc.hlsl | 21 + ...t_output_locations.wgsl.expected.dxc.hlsl} | 0 ...nt_output_locations.wgsl.expected.fxc.hlsl | 59 + ...t_locations_struct.wgsl.expected.dxc.hlsl} | 0 ...ut_locations_struct.wgsl.expected.fxc.hlsl | 27 + ...gment_output_mixed.wgsl.expected.dxc.hlsl} | 0 ...agment_output_mixed.wgsl.expected.fxc.hlsl | 33 + ...e_input_parameters.wgsl.expected.dxc.hlsl} | 0 ...te_input_parameters.wgsl.expected.fxc.hlsl | 18 + ...olate_input_struct.wgsl.expected.dxc.hlsl} | 0 ...polate_input_struct.wgsl.expected.fxc.hlsl | 29 + ...terpolate_integers.wgsl.expected.dxc.hlsl} | 0 ...nterpolate_integers.wgsl.expected.fxc.hlsl | 53 + ...late_return_struct.wgsl.expected.dxc.hlsl} | 0 ...olate_return_struct.wgsl.expected.fxc.hlsl | 42 + ....hlsl => invariant.wgsl.expected.dxc.hlsl} | 0 .../invariant.wgsl.expected.fxc.hlsl | 14 + ...iant_struct_member.wgsl.expected.dxc.hlsl} | 0 ...riant_struct_member.wgsl.expected.fxc.hlsl | 18 + ...t_different_stages.wgsl.expected.dxc.hlsl} | 0 ...ct_different_stages.wgsl.expected.fxc.hlsl | 41 + ...ct_helper_function.wgsl.expected.dxc.hlsl} | 0 ...uct_helper_function.wgsl.expected.fxc.hlsl | 43 + ...uct_storage_buffer.wgsl.expected.dxc.hlsl} | 0 ...ruct_storage_buffer.wgsl.expected.fxc.hlsl | 32 + ...tex_input_builtins.wgsl.expected.dxc.hlsl} | 0 ...rtex_input_builtins.wgsl.expected.fxc.hlsl | 19 + ...ut_builtins_struct.wgsl.expected.dxc.hlsl} | 0 ...put_builtins_struct.wgsl.expected.fxc.hlsl | 24 + ...ex_input_locations.wgsl.expected.dxc.hlsl} | 0 ...tex_input_locations.wgsl.expected.fxc.hlsl | 24 + ...t_locations_struct.wgsl.expected.dxc.hlsl} | 0 ...ut_locations_struct.wgsl.expected.fxc.hlsl | 31 + ...vertex_input_mixed.wgsl.expected.dxc.hlsl} | 0 .../vertex_input_mixed.wgsl.expected.fxc.hlsl | 37 + ...ex_output_builtins.wgsl.expected.dxc.hlsl} | 0 ...tex_output_builtins.wgsl.expected.fxc.hlsl | 14 + ...ut_builtins_struct.wgsl.expected.dxc.hlsl} | 0 ...put_builtins_struct.wgsl.expected.fxc.hlsl | 18 + ...t_locations_struct.wgsl.expected.dxc.hlsl} | 0 ...ut_locations_struct.wgsl.expected.fxc.hlsl | 30 + ...cted.hlsl => const.wgsl.expected.dxc.hlsl} | 0 .../alias/const.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../alias/let.wgsl.expected.fxc.hlsl | 13 + ...cted.hlsl => param.wgsl.expected.dxc.hlsl} | 0 .../alias/param.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../alias/var.wgsl.expected.fxc.hlsl | 13 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../function/let.wgsl.expected.fxc.hlsl | 12 + ...cted.hlsl => param.wgsl.expected.dxc.hlsl} | 0 .../function/param.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../var.wgsl.expected.fxc.hlsl} | 0 ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../param/function.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../param/let.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => var.wgsl.expected.dxc.hlsl} | 0 .../param/var.wgsl.expected.fxc.hlsl | 11 + ...pected.hlsl => let.wgsl.expected.dxc.hlsl} | 0 .../struct/let.wgsl.expected.fxc.hlsl | 17 + ...cted.hlsl => param.wgsl.expected.dxc.hlsl} | 0 .../struct/param.wgsl.expected.fxc.hlsl | 12 + .../struct/var.wgsl.expected.dxc.hlsl | 17 + .../struct/var.wgsl.expected.fxc.hlsl | 17 + ...> in_for_loop_body.wgsl.expected.dxc.hlsl} | 0 .../in_for_loop_body.wgsl.expected.fxc.hlsl | 26 + ...or_loop_continuing.wgsl.expected.dxc.hlsl} | 0 ...for_loop_continuing.wgsl.expected.fxc.hlsl | 29 + ...> in_for_loop_init.wgsl.expected.dxc.hlsl} | 0 .../in_for_loop_init.wgsl.expected.fxc.hlsl | 27 + ...h_side_effect_func.wgsl.expected.dxc.hlsl} | 0 ...th_side_effect_func.wgsl.expected.fxc.hlsl | 36 + ...sl => struct_array.wgsl.expected.dxc.hlsl} | 0 .../struct_array.wgsl.expected.fxc.hlsl | 22 + ...struct_array_array.wgsl.expected.dxc.hlsl} | 0 .../struct_array_array.wgsl.expected.fxc.hlsl | 22 + ...truct_array_struct.wgsl.expected.dxc.hlsl} | 0 ...struct_array_struct.wgsl.expected.fxc.hlsl | 25 + ...array_struct_array.wgsl.expected.dxc.hlsl} | 0 ..._array_struct_array.wgsl.expected.fxc.hlsl | 28 + ...ruct_dynamic_array.wgsl.expected.dxc.hlsl} | 0 ...truct_dynamic_array.wgsl.expected.fxc.hlsl | 19 + ...array_struct_array.wgsl.expected.dxc.hlsl} | 0 ..._array_struct_array.wgsl.expected.fxc.hlsl | 19 + ...l => struct_matrix.wgsl.expected.dxc.hlsl} | 0 .../struct_matrix.wgsl.expected.fxc.hlsl | 33 + ...ct_multiple_arrays.wgsl.expected.dxc.hlsl} | 0 ...uct_multiple_arrays.wgsl.expected.fxc.hlsl | 28 + ...truct_struct_array.wgsl.expected.dxc.hlsl} | 0 ...struct_struct_array.wgsl.expected.fxc.hlsl | 25 + ...l => struct_vector.wgsl.expected.dxc.hlsl} | 0 .../struct_vector.wgsl.expected.fxc.hlsl | 18 + ...l => vector_assign.wgsl.expected.dxc.hlsl} | 0 .../vector_assign.wgsl.expected.fxc.hlsl | 25 + ...lsl => via_pointer.wgsl.expected.dxc.hlsl} | 0 .../via_pointer.wgsl.expected.fxc.hlsl | 23 + ...=> via_pointer_arg.wgsl.expected.dxc.hlsl} | 0 .../via_pointer_arg.wgsl.expected.fxc.hlsl | 26 + ..._non_constructable.wgsl.expected.dxc.hlsl} | 0 ..._non_constructable.wgsl.expected.fxc.hlsl} | 0 ...r_of_runtime_array.wgsl.expected.dxc.hlsl} | 0 ...dr_of_runtime_array.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => call.wgsl.expected.dxc.hlsl} | 0 .../assign/phony/call.wgsl.expected.fxc.hlsl | 9 + ...tiple_side_effects.wgsl.expected.dxc.hlsl} | 0 ...ltiple_side_effects.wgsl.expected.fxc.hlsl | 12 + .../storage_buffer.wgsl.expected.dxc.hlsl | 6 + .../storage_buffer.wgsl.expected.fxc.hlsl | 6 + ... => uniform_buffer.wgsl.expected.dxc.hlsl} | 0 .../uniform_buffer.wgsl.expected.fxc.hlsl | 8 + ...lsl => complex_lhs.wgsl.expected.dxc.hlsl} | 0 .../complex_lhs.wgsl.expected.fxc.hlsl | 32 + ... => divide_by_zero.wgsl.expected.dxc.hlsl} | 0 .../divide_by_zero.wgsl.expected.fxc.hlsl | 18 + ...d.hlsl => for_loop.wgsl.expected.dxc.hlsl} | 0 .../for_loop.wgsl.expected.fxc.hlsl | 44 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../function.wgsl.expected.fxc.hlsl | 13 + ...cted.hlsl => minus.wgsl.expected.dxc.hlsl} | 0 .../matrix/minus.wgsl.expected.fxc.hlsl | 21 + ...ected.hlsl => plus.wgsl.expected.dxc.hlsl} | 0 .../matrix/plus.wgsl.expected.fxc.hlsl | 21 + ...sl => times-scalar.wgsl.expected.dxc.hlsl} | 0 .../times-scalar.wgsl.expected.fxc.hlsl | 21 + ...cted.hlsl => times.wgsl.expected.dxc.hlsl} | 0 .../matrix/times.wgsl.expected.fxc.hlsl | 21 + ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../private.wgsl.expected.fxc.hlsl | 14 + ...pected.hlsl => and.wgsl.expected.dxc.hlsl} | 0 .../scalar/and.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => divide.wgsl.expected.dxc.hlsl} | 0 .../scalar/divide.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => minus.wgsl.expected.dxc.hlsl} | 0 .../scalar/minus.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => modulo.wgsl.expected.dxc.hlsl} | 0 .../scalar/modulo.wgsl.expected.fxc.hlsl | 10 + ...xpected.hlsl => or.wgsl.expected.dxc.hlsl} | 0 .../scalar/or.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => plus.wgsl.expected.dxc.hlsl} | 0 .../scalar/plus.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => times.wgsl.expected.dxc.hlsl} | 0 .../scalar/times.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => xor.wgsl.expected.dxc.hlsl} | 0 .../scalar/xor.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => and.wgsl.expected.dxc.hlsl} | 0 .../vector/and.wgsl.expected.fxc.hlsl | 10 + ...l => divide-scalar.wgsl.expected.dxc.hlsl} | 0 .../divide-scalar.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => divide.wgsl.expected.dxc.hlsl} | 0 .../vector/divide.wgsl.expected.fxc.hlsl | 10 + ...sl => minus-scalar.wgsl.expected.dxc.hlsl} | 0 .../minus-scalar.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => minus.wgsl.expected.dxc.hlsl} | 0 .../vector/minus.wgsl.expected.fxc.hlsl | 10 + ...l => modulo-scalar.wgsl.expected.dxc.hlsl} | 0 .../modulo-scalar.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => modulo.wgsl.expected.dxc.hlsl} | 0 .../vector/modulo.wgsl.expected.fxc.hlsl | 10 + ...xpected.hlsl => or.wgsl.expected.dxc.hlsl} | 0 .../vector/or.wgsl.expected.fxc.hlsl | 10 + ...lsl => plus-scalar.wgsl.expected.dxc.hlsl} | 0 .../vector/plus-scalar.wgsl.expected.fxc.hlsl | 10 + ...ected.hlsl => plus.wgsl.expected.dxc.hlsl} | 0 .../vector/plus.wgsl.expected.fxc.hlsl | 10 + ...sl => times-matrix.wgsl.expected.dxc.hlsl} | 0 .../times-matrix.wgsl.expected.fxc.hlsl | 10 + ...sl => times-scalar.wgsl.expected.dxc.hlsl} | 0 .../times-scalar.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => times.wgsl.expected.dxc.hlsl} | 0 .../vector/times.wgsl.expected.fxc.hlsl | 10 + ...pected.hlsl => xor.wgsl.expected.dxc.hlsl} | 0 .../vector/xor.wgsl.expected.fxc.hlsl | 10 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../workgroup.wgsl.expected.fxc.hlsl | 14 + ...l => array_element.wgsl.expected.dxc.hlsl} | 0 .../array_element.wgsl.expected.fxc.hlsl | 10 + ...ed.hlsl => complex.wgsl.expected.dxc.hlsl} | 0 .../decrement/complex.wgsl.expected.fxc.hlsl | 63 + ...or_loop_continuing.wgsl.expected.dxc.hlsl} | 0 ...for_loop_continuing.wgsl.expected.fxc.hlsl | 13 + ...r_loop_initializer.wgsl.expected.dxc.hlsl} | 0 ...or_loop_initializer.wgsl.expected.fxc.hlsl | 13 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../decrement/function.wgsl.expected.fxc.hlsl | 9 + ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../decrement/private.wgsl.expected.fxc.hlsl | 10 + ...ed.hlsl => storage.wgsl.expected.dxc.hlsl} | 0 .../decrement/storage.wgsl.expected.fxc.hlsl | 10 + ...> vector_component.wgsl.expected.dxc.hlsl} | 0 .../vector_component.wgsl.expected.fxc.hlsl | 12 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../workgroup.wgsl.expected.fxc.hlsl | 10 + ...cted.hlsl => basic.wgsl.expected.dxc.hlsl} | 0 .../for/basic.wgsl.expected.fxc.hlsl | 15 + ...ed.hlsl => complex.wgsl.expected.dxc.hlsl} | 0 .../for/complex.wgsl.expected.fxc.hlsl | 24 + ...hlsl => array_ctor.wgsl.expected.dxc.hlsl} | 0 .../array_ctor.wgsl.expected.fxc.hlsl | 16 + ...cted.hlsl => basic.wgsl.expected.dxc.hlsl} | 0 .../condition/basic.wgsl.expected.fxc.hlsl | 12 + ...lsl => struct_ctor.wgsl.expected.dxc.hlsl} | 0 .../struct_ctor.wgsl.expected.fxc.hlsl | 20 + ...hlsl => array_ctor.wgsl.expected.dxc.hlsl} | 0 .../array_ctor.wgsl.expected.fxc.hlsl | 19 + ...cted.hlsl => basic.wgsl.expected.dxc.hlsl} | 0 .../continuing/basic.wgsl.expected.fxc.hlsl | 12 + ...lsl => struct_ctor.wgsl.expected.dxc.hlsl} | 0 .../struct_ctor.wgsl.expected.fxc.hlsl | 25 + ...cted.hlsl => empty.wgsl.expected.dxc.hlsl} | 0 .../for/empty.wgsl.expected.fxc.hlsl | 11 + ...hlsl => array_ctor.wgsl.expected.dxc.hlsl} | 0 .../array_ctor.wgsl.expected.fxc.hlsl | 12 + ...cted.hlsl => basic.wgsl.expected.dxc.hlsl} | 0 .../initializer/basic.wgsl.expected.fxc.hlsl | 11 + ...lsl => struct_ctor.wgsl.expected.dxc.hlsl} | 0 .../struct_ctor.wgsl.expected.fxc.hlsl | 16 + ...ed.hlsl => scoping.wgsl.expected.dxc.hlsl} | 0 .../for/scoping.wgsl.expected.fxc.hlsl | 13 + ...l => array_element.wgsl.expected.dxc.hlsl} | 0 .../array_element.wgsl.expected.fxc.hlsl | 10 + ...ed.hlsl => complex.wgsl.expected.dxc.hlsl} | 0 .../increment/complex.wgsl.expected.fxc.hlsl | 63 + ...or_loop_continuing.wgsl.expected.dxc.hlsl} | 0 ...for_loop_continuing.wgsl.expected.fxc.hlsl | 13 + ...r_loop_initializer.wgsl.expected.dxc.hlsl} | 0 ...or_loop_initializer.wgsl.expected.fxc.hlsl | 13 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../increment/function.wgsl.expected.fxc.hlsl | 9 + ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../increment/private.wgsl.expected.fxc.hlsl | 10 + ...ed.hlsl => storage.wgsl.expected.dxc.hlsl} | 0 .../increment/storage.wgsl.expected.fxc.hlsl | 10 + ...> vector_component.wgsl.expected.dxc.hlsl} | 0 .../vector_component.wgsl.expected.fxc.hlsl | 12 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../workgroup.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => common.wgsl.expected.dxc.hlsl} | 0 .../switch/common.wgsl.expected.fxc.hlsl | 24 + ...lsl => fallthrough.wgsl.expected.dxc.hlsl} | 0 .../switch/fallthrough.wgsl.expected.fxc.hlsl | 16 + ... only_default_case.wgsl.expected.dxc.hlsl} | 0 .../only_default_case.wgsl.expected.fxc.hlsl | 11 + ...> type_constructor.wgsl.expected.dxc.hlsl} | 0 .../type_constructor.wgsl.expected.fxc.hlsl | 58 + ...scope_declarations.wgsl.expected.dxc.hlsl} | 0 ..._scope_declarations.wgsl.expected.fxc.hlsl | 28 + ...pe_var_conversions.wgsl.expected.dxc.hlsl} | 0 ...ope_var_conversions.wgsl.expected.fxc.hlsl | 30 + ...module_scope_const.wgsl.expected.dxc.hlsl} | 0 .../module_scope_const.wgsl.expected.fxc.hlsl | 4 + ...> module_scope_var.wgsl.expected.dxc.hlsl} | 0 .../module_scope_var.wgsl.expected.fxc.hlsl | 31 + ...pe_var_conversions.wgsl.expected.dxc.hlsl} | 0 ...ope_var_conversions.wgsl.expected.fxc.hlsl | 45 + ...e_var_initializers.wgsl.expected.dxc.hlsl} | 0 ...pe_var_initializers.wgsl.expected.fxc.hlsl | 31 + ...hlsl => parameters.wgsl.expected.dxc.hlsl} | 0 .../types/parameters.wgsl.expected.fxc.hlsl | 11 + ...sl => return_types.wgsl.expected.dxc.hlsl} | 0 .../types/return_types.wgsl.expected.fxc.hlsl | 51 + ...ed.hlsl => sampler.wgsl.expected.dxc.hlsl} | 0 .../tint/types/sampler.wgsl.expected.fxc.hlsl | 7 + ... => struct_members.wgsl.expected.dxc.hlsl} | 0 .../struct_members.wgsl.expected.fxc.hlsl | 21 + ...xpected.hlsl => 2d.wgsl.expected.dxc.hlsl} | 0 .../texture/depth/2d.wgsl.expected.fxc.hlsl | 6 + ...d.hlsl => 2d_array.wgsl.expected.dxc.hlsl} | 0 .../depth/2d_array.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => cube.wgsl.expected.dxc.hlsl} | 0 .../texture/depth/cube.wgsl.expected.fxc.hlsl | 6 + ...hlsl => cube_array.wgsl.expected.dxc.hlsl} | 0 .../depth/cube_array.wgsl.expected.fxc.hlsl | 6 + ...xpected.hlsl => 2d.wgsl.expected.dxc.hlsl} | 0 .../multisampled/2d.wgsl.expected.fxc.hlsl | 8 + ...xpected.hlsl => 1d.wgsl.expected.dxc.hlsl} | 0 .../texture/sampled/1d.wgsl.expected.fxc.hlsl | 8 + ...xpected.hlsl => 2d.wgsl.expected.dxc.hlsl} | 0 .../texture/sampled/2d.wgsl.expected.fxc.hlsl | 8 + ...d.hlsl => 2d_array.wgsl.expected.dxc.hlsl} | 0 .../sampled/2d_array.wgsl.expected.fxc.hlsl | 8 + ...xpected.hlsl => 3d.wgsl.expected.dxc.hlsl} | 0 .../texture/sampled/3d.wgsl.expected.fxc.hlsl | 8 + ...ected.hlsl => cube.wgsl.expected.dxc.hlsl} | 0 .../sampled/cube.wgsl.expected.fxc.hlsl | 8 + ...hlsl => cube_array.wgsl.expected.dxc.hlsl} | 0 .../sampled/cube_array.wgsl.expected.fxc.hlsl | 8 + ...xpected.hlsl => 1d.wgsl.expected.dxc.hlsl} | 0 .../texture/storage/1d.wgsl.expected.fxc.hlsl | 21 + ...xpected.hlsl => 2d.wgsl.expected.dxc.hlsl} | 0 .../texture/storage/2d.wgsl.expected.fxc.hlsl | 21 + ...d.hlsl => 2d_array.wgsl.expected.dxc.hlsl} | 0 .../storage/2d_array.wgsl.expected.fxc.hlsl | 21 + ...xpected.hlsl => 3d.wgsl.expected.dxc.hlsl} | 0 .../texture/storage/3d.wgsl.expected.fxc.hlsl | 21 + ...d.hlsl => comments.wgsl.expected.dxc.hlsl} | 0 .../unicode/comments.wgsl.expected.fxc.hlsl | 3 + ...lsl => identifiers.wgsl.expected.dxc.hlsl} | 0 .../identifiers.wgsl.expected.fxc.hlsl | 9 + ...kLoop_TrueBranch.spvasm.expected.dxc.hlsl} | 0 ...ckLoop_TrueBranch.spvasm.expected.fxc.hlsl | 24 + ...erHasBreakUnless.spvasm.expected.dxc.hlsl} | 0 ...derHasBreakUnless.spvasm.expected.fxc.hlsl | 25 + ...LoopBreak_OnTrue.spvasm.expected.dxc.hlsl} | 0 ..._LoopBreak_OnTrue.spvasm.expected.fxc.hlsl | 30 + ...LoopBreak_OnTrue.spvasm.expected.dxc.hlsl} | 0 ..._LoopBreak_OnTrue.spvasm.expected.fxc.hlsl | 28 + ...Continue_OnFalse.spvasm.expected.dxc.hlsl} | 0 ..._Continue_OnFalse.spvasm.expected.fxc.hlsl | 40 + ..._Forward_OnFalse.spvasm.expected.dxc.hlsl} | 0 ...k_Forward_OnFalse.spvasm.expected.fxc.hlsl | 33 + ...Branch_LoopBreak.spvasm.expected.dxc.hlsl} | 0 ...eBranch_LoopBreak.spvasm.expected.fxc.hlsl | 25 + ...yBreaks_FromTrue.spvasm.expected.dxc.hlsl} | 0 ...lyBreaks_FromTrue.spvasm.expected.fxc.hlsl | 29 + ...s_FromTrue_Early.spvasm.expected.dxc.hlsl} | 0 ...ks_FromTrue_Early.spvasm.expected.fxc.hlsl | 30 + ...ck_FalseBackedge.spvasm.expected.dxc.hlsl} | 0 ...ock_FalseBackedge.spvasm.expected.fxc.hlsl | 28 + ...nch_LoopBreak_Ok.spvasm.expected.dxc.hlsl} | 0 ...anch_LoopBreak_Ok.spvasm.expected.fxc.hlsl | 25 + ...otEncloseAllUses.spvasm.expected.dxc.hlsl} | 0 ...NotEncloseAllUses.spvasm.expected.fxc.hlsl | 42 + ..._FromElseAndThen.spvasm.expected.dxc.hlsl} | 0 ...i_FromElseAndThen.spvasm.expected.fxc.hlsl | 48 + ...romHeaderAndThen.spvasm.expected.dxc.hlsl} | 0 ...FromHeaderAndThen.spvasm.expected.fxc.hlsl | 48 + ...tiBlockLoopIndex.spvasm.expected.dxc.hlsl} | 0 ...ltiBlockLoopIndex.spvasm.expected.fxc.hlsl | 46 + ...leBlockLoopIndex.spvasm.expected.dxc.hlsl} | 0 ...gleBlockLoopIndex.spvasm.expected.fxc.hlsl | 41 + ...d.hlsl => function.wgsl.expected.dxc.hlsl} | 0 .../inferred/function.wgsl.expected.fxc.hlsl | 59 + ...ted.hlsl => global.wgsl.expected.dxc.hlsl} | 0 .../inferred/global.wgsl.expected.fxc.hlsl | 41 + ....hlsl => array_i32.wgsl.expected.dxc.hlsl} | 0 .../array/array_i32.wgsl.expected.fxc.hlsl | 8 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../function/array/i32.wgsl.expected.fxc.hlsl | 6 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../function/matrix.wgsl.expected.fxc.hlsl | 5 + ...ted.hlsl => scalar.wgsl.expected.dxc.hlsl} | 0 .../function/scalar.wgsl.expected.fxc.hlsl | 5 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../function/struct.wgsl.expected.fxc.hlsl | 10 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../function/vector.wgsl.expected.fxc.hlsl | 5 + ....hlsl => array_i32.wgsl.expected.dxc.hlsl} | 0 .../array/array_i32.wgsl.expected.fxc.hlsl | 9 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../private/array/i32.wgsl.expected.fxc.hlsl | 9 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../private/matrix.wgsl.expected.fxc.hlsl | 6 + ...ted.hlsl => scalar.wgsl.expected.dxc.hlsl} | 0 .../private/scalar.wgsl.expected.fxc.hlsl | 6 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../private/struct.wgsl.expected.fxc.hlsl | 11 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../private/vector.wgsl.expected.fxc.hlsl | 6 + ....hlsl => array_i32.wgsl.expected.dxc.hlsl} | 0 .../array/array_i32.wgsl.expected.fxc.hlsl | 23 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../array/i32.wgsl.expected.fxc.hlsl | 22 + ...ted.hlsl => matrix.wgsl.expected.dxc.hlsl} | 0 .../workgroup/matrix.wgsl.expected.fxc.hlsl | 18 + ...ted.hlsl => scalar.wgsl.expected.dxc.hlsl} | 0 .../workgroup/scalar.wgsl.expected.fxc.hlsl | 18 + ...ted.hlsl => struct.wgsl.expected.dxc.hlsl} | 0 .../workgroup/struct.wgsl.expected.fxc.hlsl | 24 + ...ted.hlsl => vector.wgsl.expected.dxc.hlsl} | 0 .../workgroup/vector.wgsl.expected.fxc.hlsl | 18 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../bool.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../no_init/i32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../no_init/u32.wgsl.expected.fxc.hlsl} | 0 .../bool.wgsl.expected.dxc.hlsl} | 0 .../val_init/bool.wgsl.expected.fxc.hlsl | 10 + .../f32.wgsl.expected.dxc.hlsl} | 0 .../val_init/f32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../i32.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => u32.wgsl.expected.dxc.hlsl} | 0 .../u32.wgsl.expected.fxc.hlsl} | 0 .../zero_init/bool.wgsl.expected.dxc.hlsl | 10 + .../zero_init/bool.wgsl.expected.fxc.hlsl | 10 + .../zero_init/f32.wgsl.expected.dxc.hlsl} | 0 .../zero_init/f32.wgsl.expected.fxc.hlsl | 6 + .../zero_init/i32.wgsl.expected.dxc.hlsl | 6 + .../zero_init/i32.wgsl.expected.fxc.hlsl | 6 + .../zero_init/u32.wgsl.expected.dxc.hlsl | 6 + .../zero_init/u32.wgsl.expected.fxc.hlsl | 6 + ...ected.hlsl => bool.wgsl.expected.dxc.hlsl} | 0 .../bool.wgsl.expected.fxc.hlsl} | 0 .../no_init/f32.wgsl.expected.dxc.hlsl | 6 + .../no_init/f32.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => i32.wgsl.expected.dxc.hlsl} | 0 .../no_init/i32.wgsl.expected.fxc.hlsl | 6 + .../u32.wgsl.expected.dxc.hlsl} | 0 .../u32.wgsl.expected.fxc.hlsl} | 0 .../bool.wgsl.expected.dxc.hlsl} | 0 .../val_init/bool.wgsl.expected.fxc.hlsl | 6 + ...pected.hlsl => f32.wgsl.expected.dxc.hlsl} | 0 .../val_init/f32.wgsl.expected.fxc.hlsl | 6 + .../i32.wgsl.expected.dxc.hlsl} | 0 .../val_init/i32.wgsl.expected.fxc.hlsl | 6 + .../val_init/u32.wgsl.expected.dxc.hlsl | 6 + .../val_init/u32.wgsl.expected.fxc.hlsl | 6 + .../zero_init/bool.wgsl.expected.dxc.hlsl | 6 + .../zero_init/bool.wgsl.expected.fxc.hlsl | 6 + .../zero_init/f32.wgsl.expected.dxc.hlsl | 6 + .../zero_init/f32.wgsl.expected.fxc.hlsl | 6 + .../zero_init/i32.wgsl.expected.dxc.hlsl | 6 + .../zero_init/i32.wgsl.expected.fxc.hlsl | 6 + .../zero_init/u32.wgsl.expected.dxc.hlsl | 6 + .../zero_init/u32.wgsl.expected.fxc.hlsl | 6 + ...any_workgroup_vars.wgsl.expected.dxc.hlsl} | 0 ...many_workgroup_vars.wgsl.expected.fxc.hlsl | 316 +++ ...ed.hlsl => private.wgsl.expected.dxc.hlsl} | 0 .../var/uses/private.wgsl.expected.fxc.hlsl | 53 + ....hlsl => workgroup.wgsl.expected.dxc.hlsl} | 0 .../var/uses/workgroup.wgsl.expected.fxc.hlsl | 90 + ...ed.hlsl => 0-opt.spvasm.expected.dxc.hlsl} | 0 .../0-opt.spvasm.expected.fxc.hlsl | 90 + ...cted.hlsl => 0-opt.wgsl.expected.dxc.hlsl} | 0 .../0-opt.wgsl.expected.fxc.hlsl | 90 + ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.dxc.hlsl} | 0 .../0-opt.spvasm.expected.fxc.hlsl | 101 + ...cted.hlsl => 0-opt.wgsl.expected.dxc.hlsl} | 0 .../0-opt.wgsl.expected.fxc.hlsl | 101 + ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.dxc.hlsl} | 0 .../0-opt.spvasm.expected.fxc.hlsl | 75 + ...cted.hlsl => 0-opt.wgsl.expected.dxc.hlsl} | 0 .../0-opt.wgsl.expected.fxc.hlsl | 75 + ...pected.hlsl => 0.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 0.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 1.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 1.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 1.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 1.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 0.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 0.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 0.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 0.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 1.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 1.wgsl.expected.fxc.hlsl} | 0 ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 1.spvasm.expected.fxc.hlsl} | 0 ...expected.hlsl => 1.wgsl.expected.fxc.hlsl} | 0 ...pected.hlsl => 0.spvasm.expected.dxc.hlsl} | 0 .../0.spvasm.expected.fxc.hlsl | 53 + ...expected.hlsl => 0.wgsl.expected.dxc.hlsl} | 0 .../0.wgsl.expected.fxc.hlsl | 53 + ...ed.hlsl => 0-opt.spvasm.expected.dxc.hlsl} | 0 .../0-opt.spvasm.expected.fxc.hlsl | 58 + ...cted.hlsl => 0-opt.wgsl.expected.dxc.hlsl} | 0 .../0-opt.wgsl.expected.fxc.hlsl | 58 + ...ed.hlsl => 0-opt.spvasm.expected.dxc.hlsl} | 0 .../0-opt.spvasm.expected.fxc.hlsl | 106 + ...cted.hlsl => 0-opt.wgsl.expected.dxc.hlsl} | 0 .../0-opt.wgsl.expected.fxc.hlsl | 118 + ...ed.hlsl => 0-opt.spvasm.expected.fxc.hlsl} | 0 ...cted.hlsl => 0-opt.wgsl.expected.fxc.hlsl} | 0 .../0-opt.spvasm.expected.glsl | 46 - .../no_image_atomic/0-opt.wgsl.expected.glsl | 46 - tools/src/cmd/test-runner/main.go | 154 +- 5122 files changed, 73624 insertions(+), 206 deletions(-) rename test/tint/access/let/{matrix.spvasm.expected.hlsl => matrix.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/let/matrix.spvasm.expected.fxc.hlsl rename test/tint/access/let/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/let/matrix.wgsl.expected.fxc.hlsl rename test/tint/access/let/{vector.spvasm.expected.hlsl => vector.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/let/vector.spvasm.expected.fxc.hlsl rename test/tint/access/let/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/let/vector.wgsl.expected.fxc.hlsl rename test/tint/access/var/{matrix.spvasm.expected.hlsl => matrix.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/var/matrix.spvasm.expected.fxc.hlsl rename test/tint/access/var/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/var/matrix.wgsl.expected.fxc.hlsl rename test/tint/access/var/{vector.spvasm.expected.hlsl => vector.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/var/vector.spvasm.expected.fxc.hlsl rename test/tint/access/var/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/access/var/vector.wgsl.expected.fxc.hlsl rename test/tint/array/{assign_to_function_var.wgsl.expected.hlsl => assign_to_function_var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/assign_to_function_var.wgsl.expected.fxc.hlsl rename test/tint/array/{assign_to_private_var.wgsl.expected.hlsl => assign_to_private_var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/assign_to_private_var.wgsl.expected.fxc.hlsl rename test/tint/array/{assign_to_storage_var.wgsl.expected.hlsl => assign_to_storage_var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/assign_to_storage_var.wgsl.expected.fxc.hlsl rename test/tint/array/{assign_to_subexpr.wgsl.expected.hlsl => assign_to_subexpr.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/assign_to_subexpr.wgsl.expected.fxc.hlsl rename test/tint/array/{assign_to_workgroup_var.wgsl.expected.hlsl => assign_to_workgroup_var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/assign_to_workgroup_var.wgsl.expected.fxc.hlsl rename test/tint/array/{function_parameter.wgsl.expected.hlsl => function_parameter.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/function_parameter.wgsl.expected.fxc.hlsl rename test/tint/array/{function_return_type.wgsl.expected.hlsl => function_return_type.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/function_return_type.wgsl.expected.fxc.hlsl rename test/tint/array/{size.wgsl.expected.hlsl => size.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/size.wgsl.expected.fxc.hlsl rename test/tint/array/{strides.spvasm.expected.hlsl => strides.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/strides.spvasm.expected.fxc.hlsl rename test/tint/array/{type_constructor.wgsl.expected.hlsl => type_constructor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/array/type_constructor.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/dynamic_index/{read.wgsl.expected.hlsl => read.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/dynamic_index/read.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/dynamic_index/{write.wgsl.expected.hlsl => write.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/dynamic_index/write.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/static_index/{read.wgsl.expected.hlsl => read.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/static_index/read.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/static_index/{write.wgsl.expected.hlsl => write.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/static_index/write.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/array.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/f32.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/i32.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{mat2x2.wgsl.expected.hlsl => mat2x2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/mat2x2.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{mat2x3.wgsl.expected.hlsl => mat2x3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/mat2x3.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{mat3x2.wgsl.expected.hlsl => mat3x2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/mat3x2.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{mat4x4.wgsl.expected.hlsl => mat4x4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/mat4x4.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{runtime_array.wgsl.expected.hlsl => runtime_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/runtime_array.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/struct.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/u32.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{vec2.wgsl.expected.hlsl => vec2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/vec2.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{vec3.wgsl.expected.hlsl => vec3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/vec3.wgsl.expected.fxc.hlsl rename test/tint/buffer/storage/types/{vec4.wgsl.expected.hlsl => vec4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/storage/types/vec4.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/dynamic_index/{read.wgsl.expected.hlsl => read.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/static_index/{read.wgsl.expected.hlsl => read.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/static_index/read.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/array.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/f32.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/i32.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{mat2x2.wgsl.expected.hlsl => mat2x2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/mat2x2.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{mat2x3.wgsl.expected.hlsl => mat2x3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/mat2x3.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{mat3x2.wgsl.expected.hlsl => mat3x2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/mat3x2.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{mat4x4.wgsl.expected.hlsl => mat4x4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/mat4x4.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/struct.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/u32.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{vec2.wgsl.expected.hlsl => vec2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/vec2.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{vec3.wgsl.expected.hlsl => vec3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/vec3.wgsl.expected.fxc.hlsl rename test/tint/buffer/uniform/types/{vec4.wgsl.expected.hlsl => vec4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/buffer/uniform/types/vec4.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1221120.wgsl.expected.hlsl => 1221120.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1221120.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1236161.wgsl.expected.hlsl => 1236161.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1236161.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1251009.wgsl.expected.hlsl => 1251009.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1251009.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1273230.wgsl.expected.hlsl => 1273230.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1273230.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1273451.wgsl.expected.hlsl => 1273451.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1273451.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1290107.wgsl.expected.hlsl => 1290107.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1290107.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1341475.wgsl.expected.hlsl => 1341475.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1341475.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1343242.wgsl.expected.hlsl => 1343242.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1343242.wgsl.expected.fxc.hlsl rename test/tint/bug/chromium/{1345468.wgsl.expected.hlsl => 1345468.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/chromium/1345468.wgsl.expected.fxc.hlsl rename test/tint/bug/dawn/{947.wgsl.expected.hlsl => 947.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/dawn/947.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/read/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/read/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/read/{storage.wgsl.expected.hlsl => storage.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/read/{uniform.wgsl.expected.hlsl => uniform.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/read/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{function_via_param.wgsl.expected.hlsl => function_via_param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{private_via_param.wgsl.expected.hlsl => private_via_param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{storage.wgsl.expected.hlsl => storage.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/dyn_array_idx/write/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/gradient_in_varying_loop/{1112.wgsl.expected.hlsl => 1112.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/indexed_assign_to_array_in_struct/{1206.wgsl.expected.hlsl => 1206.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{local_assign_scalar_x.wgsl.expected.hlsl => local_assign_scalar_x.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{local_assign_scalar_xy.wgsl.expected.hlsl => local_assign_scalar_xy.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{local_assign_scalar_y.wgsl.expected.hlsl => local_assign_scalar_y.wgsl.expected.dxc.hlsl} (100%) rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{module_assign_scalar_y.wgsl.expected.hlsl => local_assign_scalar_y.wgsl.expected.fxc.hlsl} (100%) rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{local_assign_vector.wgsl.expected.hlsl => local_assign_vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{module_assign_scalar_x.wgsl.expected.hlsl => module_assign_scalar_x.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{module_assign_scalar_xy.wgsl.expected.hlsl => module_assign_scalar_xy.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.fxc.hlsl create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.dxc.hlsl create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/matrix_assignment_dynamic_index/{module_assign_vector.wgsl.expected.hlsl => module_assign_vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{loop_call_with_loop.wgsl.expected.hlsl => loop_call_with_loop.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{loop_call_with_no_loop.wgsl.expected.hlsl => loop_call_with_no_loop.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{loop_types_all.wgsl.expected.hlsl => loop_types_all.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{loop_types_repeated.wgsl.expected.hlsl => loop_types_repeated.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{loop_types_some.wgsl.expected.hlsl => loop_types_some.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.fxc.hlsl rename test/tint/bug/fxc/vector_assignment_in_loop/{no_loop.wgsl.expected.hlsl => no_loop.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1046.wgsl.expected.hlsl => 1046.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1046.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1064.wgsl.expected.hlsl => 1064.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1064.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1076.wgsl.expected.hlsl => 1076.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1076.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1081.wgsl.expected.hlsl => 1081.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1081.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1083.wgsl.expected.hlsl => 1083.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1083.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1086.wgsl.expected.hlsl => 1086.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1086.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1088.spvasm.expected.hlsl => 1088.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1088.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{1113.wgsl.expected.hlsl => 1113.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1113.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1118.wgsl.expected.hlsl => 1118.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1118.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1121.wgsl.expected.hlsl => 1121.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1121.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1136.wgsl.expected.hlsl => 1136.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1136.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1321.wgsl.expected.hlsl => 1321.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1321.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1332.wgsl.expected.hlsl => 1332.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1332.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1369.wgsl.expected.hlsl => 1369.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1369.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1385.wgsl.expected.hlsl => 1385.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1385.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1509.wgsl.expected.hlsl => 1509.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1509.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1520.spvasm.expected.hlsl => 1520.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1520.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{1540.wgsl.expected.hlsl => 1540.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1540.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1541.wgsl.expected.hlsl => 1541.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1541.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1564.wgsl.expected.hlsl => 1564.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1564.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1573.wgsl.expected.hlsl => 1573.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1573.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{1574.wgsl.expected.hlsl => 1574.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/1574.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{219.spvasm.expected.hlsl => 219.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/219.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{221.wgsl.expected.hlsl => 221.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/221.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{292.wgsl.expected.hlsl => 292.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/292.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{294.wgsl.expected.hlsl => 294.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/294.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{369.wgsl.expected.hlsl => 369.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/369.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{403.wgsl.expected.hlsl => 403.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/403.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{413.spvasm.expected.hlsl => 413.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/413.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{453.wgsl.expected.hlsl => 453.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/453.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{492.wgsl.expected.hlsl => 492.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/492.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{534.wgsl.expected.hlsl => 534.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/534.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{744.wgsl.expected.hlsl => 744.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/744.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{749.spvasm.expected.hlsl => 749.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/749.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{757.wgsl.expected.hlsl => 757.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/757.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{764.wgsl.expected.hlsl => 764.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/764.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{782.wgsl.expected.hlsl => 782.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/782.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{804.spv.expected.hlsl => 804.spv.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/804.spv.expected.fxc.hlsl rename test/tint/bug/tint/{824.wgsl.expected.hlsl => 824.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/824.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{825.wgsl.expected.hlsl => 825.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/825.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{827.wgsl.expected.hlsl => 827.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/827.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{870.spvasm.expected.hlsl => 870.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/870.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{913.wgsl.expected.hlsl => 913.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/913.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{914.wgsl.expected.hlsl => 914.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/914.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{922.wgsl.expected.hlsl => 922.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/922.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{926.wgsl.expected.hlsl => 926.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/926.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{942.wgsl.expected.hlsl => 942.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/942.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{943.spvasm.expected.hlsl => 943.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/943.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{948.wgsl.expected.hlsl => 948.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/948.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{949.wgsl.expected.hlsl => 949.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/949.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{951.spvasm.expected.hlsl => 951.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/951.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{959.wgsl.expected.hlsl => 959.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/959.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{977.spvasm.expected.hlsl => 977.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/977.spvasm.expected.fxc.hlsl rename test/tint/bug/tint/{978.wgsl.expected.hlsl => 978.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/978.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{980.wgsl.expected.hlsl => 980.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/980.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{990.wgsl.expected.hlsl => 990.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/990.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{992.wgsl.expected.hlsl => 992.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/992.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{993.wgsl.expected.hlsl => 993.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/993.wgsl.expected.fxc.hlsl rename test/tint/bug/tint/{998.wgsl.expected.hlsl => 998.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/bug/tint/998.wgsl.expected.fxc.hlsl rename test/tint/builtins/arrayLength/{complex_via_let.wgsl.expected.hlsl => complex_via_let.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{simple.wgsl.expected.hlsl => complex_via_let.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{complex_via_let_no_struct.wgsl.expected.hlsl => complex_via_let_no_struct.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{simple_no_struct.wgsl.expected.hlsl => complex_via_let_no_struct.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{deprecated.wgsl.expected.hlsl => deprecated.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/arrayLength/deprecated.wgsl.expected.fxc.hlsl rename test/tint/builtins/arrayLength/{via_let.wgsl.expected.hlsl => simple.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{via_let_complex.wgsl.expected.hlsl => simple.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{via_let_complex_no_struct.wgsl.expected.hlsl => simple_no_struct.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/arrayLength/{via_let_no_struct.wgsl.expected.hlsl => simple_no_struct.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/builtins/arrayLength/via_let.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomicStore/array/{aliased_arrays.spvasm.expected.hlsl => aliased_arrays.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomicStore/array/{arrays.spvasm.expected.hlsl => aliased_arrays.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomicStore/array/{aliased_arrays.wgsl.expected.hlsl => aliased_arrays.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomicStore/array/{arrays.wgsl.expected.hlsl => aliased_arrays.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomicStore/array/{array.spvasm.expected.hlsl => array.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/array/array.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomicStore/array/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/array/array.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomicStore/array/arrays.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomicStore/array/arrays.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomicStore/array/arrays.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomicStore/array/arrays.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{array_of_struct.spvasm.expected.hlsl => array_of_struct.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{array_of_struct.wgsl.expected.hlsl => array_of_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{flat_multiple_atomics.spvasm.expected.hlsl => flat_multiple_atomics.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{flat_multiple_atomics.wgsl.expected.hlsl => flat_multiple_atomics.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{flat_single_atomic.spvasm.expected.hlsl => flat_single_atomic.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomicStore/struct/{via_ptr_let.spvasm.expected.hlsl => flat_single_atomic.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomicStore/struct/{flat_single_atomic.wgsl.expected.hlsl => flat_single_atomic.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomicStore/struct/{via_ptr_let.wgsl.expected.hlsl => flat_single_atomic.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomicStore/struct/{nested.spvasm.expected.hlsl => nested.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/nested.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{nested.wgsl.expected.hlsl => nested.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/nested.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{struct_of_array.spvasm.expected.hlsl => struct_of_array.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomicStore/struct/{struct_of_array.wgsl.expected.hlsl => struct_of_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicAdd/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/{spvAtomicIncrement/storage_i32.spvasm.expected.hlsl => atomicAdd/storage_i32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicAdd/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/{spvAtomicIncrement/storage_u32.spvasm.expected.hlsl => atomicAdd/storage_u32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicAdd/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/{spvAtomicIncrement/workgroup_i32.spvasm.expected.hlsl => atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicAdd/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/{spvAtomicIncrement/workgroup_u32.spvasm.expected.hlsl => atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicAnd/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicAnd/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicAnd/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicAnd/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicExchange/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicExchange/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicExchange/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicExchange/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicLoad/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/{var/atomicLoad/storage_i32.spvasm.expected.hlsl => literal/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicLoad/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/{var/atomicLoad/storage_u32.spvasm.expected.hlsl => literal/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicLoad/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/{var/atomicLoad/workgroup_i32.spvasm.expected.hlsl => literal/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicLoad/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/{var/atomicLoad/workgroup_u32.spvasm.expected.hlsl => literal/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl} (100%) rename test/tint/builtins/atomics/from_gen/literal/atomicMax/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMax/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMax/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMax/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMin/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMin/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMin/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicMin/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicOr/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicOr/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicOr/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicOr/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicStore/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicStore/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicStore/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicStore/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicSub/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicSub/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicSub/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicSub/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicXor/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicXor/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicXor/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/atomicXor/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAdd/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAdd/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAdd/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAdd/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAnd/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAnd/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAnd/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicAnd/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicExchange/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicExchange/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicExchange/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicExchange/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMax/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMax/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMax/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMax/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMin/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMin/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMin/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicMin/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicOr/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicOr/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicOr/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicOr/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicStore/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicStore/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicStore/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicStore/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicSub/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicSub/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicSub/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicSub/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicXor/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicXor/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicXor/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/atomicXor/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/{storage_i32.spvasm.expected.hlsl => storage_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/{storage_u32.spvasm.expected.hlsl => storage_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/{workgroup_i32.spvasm.expected.hlsl => workgroup_i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/{workgroup_u32.spvasm.expected.hlsl => workgroup_u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/{degrees.spvasm.expected.hlsl => degrees.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/degrees.spvasm.expected.fxc.hlsl rename test/tint/builtins/extractBits/scalar/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/extractBits/scalar/i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/extractBits/scalar/{u32.spvasm.expected.hlsl => u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/extractBits/scalar/u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/extractBits/vec3/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/extractBits/vec3/i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/extractBits/vec3/{u32.spvasm.expected.hlsl => u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/extractBits/vec3/u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/{frexp.wgsl.expected.hlsl => frexp.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/frexp.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{002533.wgsl.expected.hlsl => 002533.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/002533.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{005174.wgsl.expected.hlsl => 005174.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/005174.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{1ce782.wgsl.expected.hlsl => 1ce782.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{1e9d53.wgsl.expected.hlsl => 1e9d53.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{467cd1.wgsl.expected.hlsl => 467cd1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{4ad288.wgsl.expected.hlsl => 4ad288.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{5ad50a.wgsl.expected.hlsl => 5ad50a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{7326de.wgsl.expected.hlsl => 7326de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{7f28e6.wgsl.expected.hlsl => 7f28e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{7faa9e.wgsl.expected.hlsl => 7faa9e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{9c80a6.wgsl.expected.hlsl => 9c80a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/abs/{b96037.wgsl.expected.hlsl => b96037.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acos/{489247.wgsl.expected.hlsl => 489247.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acos/489247.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acos/{8e2acf.wgsl.expected.hlsl => 8e2acf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acos/{a610c4.wgsl.expected.hlsl => a610c4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acos/{dfc915.wgsl.expected.hlsl => dfc915.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acosh/{640883.wgsl.expected.hlsl => 640883.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acosh/{d51ccb.wgsl.expected.hlsl => d51ccb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acosh/{e38f5c.wgsl.expected.hlsl => e38f5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/acosh/{ecf2d1.wgsl.expected.hlsl => ecf2d1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/all/{353d6a.wgsl.expected.hlsl => 353d6a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/all/{986c7b.wgsl.expected.hlsl => 986c7b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/all/{bd2dba.wgsl.expected.hlsl => bd2dba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/all/{f46790.wgsl.expected.hlsl => f46790.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/all/f46790.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/any/{083428.wgsl.expected.hlsl => 083428.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/any/083428.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/any/{0e3e58.wgsl.expected.hlsl => 0e3e58.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/any/{2ab91a.wgsl.expected.hlsl => 2ab91a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/any/{e755c1.wgsl.expected.hlsl => e755c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/arrayLength/{1588cd.wgsl.expected.hlsl => 1588cd.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/1588cd.wgsl.expected.hlsl => literal/arrayLength/1588cd.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{61b1c7.wgsl.expected.hlsl => 61b1c7.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/61b1c7.wgsl.expected.hlsl => literal/arrayLength/61b1c7.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{8421b9.wgsl.expected.hlsl => 8421b9.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{cbd6b5.wgsl.expected.hlsl => 8421b9.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{a0f5ca.wgsl.expected.hlsl => a0f5ca.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/a0f5ca.wgsl.expected.hlsl => literal/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/8421b9.wgsl.expected.hlsl => literal/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/cbd6b5.wgsl.expected.hlsl => literal/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{cdd123.wgsl.expected.hlsl => cdd123.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/cdd123.wgsl.expected.hlsl => literal/arrayLength/cdd123.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{cfca0a.wgsl.expected.hlsl => cfca0a.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/cfca0a.wgsl.expected.hlsl => literal/arrayLength/cfca0a.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/arrayLength/{eb510f.wgsl.expected.hlsl => eb510f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/arrayLength/eb510f.wgsl.expected.hlsl => literal/arrayLength/eb510f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/asin/{064953.wgsl.expected.hlsl => 064953.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asin/064953.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asin/{7b6a44.wgsl.expected.hlsl => 7b6a44.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asin/{8cd9c9.wgsl.expected.hlsl => 8cd9c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asin/{c0c272.wgsl.expected.hlsl => c0c272.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asinh/{157447.wgsl.expected.hlsl => 157447.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asinh/{2265ee.wgsl.expected.hlsl => 2265ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asinh/{4a2226.wgsl.expected.hlsl => 4a2226.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/asinh/{8d2e51.wgsl.expected.hlsl => 8d2e51.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan/{02979a.wgsl.expected.hlsl => 02979a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan/{331e6d.wgsl.expected.hlsl => 331e6d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan/{a8b696.wgsl.expected.hlsl => a8b696.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan/{ad96e4.wgsl.expected.hlsl => ad96e4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan2/{57fb13.wgsl.expected.hlsl => 57fb13.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan2/{96057c.wgsl.expected.hlsl => 96057c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan2/{a70d0d.wgsl.expected.hlsl => a70d0d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atan2/{ae713e.wgsl.expected.hlsl => ae713e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atanh/{440cca.wgsl.expected.hlsl => 440cca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atanh/{7997d8.wgsl.expected.hlsl => 7997d8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atanh/{c0e634.wgsl.expected.hlsl => c0e634.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atanh/{f3e01b.wgsl.expected.hlsl => f3e01b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAdd/{794055.wgsl.expected.hlsl => 794055.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAdd/{8a199a.wgsl.expected.hlsl => 8a199a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAdd/{d32fe4.wgsl.expected.hlsl => d32fe4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAdd/{d5db1d.wgsl.expected.hlsl => d5db1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAnd/{152966.wgsl.expected.hlsl => 152966.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAnd/{34edd3.wgsl.expected.hlsl => 34edd3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAnd/{45a819.wgsl.expected.hlsl => 45a819.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicAnd/{85a8d9.wgsl.expected.hlsl => 85a8d9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicCompareExchangeWeak/{1bd40a.wgsl.expected.hlsl => 1bd40a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicCompareExchangeWeak/{63d8e6.wgsl.expected.hlsl => 63d8e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicCompareExchangeWeak/{83580d.wgsl.expected.hlsl => 83580d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicCompareExchangeWeak/{e88938.wgsl.expected.hlsl => e88938.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicExchange/{0a5dca.wgsl.expected.hlsl => 0a5dca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicExchange/{d59712.wgsl.expected.hlsl => d59712.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicExchange/{e114ba.wgsl.expected.hlsl => e114ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicExchange/{f2e22f.wgsl.expected.hlsl => f2e22f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicLoad/{0806ad.wgsl.expected.hlsl => 0806ad.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/atomicLoad/0806ad.wgsl.expected.hlsl => literal/atomicLoad/0806ad.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/atomicLoad/{361bf1.wgsl.expected.hlsl => 361bf1.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/atomicLoad/361bf1.wgsl.expected.hlsl => literal/atomicLoad/361bf1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/atomicLoad/{afcc03.wgsl.expected.hlsl => afcc03.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/atomicLoad/afcc03.wgsl.expected.hlsl => literal/atomicLoad/afcc03.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/atomicLoad/{fe6cc3.wgsl.expected.hlsl => fe6cc3.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/atomicLoad/fe6cc3.wgsl.expected.hlsl => literal/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/atomicMax/{51b9be.wgsl.expected.hlsl => 51b9be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMax/{92aa72.wgsl.expected.hlsl => 92aa72.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMax/{a89cc3.wgsl.expected.hlsl => a89cc3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMax/{beccfc.wgsl.expected.hlsl => beccfc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMin/{278235.wgsl.expected.hlsl => 278235.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMin/{69d383.wgsl.expected.hlsl => 69d383.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMin/{8e38dc.wgsl.expected.hlsl => 8e38dc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicMin/{c67a74.wgsl.expected.hlsl => c67a74.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicOr/{5e3d61.wgsl.expected.hlsl => 5e3d61.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicOr/{5e95d4.wgsl.expected.hlsl => 5e95d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicOr/{8d96a0.wgsl.expected.hlsl => 8d96a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicOr/{d09248.wgsl.expected.hlsl => d09248.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicStore/{726882.wgsl.expected.hlsl => 726882.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicStore/{8bea94.wgsl.expected.hlsl => 8bea94.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicStore/{cdc29e.wgsl.expected.hlsl => cdc29e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicStore/{d1e9a6.wgsl.expected.hlsl => d1e9a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicSub/{051100.wgsl.expected.hlsl => 051100.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicSub/{0d26c2.wgsl.expected.hlsl => 0d26c2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicSub/{15bfc9.wgsl.expected.hlsl => 15bfc9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicSub/{77883a.wgsl.expected.hlsl => 77883a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicXor/{54510e.wgsl.expected.hlsl => 54510e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicXor/{75dc95.wgsl.expected.hlsl => 75dc95.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicXor/{c1b78c.wgsl.expected.hlsl => c1b78c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/atomicXor/{c8e6be.wgsl.expected.hlsl => c8e6be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ceil/{34064b.wgsl.expected.hlsl => 34064b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ceil/{678655.wgsl.expected.hlsl => 678655.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ceil/{96f597.wgsl.expected.hlsl => 96f597.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ceil/{b74c16.wgsl.expected.hlsl => b74c16.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{0acf8f.wgsl.expected.hlsl => 0acf8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{1a32e3.wgsl.expected.hlsl => 1a32e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{2bd567.wgsl.expected.hlsl => 2bd567.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{2bde41.wgsl.expected.hlsl => 2bde41.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{548fc7.wgsl.expected.hlsl => 548fc7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{5f0819.wgsl.expected.hlsl => 5f0819.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{6c1749.wgsl.expected.hlsl => 6c1749.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{7706d7.wgsl.expected.hlsl => 7706d7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{867397.wgsl.expected.hlsl => 867397.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{a2de25.wgsl.expected.hlsl => a2de25.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{b07c65.wgsl.expected.hlsl => b07c65.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/clamp/{bd43ce.wgsl.expected.hlsl => bd43ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cos/{16dc15.wgsl.expected.hlsl => 16dc15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cos/{29d66d.wgsl.expected.hlsl => 29d66d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cos/{c3b486.wgsl.expected.hlsl => c3b486.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cos/{c5c28e.wgsl.expected.hlsl => c5c28e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cosh/{377652.wgsl.expected.hlsl => 377652.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cosh/{c13756.wgsl.expected.hlsl => c13756.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cosh/{da92dd.wgsl.expected.hlsl => da92dd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cosh/{e0c1de.wgsl.expected.hlsl => e0c1de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{208d46.wgsl.expected.hlsl => 208d46.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{6d4656.wgsl.expected.hlsl => 6d4656.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{70783f.wgsl.expected.hlsl => 70783f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{7c38a6.wgsl.expected.hlsl => 7c38a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{858d40.wgsl.expected.hlsl => 858d40.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{ab6345.wgsl.expected.hlsl => ab6345.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{eab32b.wgsl.expected.hlsl => eab32b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countLeadingZeros/{f70103.wgsl.expected.hlsl => f70103.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{0d0e46.wgsl.expected.hlsl => 0d0e46.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{0f7980.wgsl.expected.hlsl => 0f7980.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{65d2ae.wgsl.expected.hlsl => 65d2ae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{690cfc.wgsl.expected.hlsl => 690cfc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{94fd81.wgsl.expected.hlsl => 94fd81.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{ae44f9.wgsl.expected.hlsl => ae44f9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{af90e2.wgsl.expected.hlsl => af90e2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countOneBits/{fd88b2.wgsl.expected.hlsl => fd88b2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{1ad138.wgsl.expected.hlsl => 1ad138.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{1dc84a.wgsl.expected.hlsl => 1dc84a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{21e394.wgsl.expected.hlsl => 21e394.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{327c37.wgsl.expected.hlsl => 327c37.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{42fed6.wgsl.expected.hlsl => 42fed6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{8ed26f.wgsl.expected.hlsl => 8ed26f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{acfacb.wgsl.expected.hlsl => acfacb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/countTrailingZeros/{d2b4a0.wgsl.expected.hlsl => d2b4a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/cross/{041cb0.wgsl.expected.hlsl => 041cb0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/degrees/{0d170c.wgsl.expected.hlsl => 0d170c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/degrees/{1ad5df.wgsl.expected.hlsl => 1ad5df.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/degrees/{2af623.wgsl.expected.hlsl => 2af623.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/degrees/{51f705.wgsl.expected.hlsl => 51f705.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/determinant/{2b62ba.wgsl.expected.hlsl => 2b62ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/determinant/{a0a87c.wgsl.expected.hlsl => a0a87c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/determinant/{e19305.wgsl.expected.hlsl => e19305.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/distance/{0657d4.wgsl.expected.hlsl => 0657d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/distance/{9646ea.wgsl.expected.hlsl => 9646ea.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/distance/{aa4055.wgsl.expected.hlsl => aa4055.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/distance/{cfed73.wgsl.expected.hlsl => cfed73.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{0c577b.wgsl.expected.hlsl => 0c577b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{7548a0.wgsl.expected.hlsl => 7548a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{883f0e.wgsl.expected.hlsl => 883f0e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{97c7ee.wgsl.expected.hlsl => 97c7ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{ba4246.wgsl.expected.hlsl => ba4246.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{e994c7.wgsl.expected.hlsl => e994c7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{ef6b1d.wgsl.expected.hlsl => ef6b1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{f1312c.wgsl.expected.hlsl => f1312c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dot/{fc5f7c.wgsl.expected.hlsl => fc5f7c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdx/{0763f7.wgsl.expected.hlsl => 0763f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdx/{99edb1.wgsl.expected.hlsl => 99edb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdx/{c487fa.wgsl.expected.hlsl => c487fa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdx/{e263de.wgsl.expected.hlsl => e263de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxCoarse/{029152.wgsl.expected.hlsl => 029152.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxCoarse/{9581cf.wgsl.expected.hlsl => 9581cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxCoarse/{c28641.wgsl.expected.hlsl => c28641.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxCoarse/{f64d7b.wgsl.expected.hlsl => f64d7b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxFine/{8c5069.wgsl.expected.hlsl => 8c5069.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxFine/{9631de.wgsl.expected.hlsl => 9631de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxFine/{f401a2.wgsl.expected.hlsl => f401a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdxFine/{f92fb6.wgsl.expected.hlsl => f92fb6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdy/{699a05.wgsl.expected.hlsl => 699a05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdy/{7f8d84.wgsl.expected.hlsl => 7f8d84.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdy/{a8b56e.wgsl.expected.hlsl => a8b56e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdy/{feb40f.wgsl.expected.hlsl => feb40f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyCoarse/{3e1ab4.wgsl.expected.hlsl => 3e1ab4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyCoarse/{445d24.wgsl.expected.hlsl => 445d24.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyCoarse/{870a7e.wgsl.expected.hlsl => 870a7e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyCoarse/{ae1873.wgsl.expected.hlsl => ae1873.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyFine/{1fb7ab.wgsl.expected.hlsl => 1fb7ab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyFine/{6eb673.wgsl.expected.hlsl => 6eb673.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyFine/{d0a648.wgsl.expected.hlsl => d0a648.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/dpdyFine/{df33aa.wgsl.expected.hlsl => df33aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp/{0f70eb.wgsl.expected.hlsl => 0f70eb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp/{1951e7.wgsl.expected.hlsl => 1951e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp/{771fd2.wgsl.expected.hlsl => 771fd2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp/{d98450.wgsl.expected.hlsl => d98450.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp2/{1f8680.wgsl.expected.hlsl => 1f8680.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp2/{a9d0a7.wgsl.expected.hlsl => a9d0a7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp2/{d6777c.wgsl.expected.hlsl => d6777c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/exp2/{dea523.wgsl.expected.hlsl => dea523.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{12b197.wgsl.expected.hlsl => 12b197.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{249874.wgsl.expected.hlsl => 249874.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{631377.wgsl.expected.hlsl => 631377.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{a99a8d.wgsl.expected.hlsl => a99a8d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{ce81f8.wgsl.expected.hlsl => ce81f8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{e04f5d.wgsl.expected.hlsl => e04f5d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{f28f69.wgsl.expected.hlsl => f28f69.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/extractBits/{fb850f.wgsl.expected.hlsl => fb850f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/faceForward/{5afbd5.wgsl.expected.hlsl => 5afbd5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/faceForward/{b316e5.wgsl.expected.hlsl => b316e5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/faceForward/{e6908b.wgsl.expected.hlsl => e6908b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{000ff3.wgsl.expected.hlsl => 000ff3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{35053e.wgsl.expected.hlsl => 35053e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{3fd7d0.wgsl.expected.hlsl => 3fd7d0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{57a1a3.wgsl.expected.hlsl => 57a1a3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{6fe804.wgsl.expected.hlsl => 6fe804.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{a622c2.wgsl.expected.hlsl => a622c2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{c1f940.wgsl.expected.hlsl => c1f940.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstLeadingBit/{f0779d.wgsl.expected.hlsl => f0779d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{110f2c.wgsl.expected.hlsl => 110f2c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{3a2acc.wgsl.expected.hlsl => 3a2acc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{45eb10.wgsl.expected.hlsl => 45eb10.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{47d475.wgsl.expected.hlsl => 47d475.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{50c072.wgsl.expected.hlsl => 50c072.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{7496d6.wgsl.expected.hlsl => 7496d6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{86551b.wgsl.expected.hlsl => 86551b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/firstTrailingBit/{cb51ce.wgsl.expected.hlsl => cb51ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/floor/{3bccc4.wgsl.expected.hlsl => 3bccc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/floor/{5fc9ac.wgsl.expected.hlsl => 5fc9ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/floor/{60d7ea.wgsl.expected.hlsl => 60d7ea.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/floor/{66f154.wgsl.expected.hlsl => 66f154.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fma/{26a7a9.wgsl.expected.hlsl => 26a7a9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fma/{6a3283.wgsl.expected.hlsl => 6a3283.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fma/{c10ba3.wgsl.expected.hlsl => c10ba3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fma/{e17c5c.wgsl.expected.hlsl => e17c5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fract/{8bc1e9.wgsl.expected.hlsl => 8bc1e9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fract/{943cb1.wgsl.expected.hlsl => 943cb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fract/{a49758.wgsl.expected.hlsl => a49758.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fract/{fa5c71.wgsl.expected.hlsl => fa5c71.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/frexp/{368997.wgsl.expected.hlsl => 368997.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/frexp/{3c4f48.wgsl.expected.hlsl => 3c4f48.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/frexp/{4bdfc7.wgsl.expected.hlsl => 4bdfc7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/frexp/{eabd40.wgsl.expected.hlsl => eabd40.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidth/{5d1b39.wgsl.expected.hlsl => 5d1b39.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidth/{b83ebb.wgsl.expected.hlsl => b83ebb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidth/{d2ab9a.wgsl.expected.hlsl => d2ab9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidth/{df38ef.wgsl.expected.hlsl => df38ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthCoarse/{159c8a.wgsl.expected.hlsl => 159c8a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthCoarse/{1e59d9.wgsl.expected.hlsl => 1e59d9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthCoarse/{4e4fc4.wgsl.expected.hlsl => 4e4fc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthCoarse/{e653f7.wgsl.expected.hlsl => e653f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthFine/{523fdc.wgsl.expected.hlsl => 523fdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthFine/{68f4ef.wgsl.expected.hlsl => 68f4ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthFine/{f1742d.wgsl.expected.hlsl => f1742d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/fwidthFine/{ff6aa0.wgsl.expected.hlsl => ff6aa0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{3c7ba5.wgsl.expected.hlsl => 3c7ba5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{428b0b.wgsl.expected.hlsl => 428b0b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{51ede1.wgsl.expected.hlsl => 51ede1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{65468b.wgsl.expected.hlsl => 65468b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{87826b.wgsl.expected.hlsl => 87826b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{d86978.wgsl.expected.hlsl => d86978.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{e3e3a2.wgsl.expected.hlsl => e3e3a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/insertBits/{fe6ba6.wgsl.expected.hlsl => fe6ba6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/inverseSqrt/{84407e.wgsl.expected.hlsl => 84407e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/inverseSqrt/{8f2bd2.wgsl.expected.hlsl => 8f2bd2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/inverseSqrt/{b197b1.wgsl.expected.hlsl => b197b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/inverseSqrt/{c22347.wgsl.expected.hlsl => c22347.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ldexp/{a31cdc.wgsl.expected.hlsl => a31cdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ldexp/{abd718.wgsl.expected.hlsl => abd718.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ldexp/{cc9cde.wgsl.expected.hlsl => cc9cde.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/ldexp/{db8b49.wgsl.expected.hlsl => db8b49.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/length/{056071.wgsl.expected.hlsl => 056071.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/length/056071.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/length/{602a17.wgsl.expected.hlsl => 602a17.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/length/602a17.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/length/{afde8b.wgsl.expected.hlsl => afde8b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/length/{becebf.wgsl.expected.hlsl => becebf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/length/becebf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log/{3da25a.wgsl.expected.hlsl => 3da25a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log/{7114a6.wgsl.expected.hlsl => 7114a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log/{b2ce28.wgsl.expected.hlsl => b2ce28.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log/{f4c570.wgsl.expected.hlsl => f4c570.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log2/{4036ed.wgsl.expected.hlsl => 4036ed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log2/{902988.wgsl.expected.hlsl => 902988.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log2/902988.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log2/{adb233.wgsl.expected.hlsl => adb233.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/log2/{aea659.wgsl.expected.hlsl => aea659.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{0c0aae.wgsl.expected.hlsl => 0c0aae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{25eafe.wgsl.expected.hlsl => 25eafe.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{320815.wgsl.expected.hlsl => 320815.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/320815.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{44a39d.wgsl.expected.hlsl => 44a39d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{453e04.wgsl.expected.hlsl => 453e04.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/453e04.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{462050.wgsl.expected.hlsl => 462050.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/462050.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{4883ac.wgsl.expected.hlsl => 4883ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{85e6bc.wgsl.expected.hlsl => 85e6bc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{a93419.wgsl.expected.hlsl => a93419.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/a93419.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{b1b73a.wgsl.expected.hlsl => b1b73a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{ce7c30.wgsl.expected.hlsl => ce7c30.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/max/{e8192f.wgsl.expected.hlsl => e8192f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{03c7e3.wgsl.expected.hlsl => 03c7e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{0dc614.wgsl.expected.hlsl => 0dc614.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{3941e1.wgsl.expected.hlsl => 3941e1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{46c5d3.wgsl.expected.hlsl => 46c5d3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{82b28f.wgsl.expected.hlsl => 82b28f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{93cfc4.wgsl.expected.hlsl => 93cfc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{a45171.wgsl.expected.hlsl => a45171.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/a45171.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{aa28ad.wgsl.expected.hlsl => aa28ad.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{af326d.wgsl.expected.hlsl => af326d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/af326d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{c70bb7.wgsl.expected.hlsl => c70bb7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{c73147.wgsl.expected.hlsl => c73147.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/c73147.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/min/{c76fa6.wgsl.expected.hlsl => c76fa6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{0c8c33.wgsl.expected.hlsl => 0c8c33.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{1faeb1.wgsl.expected.hlsl => 1faeb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{2fadab.wgsl.expected.hlsl => 2fadab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{315264.wgsl.expected.hlsl => 315264.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/315264.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{4f0b5e.wgsl.expected.hlsl => 4f0b5e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{6f8adc.wgsl.expected.hlsl => 6f8adc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/mix/{c37ede.wgsl.expected.hlsl => c37ede.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/modf/{180fed.wgsl.expected.hlsl => 180fed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/modf/{9b75f7.wgsl.expected.hlsl => 9b75f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/modf/{ec2dbc.wgsl.expected.hlsl => ec2dbc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/modf/{f5f20d.wgsl.expected.hlsl => f5f20d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/normalize/{64d8c0.wgsl.expected.hlsl => 64d8c0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/normalize/{9a0aab.wgsl.expected.hlsl => 9a0aab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/normalize/{fc2ef1.wgsl.expected.hlsl => fc2ef1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pack2x16float/{0e97b3.wgsl.expected.hlsl => 0e97b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pack2x16snorm/{6c169b.wgsl.expected.hlsl => 6c169b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pack2x16unorm/{0f08e4.wgsl.expected.hlsl => 0f08e4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pack4x8snorm/{4d22e7.wgsl.expected.hlsl => 4d22e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pack4x8unorm/{95c456.wgsl.expected.hlsl => 95c456.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pow/{04a908.wgsl.expected.hlsl => 04a908.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pow/{46e029.wgsl.expected.hlsl => 46e029.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pow/{4a46c9.wgsl.expected.hlsl => 4a46c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/pow/{e60ea5.wgsl.expected.hlsl => e60ea5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/radians/{09b7fc.wgsl.expected.hlsl => 09b7fc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/radians/{61687a.wgsl.expected.hlsl => 61687a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/radians/{6b0ff2.wgsl.expected.hlsl => 6b0ff2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/radians/{f96258.wgsl.expected.hlsl => f96258.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reflect/{05357e.wgsl.expected.hlsl => 05357e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reflect/{b61e10.wgsl.expected.hlsl => b61e10.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reflect/{f47fdb.wgsl.expected.hlsl => f47fdb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/refract/{7e02e6.wgsl.expected.hlsl => 7e02e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/refract/{cbc1d2.wgsl.expected.hlsl => cbc1d2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/refract/{cd905f.wgsl.expected.hlsl => cd905f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{222177.wgsl.expected.hlsl => 222177.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{35fea9.wgsl.expected.hlsl => 35fea9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{4dbd6f.wgsl.expected.hlsl => 4dbd6f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{7c4269.wgsl.expected.hlsl => 7c4269.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{a6ccd4.wgsl.expected.hlsl => a6ccd4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{c21bc1.wgsl.expected.hlsl => c21bc1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{e1f4c1.wgsl.expected.hlsl => e1f4c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/reverseBits/{e31adf.wgsl.expected.hlsl => e31adf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/round/{106c0b.wgsl.expected.hlsl => 106c0b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/round/{1c7897.wgsl.expected.hlsl => 1c7897.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/round/{52c84d.wgsl.expected.hlsl => 52c84d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/round/{9edc38.wgsl.expected.hlsl => 9edc38.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{00b848.wgsl.expected.hlsl => 00b848.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/00b848.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{01e2cd.wgsl.expected.hlsl => 01e2cd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{087ea4.wgsl.expected.hlsl => 087ea4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{1e960b.wgsl.expected.hlsl => 1e960b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{266aff.wgsl.expected.hlsl => 266aff.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/266aff.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{28a27e.wgsl.expected.hlsl => 28a27e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{3c25ce.wgsl.expected.hlsl => 3c25ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{416e14.wgsl.expected.hlsl => 416e14.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/416e14.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{51b047.wgsl.expected.hlsl => 51b047.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/51b047.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{713567.wgsl.expected.hlsl => 713567.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/713567.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{78be5f.wgsl.expected.hlsl => 78be5f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{80a9a9.wgsl.expected.hlsl => 80a9a9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{8fa62c.wgsl.expected.hlsl => 8fa62c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{99f883.wgsl.expected.hlsl => 99f883.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/99f883.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{a2860e.wgsl.expected.hlsl => a2860e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{ab069f.wgsl.expected.hlsl => ab069f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{b04721.wgsl.expected.hlsl => b04721.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/b04721.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{bb447f.wgsl.expected.hlsl => bb447f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{bb8aae.wgsl.expected.hlsl => bb8aae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{bf3d29.wgsl.expected.hlsl => bf3d29.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{c31f9e.wgsl.expected.hlsl => c31f9e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{c41bd1.wgsl.expected.hlsl => c41bd1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{c4a4ef.wgsl.expected.hlsl => c4a4ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{cb9301.wgsl.expected.hlsl => cb9301.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{e3e028.wgsl.expected.hlsl => e3e028.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{ebfea2.wgsl.expected.hlsl => ebfea2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{ed8a15.wgsl.expected.hlsl => ed8a15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/select/{fb7e53.wgsl.expected.hlsl => fb7e53.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sign/{159665.wgsl.expected.hlsl => 159665.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sign/159665.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sign/{b8f634.wgsl.expected.hlsl => b8f634.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sign/{d065d8.wgsl.expected.hlsl => d065d8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sign/{dd790e.wgsl.expected.hlsl => dd790e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sin/{01f241.wgsl.expected.hlsl => 01f241.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sin/{4e3979.wgsl.expected.hlsl => 4e3979.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sin/{b78c91.wgsl.expected.hlsl => b78c91.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sin/{fc8bc4.wgsl.expected.hlsl => fc8bc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sinh/{445e33.wgsl.expected.hlsl => 445e33.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sinh/{7bb598.wgsl.expected.hlsl => 7bb598.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sinh/{b9860e.wgsl.expected.hlsl => b9860e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sinh/{c9a5eb.wgsl.expected.hlsl => c9a5eb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/smoothstep/{392c19.wgsl.expected.hlsl => 392c19.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/smoothstep/{40864c.wgsl.expected.hlsl => 40864c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/smoothstep/{6c4975.wgsl.expected.hlsl => 6c4975.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/smoothstep/{aad1db.wgsl.expected.hlsl => aad1db.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sqrt/{20c74e.wgsl.expected.hlsl => 20c74e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sqrt/{8c7024.wgsl.expected.hlsl => 8c7024.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sqrt/{aa0d7a.wgsl.expected.hlsl => aa0d7a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/sqrt/{f8c59a.wgsl.expected.hlsl => f8c59a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/step/{0b073b.wgsl.expected.hlsl => 0b073b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/step/{19accd.wgsl.expected.hlsl => 19accd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/step/19accd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/step/{334303.wgsl.expected.hlsl => 334303.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/step/334303.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/step/{e2b337.wgsl.expected.hlsl => e2b337.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/storageBarrier/{d87211.wgsl.expected.hlsl => d87211.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/storageBarrier/d87211.wgsl.expected.hlsl => literal/storageBarrier/d87211.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/tan/{244e2a.wgsl.expected.hlsl => 244e2a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tan/{2f030e.wgsl.expected.hlsl => 2f030e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tan/{7ea104.wgsl.expected.hlsl => 7ea104.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tan/{8ce3e9.wgsl.expected.hlsl => 8ce3e9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tanh/{5663c5.wgsl.expected.hlsl => 5663c5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tanh/{5724b3.wgsl.expected.hlsl => 5724b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tanh/{9f9fb9.wgsl.expected.hlsl => 9f9fb9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/tanh/{c15fdb.wgsl.expected.hlsl => c15fdb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{002b2a.wgsl.expected.hlsl => 002b2a.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/002b2a.wgsl.expected.hlsl => literal/textureDimensions/002b2a.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{012b82.wgsl.expected.hlsl => 012b82.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/012b82.wgsl.expected.hlsl => literal/textureDimensions/012b82.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{08753d.wgsl.expected.hlsl => 08753d.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/08753d.wgsl.expected.hlsl => literal/textureDimensions/08753d.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0c4772.wgsl.expected.hlsl => 0c4772.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0c4772.wgsl.expected.hlsl => literal/textureDimensions/0c4772.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0cce40.wgsl.expected.hlsl => 0cce40.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0cce40.wgsl.expected.hlsl => literal/textureDimensions/0cce40.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0cf2ff.wgsl.expected.hlsl => 0cf2ff.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0cf2ff.wgsl.expected.hlsl => literal/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0d8b7e.wgsl.expected.hlsl => 0d8b7e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0d8b7e.wgsl.expected.hlsl => literal/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0e32ee.wgsl.expected.hlsl => 0e32ee.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0e32ee.wgsl.expected.hlsl => literal/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{0f3c50.wgsl.expected.hlsl => 0f3c50.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/0f3c50.wgsl.expected.hlsl => literal/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{1191a5.wgsl.expected.hlsl => 1191a5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/1191a5.wgsl.expected.hlsl => literal/textureDimensions/1191a5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{12c9bb.wgsl.expected.hlsl => 12c9bb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{147998.wgsl.expected.hlsl => 147998.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/147998.wgsl.expected.hlsl => literal/textureDimensions/147998.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{16036c.wgsl.expected.hlsl => 16036c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/16036c.wgsl.expected.hlsl => literal/textureDimensions/16036c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{1b71f0.wgsl.expected.hlsl => 1b71f0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/1b71f0.wgsl.expected.hlsl => literal/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{1d6c26.wgsl.expected.hlsl => 1d6c26.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/1d6c26.wgsl.expected.hlsl => literal/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{1e9e39.wgsl.expected.hlsl => 1e9e39.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/1e9e39.wgsl.expected.hlsl => literal/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{1f20c5.wgsl.expected.hlsl => 1f20c5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/1f20c5.wgsl.expected.hlsl => literal/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{214dd4.wgsl.expected.hlsl => 214dd4.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/214dd4.wgsl.expected.hlsl => literal/textureDimensions/214dd4.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{221f22.wgsl.expected.hlsl => 221f22.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{267788.wgsl.expected.hlsl => 267788.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{26bdfa.wgsl.expected.hlsl => 26bdfa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{26ef6c.wgsl.expected.hlsl => 26ef6c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/26ef6c.wgsl.expected.hlsl => literal/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{2ad087.wgsl.expected.hlsl => 2ad087.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/2ad087.wgsl.expected.hlsl => literal/textureDimensions/2ad087.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{2efa05.wgsl.expected.hlsl => 2efa05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{2f289f.wgsl.expected.hlsl => 2f289f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/2f289f.wgsl.expected.hlsl => literal/textureDimensions/2f289f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{2fe1cc.wgsl.expected.hlsl => 2fe1cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{318ecc.wgsl.expected.hlsl => 318ecc.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/318ecc.wgsl.expected.hlsl => literal/textureDimensions/318ecc.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{340d06.wgsl.expected.hlsl => 340d06.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/340d06.wgsl.expected.hlsl => literal/textureDimensions/340d06.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{398e30.wgsl.expected.hlsl => 398e30.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/398e30.wgsl.expected.hlsl => literal/textureDimensions/398e30.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{3a94ea.wgsl.expected.hlsl => 3a94ea.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/3a94ea.wgsl.expected.hlsl => literal/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{3aca08.wgsl.expected.hlsl => 3aca08.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/3aca08.wgsl.expected.hlsl => literal/textureDimensions/3aca08.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{3c5ad8.wgsl.expected.hlsl => 3c5ad8.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/3c5ad8.wgsl.expected.hlsl => literal/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{4152a6.wgsl.expected.hlsl => 4152a6.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/4152a6.wgsl.expected.hlsl => literal/textureDimensions/4152a6.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{423f99.wgsl.expected.hlsl => 423f99.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/423f99.wgsl.expected.hlsl => literal/textureDimensions/423f99.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{4267ee.wgsl.expected.hlsl => 4267ee.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/4267ee.wgsl.expected.hlsl => literal/textureDimensions/4267ee.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{42d4e6.wgsl.expected.hlsl => 42d4e6.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/42d4e6.wgsl.expected.hlsl => literal/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{48cb89.wgsl.expected.hlsl => 48cb89.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/48cb89.wgsl.expected.hlsl => literal/textureDimensions/48cb89.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{49d274.wgsl.expected.hlsl => 49d274.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/49d274.wgsl.expected.hlsl => literal/textureDimensions/49d274.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{4df9a8.wgsl.expected.hlsl => 4df9a8.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/4df9a8.wgsl.expected.hlsl => literal/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{50a9ee.wgsl.expected.hlsl => 50a9ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{52045c.wgsl.expected.hlsl => 52045c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{55b23e.wgsl.expected.hlsl => 55b23e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/55b23e.wgsl.expected.hlsl => literal/textureDimensions/55b23e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{579629.wgsl.expected.hlsl => 579629.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/579629.wgsl.expected.hlsl => literal/textureDimensions/579629.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{57da0b.wgsl.expected.hlsl => 57da0b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/57da0b.wgsl.expected.hlsl => literal/textureDimensions/57da0b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{57e28f.wgsl.expected.hlsl => 57e28f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/57e28f.wgsl.expected.hlsl => literal/textureDimensions/57e28f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{58a515.wgsl.expected.hlsl => 58a515.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/58a515.wgsl.expected.hlsl => literal/textureDimensions/58a515.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{5985f3.wgsl.expected.hlsl => 5985f3.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/5985f3.wgsl.expected.hlsl => literal/textureDimensions/5985f3.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{5caa5e.wgsl.expected.hlsl => 5caa5e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/5caa5e.wgsl.expected.hlsl => literal/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{5e295d.wgsl.expected.hlsl => 5e295d.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/5e295d.wgsl.expected.hlsl => literal/textureDimensions/5e295d.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{60bf54.wgsl.expected.hlsl => 60bf54.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/60bf54.wgsl.expected.hlsl => literal/textureDimensions/60bf54.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{63f3cf.wgsl.expected.hlsl => 63f3cf.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/63f3cf.wgsl.expected.hlsl => literal/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{68105c.wgsl.expected.hlsl => 68105c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/68105c.wgsl.expected.hlsl => literal/textureDimensions/68105c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{686ef2.wgsl.expected.hlsl => 686ef2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{6adac6.wgsl.expected.hlsl => 6adac6.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/6adac6.wgsl.expected.hlsl => literal/textureDimensions/6adac6.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{6ec1b4.wgsl.expected.hlsl => 6ec1b4.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/6ec1b4.wgsl.expected.hlsl => literal/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{6f0d79.wgsl.expected.hlsl => 6f0d79.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/6f0d79.wgsl.expected.hlsl => literal/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{702c53.wgsl.expected.hlsl => 702c53.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/702c53.wgsl.expected.hlsl => literal/textureDimensions/702c53.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{72e5d6.wgsl.expected.hlsl => 72e5d6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{79df87.wgsl.expected.hlsl => 79df87.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{7bf826.wgsl.expected.hlsl => 7bf826.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/7bf826.wgsl.expected.hlsl => literal/textureDimensions/7bf826.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{7f5c2e.wgsl.expected.hlsl => 7f5c2e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/7f5c2e.wgsl.expected.hlsl => literal/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{8028f3.wgsl.expected.hlsl => 8028f3.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/8028f3.wgsl.expected.hlsl => literal/textureDimensions/8028f3.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{811679.wgsl.expected.hlsl => 811679.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/811679.wgsl.expected.hlsl => literal/textureDimensions/811679.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{820596.wgsl.expected.hlsl => 820596.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/820596.wgsl.expected.hlsl => literal/textureDimensions/820596.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{83ee5a.wgsl.expected.hlsl => 83ee5a.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/83ee5a.wgsl.expected.hlsl => literal/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{85d556.wgsl.expected.hlsl => 85d556.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{88ad17.wgsl.expected.hlsl => 88ad17.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{8aa4c4.wgsl.expected.hlsl => 8aa4c4.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/8aa4c4.wgsl.expected.hlsl => literal/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{8deb5e.wgsl.expected.hlsl => 8deb5e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/8deb5e.wgsl.expected.hlsl => literal/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{8f20bf.wgsl.expected.hlsl => 8f20bf.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/8f20bf.wgsl.expected.hlsl => literal/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{8fca0f.wgsl.expected.hlsl => 8fca0f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/8fca0f.wgsl.expected.hlsl => literal/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{90340b.wgsl.expected.hlsl => 90340b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/90340b.wgsl.expected.hlsl => literal/textureDimensions/90340b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9042ab.wgsl.expected.hlsl => 9042ab.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/9042ab.wgsl.expected.hlsl => literal/textureDimensions/9042ab.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9393b0.wgsl.expected.hlsl => 9393b0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{939fdb.wgsl.expected.hlsl => 939fdb.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/939fdb.wgsl.expected.hlsl => literal/textureDimensions/939fdb.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{962dcd.wgsl.expected.hlsl => 962dcd.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/962dcd.wgsl.expected.hlsl => literal/textureDimensions/962dcd.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9abfe5.wgsl.expected.hlsl => 9abfe5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/9abfe5.wgsl.expected.hlsl => literal/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9c9c57.wgsl.expected.hlsl => 9c9c57.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{9da9e2.wgsl.expected.hlsl => 9da9e2.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/9da9e2.wgsl.expected.hlsl => literal/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9eb8d8.wgsl.expected.hlsl => 9eb8d8.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/9eb8d8.wgsl.expected.hlsl => literal/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{9f8e46.wgsl.expected.hlsl => 9f8e46.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/9f8e46.wgsl.expected.hlsl => literal/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{a01845.wgsl.expected.hlsl => a01845.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{a7d565.wgsl.expected.hlsl => a7d565.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/a7d565.wgsl.expected.hlsl => literal/textureDimensions/a7d565.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{a863f2.wgsl.expected.hlsl => a863f2.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/a863f2.wgsl.expected.hlsl => literal/textureDimensions/a863f2.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{a9c9c1.wgsl.expected.hlsl => a9c9c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{b0e16d.wgsl.expected.hlsl => b0e16d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{b3c954.wgsl.expected.hlsl => b3c954.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/b3c954.wgsl.expected.hlsl => literal/textureDimensions/b3c954.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{b3e407.wgsl.expected.hlsl => b3e407.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{b91240.wgsl.expected.hlsl => b91240.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/b91240.wgsl.expected.hlsl => literal/textureDimensions/b91240.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{ba1481.wgsl.expected.hlsl => ba1481.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/ba1481.wgsl.expected.hlsl => literal/textureDimensions/ba1481.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{bb3dde.wgsl.expected.hlsl => bb3dde.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/bb3dde.wgsl.expected.hlsl => literal/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{c30e75.wgsl.expected.hlsl => c30e75.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/c30e75.wgsl.expected.hlsl => literal/textureDimensions/c30e75.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{c7943d.wgsl.expected.hlsl => c7943d.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/c7943d.wgsl.expected.hlsl => literal/textureDimensions/c7943d.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cc968c.wgsl.expected.hlsl => cc968c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cc968c.wgsl.expected.hlsl => literal/textureDimensions/cc968c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cccc8f.wgsl.expected.hlsl => cccc8f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cccc8f.wgsl.expected.hlsl => literal/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cd76a7.wgsl.expected.hlsl => cd76a7.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cd76a7.wgsl.expected.hlsl => literal/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cdf473.wgsl.expected.hlsl => cdf473.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cdf473.wgsl.expected.hlsl => literal/textureDimensions/cdf473.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cec841.wgsl.expected.hlsl => cec841.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cec841.wgsl.expected.hlsl => literal/textureDimensions/cec841.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{cf7e43.wgsl.expected.hlsl => cf7e43.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/cf7e43.wgsl.expected.hlsl => literal/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{d125bc.wgsl.expected.hlsl => d125bc.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/d125bc.wgsl.expected.hlsl => literal/textureDimensions/d125bc.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{d83c45.wgsl.expected.hlsl => d83c45.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{daf7c0.wgsl.expected.hlsl => daf7c0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/daf7c0.wgsl.expected.hlsl => literal/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{dc2dd0.wgsl.expected.hlsl => dc2dd0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/dc2dd0.wgsl.expected.hlsl => literal/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{e927be.wgsl.expected.hlsl => e927be.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/e927be.wgsl.expected.hlsl => literal/textureDimensions/e927be.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{e9e96c.wgsl.expected.hlsl => e9e96c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/e9e96c.wgsl.expected.hlsl => literal/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{ef5b89.wgsl.expected.hlsl => ef5b89.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/ef5b89.wgsl.expected.hlsl => literal/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{efc8a4.wgsl.expected.hlsl => efc8a4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{f60bdb.wgsl.expected.hlsl => f60bdb.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/f60bdb.wgsl.expected.hlsl => literal/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{f7145b.wgsl.expected.hlsl => f7145b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureDimensions/{f931c7.wgsl.expected.hlsl => f931c7.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/f931c7.wgsl.expected.hlsl => literal/textureDimensions/f931c7.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{fa9859.wgsl.expected.hlsl => fa9859.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/fa9859.wgsl.expected.hlsl => literal/textureDimensions/fa9859.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{fb5670.wgsl.expected.hlsl => fb5670.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/fb5670.wgsl.expected.hlsl => literal/textureDimensions/fb5670.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureDimensions/{fcac78.wgsl.expected.hlsl => fcac78.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureDimensions/fcac78.wgsl.expected.hlsl => literal/textureDimensions/fcac78.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureGather/{10c554.wgsl.expected.hlsl => 10c554.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{1f7f6b.wgsl.expected.hlsl => 1f7f6b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{22e930.wgsl.expected.hlsl => 22e930.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{2cc066.wgsl.expected.hlsl => 2cc066.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{2e0ed5.wgsl.expected.hlsl => 2e0ed5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{32c4e8.wgsl.expected.hlsl => 32c4e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{3b32cc.wgsl.expected.hlsl => 3b32cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{43025d.wgsl.expected.hlsl => 43025d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{49b07f.wgsl.expected.hlsl => 49b07f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{4b8103.wgsl.expected.hlsl => 4b8103.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{5266da.wgsl.expected.hlsl => 5266da.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{5ba85f.wgsl.expected.hlsl => 5ba85f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{5bd491.wgsl.expected.hlsl => 5bd491.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{751f8a.wgsl.expected.hlsl => 751f8a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{7c3828.wgsl.expected.hlsl => 7c3828.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{8b754c.wgsl.expected.hlsl => 8b754c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{9a6358.wgsl.expected.hlsl => 9a6358.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{af55b3.wgsl.expected.hlsl => af55b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{bb3ac5.wgsl.expected.hlsl => bb3ac5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{c0640c.wgsl.expected.hlsl => c0640c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{d1f187.wgsl.expected.hlsl => d1f187.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{d90605.wgsl.expected.hlsl => d90605.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{e9d390.wgsl.expected.hlsl => e9d390.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGather/{f2c6e3.wgsl.expected.hlsl => f2c6e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{182fd4.wgsl.expected.hlsl => 182fd4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{313add.wgsl.expected.hlsl => 313add.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{60d2d1.wgsl.expected.hlsl => 60d2d1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{6d9352.wgsl.expected.hlsl => 6d9352.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{783e65.wgsl.expected.hlsl => 783e65.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureGatherCompare/{f585cc.wgsl.expected.hlsl => f585cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{19cf87.wgsl.expected.hlsl => 19cf87.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{1b8588.wgsl.expected.hlsl => 1b8588.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{1f2016.wgsl.expected.hlsl => 1f2016.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{484344.wgsl.expected.hlsl => 484344.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{4fd803.wgsl.expected.hlsl => 4fd803.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{5a2f9d.wgsl.expected.hlsl => 5a2f9d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{6154d4.wgsl.expected.hlsl => 6154d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{6273b1.wgsl.expected.hlsl => 6273b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{79e697.wgsl.expected.hlsl => 79e697.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{7c90e5.wgsl.expected.hlsl => 7c90e5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{81c381.wgsl.expected.hlsl => 81c381.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{87be85.wgsl.expected.hlsl => 87be85.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{8acf41.wgsl.expected.hlsl => 8acf41.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{9b2667.wgsl.expected.hlsl => 9b2667.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{a583c9.wgsl.expected.hlsl => a583c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{a9a9f5.wgsl.expected.hlsl => a9a9f5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{c2a480.wgsl.expected.hlsl => c2a480.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{c378ee.wgsl.expected.hlsl => c378ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureLoad/{e3d2cc.wgsl.expected.hlsl => e3d2cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureNumLayers/{024820.wgsl.expected.hlsl => 024820.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/024820.wgsl.expected.hlsl => literal/textureNumLayers/024820.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{053df7.wgsl.expected.hlsl => 053df7.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/053df7.wgsl.expected.hlsl => literal/textureNumLayers/053df7.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{058cc3.wgsl.expected.hlsl => 058cc3.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/058cc3.wgsl.expected.hlsl => literal/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{09d05d.wgsl.expected.hlsl => 09d05d.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/09d05d.wgsl.expected.hlsl => literal/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{13b4ce.wgsl.expected.hlsl => 13b4ce.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/13b4ce.wgsl.expected.hlsl => literal/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{22e53b.wgsl.expected.hlsl => 22e53b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/22e53b.wgsl.expected.hlsl => literal/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{562013.wgsl.expected.hlsl => 562013.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/562013.wgsl.expected.hlsl => literal/textureNumLayers/562013.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{5d59cd.wgsl.expected.hlsl => 5d59cd.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/5d59cd.wgsl.expected.hlsl => literal/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{68a65b.wgsl.expected.hlsl => 68a65b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/68a65b.wgsl.expected.hlsl => literal/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{778bd1.wgsl.expected.hlsl => 778bd1.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/778bd1.wgsl.expected.hlsl => literal/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{7f1937.wgsl.expected.hlsl => 7f1937.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/7f1937.wgsl.expected.hlsl => literal/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{85f980.wgsl.expected.hlsl => 85f980.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/85f980.wgsl.expected.hlsl => literal/textureNumLayers/85f980.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{87953e.wgsl.expected.hlsl => 87953e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/87953e.wgsl.expected.hlsl => literal/textureNumLayers/87953e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{893e7c.wgsl.expected.hlsl => 893e7c.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/893e7c.wgsl.expected.hlsl => literal/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{9700fb.wgsl.expected.hlsl => 9700fb.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/9700fb.wgsl.expected.hlsl => literal/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{a216d2.wgsl.expected.hlsl => a216d2.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/a216d2.wgsl.expected.hlsl => literal/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{cd5dc8.wgsl.expected.hlsl => cd5dc8.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/cd5dc8.wgsl.expected.hlsl => literal/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{d5b228.wgsl.expected.hlsl => d5b228.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/d5b228.wgsl.expected.hlsl => literal/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{e31be1.wgsl.expected.hlsl => e31be1.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/e31be1.wgsl.expected.hlsl => literal/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{e653c0.wgsl.expected.hlsl => e653c0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/e653c0.wgsl.expected.hlsl => literal/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{ee942f.wgsl.expected.hlsl => ee942f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/ee942f.wgsl.expected.hlsl => literal/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{f33005.wgsl.expected.hlsl => f33005.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/f33005.wgsl.expected.hlsl => literal/textureNumLayers/f33005.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{fcec98.wgsl.expected.hlsl => fcec98.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/fcec98.wgsl.expected.hlsl => literal/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLayers/{ff5e89.wgsl.expected.hlsl => ff5e89.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLayers/ff5e89.wgsl.expected.hlsl => literal/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{076cb5.wgsl.expected.hlsl => 076cb5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/076cb5.wgsl.expected.hlsl => literal/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{080d95.wgsl.expected.hlsl => 080d95.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/080d95.wgsl.expected.hlsl => literal/textureNumLevels/080d95.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{09ddd0.wgsl.expected.hlsl => 09ddd0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/09ddd0.wgsl.expected.hlsl => literal/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{105988.wgsl.expected.hlsl => 105988.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/105988.wgsl.expected.hlsl => literal/textureNumLevels/105988.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{1e6f3b.wgsl.expected.hlsl => 1e6f3b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/1e6f3b.wgsl.expected.hlsl => literal/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{23f750.wgsl.expected.hlsl => 23f750.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/23f750.wgsl.expected.hlsl => literal/textureNumLevels/23f750.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{2c3575.wgsl.expected.hlsl => 2c3575.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/2c3575.wgsl.expected.hlsl => literal/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{32a0ae.wgsl.expected.hlsl => 32a0ae.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/32a0ae.wgsl.expected.hlsl => literal/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{5101cf.wgsl.expected.hlsl => 5101cf.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/5101cf.wgsl.expected.hlsl => literal/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{51b5bb.wgsl.expected.hlsl => 51b5bb.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/51b5bb.wgsl.expected.hlsl => literal/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{897aaf.wgsl.expected.hlsl => 897aaf.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/897aaf.wgsl.expected.hlsl => literal/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{9da7a5.wgsl.expected.hlsl => 9da7a5.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/9da7a5.wgsl.expected.hlsl => literal/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{a91c03.wgsl.expected.hlsl => a91c03.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/a91c03.wgsl.expected.hlsl => literal/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{aee7c8.wgsl.expected.hlsl => aee7c8.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/aee7c8.wgsl.expected.hlsl => literal/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{b1b12b.wgsl.expected.hlsl => b1b12b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/b1b12b.wgsl.expected.hlsl => literal/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{b4f5ea.wgsl.expected.hlsl => b4f5ea.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/b4f5ea.wgsl.expected.hlsl => literal/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{d004a9.wgsl.expected.hlsl => d004a9.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/d004a9.wgsl.expected.hlsl => literal/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{dca09e.wgsl.expected.hlsl => dca09e.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/dca09e.wgsl.expected.hlsl => literal/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{e67231.wgsl.expected.hlsl => e67231.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/e67231.wgsl.expected.hlsl => literal/textureNumLevels/e67231.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{ed078b.wgsl.expected.hlsl => ed078b.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/ed078b.wgsl.expected.hlsl => literal/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{f46ec6.wgsl.expected.hlsl => f46ec6.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/f46ec6.wgsl.expected.hlsl => literal/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumLevels/{f5828d.wgsl.expected.hlsl => f5828d.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumLevels/f5828d.wgsl.expected.hlsl => literal/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumSamples/{2c6f14.wgsl.expected.hlsl => 2c6f14.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumSamples/2c6f14.wgsl.expected.hlsl => literal/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumSamples/{42f8bb.wgsl.expected.hlsl => 42f8bb.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumSamples/42f8bb.wgsl.expected.hlsl => literal/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumSamples/{449d23.wgsl.expected.hlsl => 449d23.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumSamples/449d23.wgsl.expected.hlsl => literal/textureNumSamples/449d23.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureNumSamples/{a3c8a0.wgsl.expected.hlsl => a3c8a0.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/textureNumSamples/a3c8a0.wgsl.expected.hlsl => literal/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/literal/textureSample/{0dff6c.wgsl.expected.hlsl => 0dff6c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{17e988.wgsl.expected.hlsl => 17e988.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{2149ec.wgsl.expected.hlsl => 2149ec.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{38bbb9.wgsl.expected.hlsl => 38bbb9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{3b50bd.wgsl.expected.hlsl => 3b50bd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{4dd1bf.wgsl.expected.hlsl => 4dd1bf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{51b514.wgsl.expected.hlsl => 51b514.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{60bf45.wgsl.expected.hlsl => 60bf45.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{6717ca.wgsl.expected.hlsl => 6717ca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{6e64fb.wgsl.expected.hlsl => 6e64fb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{7e9ffd.wgsl.expected.hlsl => 7e9ffd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{85c4ba.wgsl.expected.hlsl => 85c4ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{c2f4e8.wgsl.expected.hlsl => c2f4e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{e53267.wgsl.expected.hlsl => e53267.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSample/{ea7030.wgsl.expected.hlsl => ea7030.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{53b9f7.wgsl.expected.hlsl => 53b9f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{594824.wgsl.expected.hlsl => 594824.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{6a9113.wgsl.expected.hlsl => 6a9113.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{80e579.wgsl.expected.hlsl => 80e579.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{9dbb51.wgsl.expected.hlsl => 9dbb51.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{a161cf.wgsl.expected.hlsl => a161cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{d3fa1b.wgsl.expected.hlsl => d3fa1b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleBias/{eed7c4.wgsl.expected.hlsl => eed7c4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{3a5923.wgsl.expected.hlsl => 3a5923.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{63fb83.wgsl.expected.hlsl => 63fb83.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{a3ca7e.wgsl.expected.hlsl => a3ca7e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{af1051.wgsl.expected.hlsl => af1051.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{dd431d.wgsl.expected.hlsl => dd431d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompare/{dec064.wgsl.expected.hlsl => dec064.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{1116ed.wgsl.expected.hlsl => 1116ed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{1568e3.wgsl.expected.hlsl => 1568e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{2ad2b1.wgsl.expected.hlsl => 2ad2b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{4cf3a2.wgsl.expected.hlsl => 4cf3a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{7f2b9a.wgsl.expected.hlsl => 7f2b9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleCompareLevel/{b6e47c.wgsl.expected.hlsl => b6e47c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{21402b.wgsl.expected.hlsl => 21402b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{2ecd8f.wgsl.expected.hlsl => 2ecd8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{521263.wgsl.expected.hlsl => 521263.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{5312f4.wgsl.expected.hlsl => 5312f4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{5884dd.wgsl.expected.hlsl => 5884dd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{d4e3c5.wgsl.expected.hlsl => d4e3c5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{d65515.wgsl.expected.hlsl => d65515.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleGrad/{e383db.wgsl.expected.hlsl => e383db.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{02be59.wgsl.expected.hlsl => 02be59.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{0b0a1b.wgsl.expected.hlsl => 0b0a1b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{0bdd9a.wgsl.expected.hlsl => 0bdd9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{1b0291.wgsl.expected.hlsl => 1b0291.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{1bf73e.wgsl.expected.hlsl => 1bf73e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{302be4.wgsl.expected.hlsl => 302be4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{36780e.wgsl.expected.hlsl => 36780e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{749baf.wgsl.expected.hlsl => 749baf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{979816.wgsl.expected.hlsl => 979816.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{abfcc0.wgsl.expected.hlsl => abfcc0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{ae5e39.wgsl.expected.hlsl => ae5e39.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{b7c55c.wgsl.expected.hlsl => b7c55c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{c32df7.wgsl.expected.hlsl => c32df7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{c6aca6.wgsl.expected.hlsl => c6aca6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureSampleLevel/{dcbecb.wgsl.expected.hlsl => dcbecb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{05ce15.wgsl.expected.hlsl => 05ce15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{064c7f.wgsl.expected.hlsl => 064c7f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{068641.wgsl.expected.hlsl => 068641.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{0af6b5.wgsl.expected.hlsl => 0af6b5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{0c3dff.wgsl.expected.hlsl => 0c3dff.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{102722.wgsl.expected.hlsl => 102722.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{1bbd08.wgsl.expected.hlsl => 1bbd08.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{1c02e7.wgsl.expected.hlsl => 1c02e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{22d955.wgsl.expected.hlsl => 22d955.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{26bf70.wgsl.expected.hlsl => 26bf70.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{2796b4.wgsl.expected.hlsl => 2796b4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{2ac6c7.wgsl.expected.hlsl => 2ac6c7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{2eb2a4.wgsl.expected.hlsl => 2eb2a4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{2ed2a3.wgsl.expected.hlsl => 2ed2a3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{31745b.wgsl.expected.hlsl => 31745b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{32f368.wgsl.expected.hlsl => 32f368.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{331aee.wgsl.expected.hlsl => 331aee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{38e8d7.wgsl.expected.hlsl => 38e8d7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{3a52ac.wgsl.expected.hlsl => 3a52ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{3bb7a1.wgsl.expected.hlsl => 3bb7a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{3bec15.wgsl.expected.hlsl => 3bec15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{441ba8.wgsl.expected.hlsl => 441ba8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{4fc057.wgsl.expected.hlsl => 4fc057.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{5a2f8f.wgsl.expected.hlsl => 5a2f8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{60975f.wgsl.expected.hlsl => 60975f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{682fd6.wgsl.expected.hlsl => 682fd6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{6b75c3.wgsl.expected.hlsl => 6b75c3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{6b80d2.wgsl.expected.hlsl => 6b80d2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{6cff2e.wgsl.expected.hlsl => 6cff2e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{6da692.wgsl.expected.hlsl => 6da692.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{731349.wgsl.expected.hlsl => 731349.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{752da6.wgsl.expected.hlsl => 752da6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{77c0ae.wgsl.expected.hlsl => 77c0ae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{7cec8d.wgsl.expected.hlsl => 7cec8d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{7f7fae.wgsl.expected.hlsl => 7f7fae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{804942.wgsl.expected.hlsl => 804942.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{805dae.wgsl.expected.hlsl => 805dae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{83bcc1.wgsl.expected.hlsl => 83bcc1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{872747.wgsl.expected.hlsl => 872747.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{8e0479.wgsl.expected.hlsl => 8e0479.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{8f71a1.wgsl.expected.hlsl => 8f71a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{969534.wgsl.expected.hlsl => 969534.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{9a3ecc.wgsl.expected.hlsl => 9a3ecc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{9d9cd5.wgsl.expected.hlsl => 9d9cd5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{9e3ec5.wgsl.expected.hlsl => 9e3ec5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{ac67aa.wgsl.expected.hlsl => ac67aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{b706b1.wgsl.expected.hlsl => b706b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{bbcb7f.wgsl.expected.hlsl => bbcb7f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{be6e30.wgsl.expected.hlsl => be6e30.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{bf775c.wgsl.expected.hlsl => bf775c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{c5af1e.wgsl.expected.hlsl => c5af1e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{c863be.wgsl.expected.hlsl => c863be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{d73b5c.wgsl.expected.hlsl => d73b5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{dd7d81.wgsl.expected.hlsl => dd7d81.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{dde364.wgsl.expected.hlsl => dde364.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{e885e8.wgsl.expected.hlsl => e885e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{eb702f.wgsl.expected.hlsl => eb702f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{eb78b9.wgsl.expected.hlsl => eb78b9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{ee6acc.wgsl.expected.hlsl => ee6acc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{ef9f2f.wgsl.expected.hlsl => ef9f2f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{f8dead.wgsl.expected.hlsl => f8dead.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{f9be83.wgsl.expected.hlsl => f9be83.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{fb9a8f.wgsl.expected.hlsl => fb9a8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/textureStore/{fbf53f.wgsl.expected.hlsl => fbf53f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{2585cd.wgsl.expected.hlsl => 2585cd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{31d679.wgsl.expected.hlsl => 31d679.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{31e37e.wgsl.expected.hlsl => 31e37e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{4ce359.wgsl.expected.hlsl => 4ce359.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{4dc9a1.wgsl.expected.hlsl => 4dc9a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{854336.wgsl.expected.hlsl => 854336.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{c1b600.wgsl.expected.hlsl => c1b600.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{d8f8ba.wgsl.expected.hlsl => d8f8ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/transpose/{ed4bdc.wgsl.expected.hlsl => ed4bdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/trunc/{562d05.wgsl.expected.hlsl => 562d05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/trunc/{e183aa.wgsl.expected.hlsl => e183aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/trunc/{eb83df.wgsl.expected.hlsl => eb83df.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/trunc/{f370d3.wgsl.expected.hlsl => f370d3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/unpack2x16float/{32a5cf.wgsl.expected.hlsl => 32a5cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/unpack2x16snorm/{b4aea6.wgsl.expected.hlsl => b4aea6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/unpack2x16unorm/{7699c0.wgsl.expected.hlsl => 7699c0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/unpack4x8snorm/{523fb3.wgsl.expected.hlsl => 523fb3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/unpack4x8unorm/{750c74.wgsl.expected.hlsl => 750c74.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/literal/workgroupBarrier/{a17f7f.wgsl.expected.hlsl => a17f7f.wgsl.expected.dxc.hlsl} (100%) rename test/tint/builtins/gen/{var/workgroupBarrier/a17f7f.wgsl.expected.hlsl => literal/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl} (100%) rename test/tint/builtins/gen/var/abs/{002533.wgsl.expected.hlsl => 002533.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/002533.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{005174.wgsl.expected.hlsl => 005174.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/005174.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{1ce782.wgsl.expected.hlsl => 1ce782.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{1e9d53.wgsl.expected.hlsl => 1e9d53.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{467cd1.wgsl.expected.hlsl => 467cd1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{4ad288.wgsl.expected.hlsl => 4ad288.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{5ad50a.wgsl.expected.hlsl => 5ad50a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{7326de.wgsl.expected.hlsl => 7326de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/7326de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{7f28e6.wgsl.expected.hlsl => 7f28e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{7faa9e.wgsl.expected.hlsl => 7faa9e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{9c80a6.wgsl.expected.hlsl => 9c80a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/abs/{b96037.wgsl.expected.hlsl => b96037.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/abs/b96037.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acos/{489247.wgsl.expected.hlsl => 489247.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acos/489247.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acos/{8e2acf.wgsl.expected.hlsl => 8e2acf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acos/{a610c4.wgsl.expected.hlsl => a610c4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acos/{dfc915.wgsl.expected.hlsl => dfc915.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acosh/{640883.wgsl.expected.hlsl => 640883.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acosh/640883.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acosh/{d51ccb.wgsl.expected.hlsl => d51ccb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acosh/{e38f5c.wgsl.expected.hlsl => e38f5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/acosh/{ecf2d1.wgsl.expected.hlsl => ecf2d1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/all/{353d6a.wgsl.expected.hlsl => 353d6a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/all/353d6a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/all/{986c7b.wgsl.expected.hlsl => 986c7b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/all/986c7b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/all/{bd2dba.wgsl.expected.hlsl => bd2dba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/all/{f46790.wgsl.expected.hlsl => f46790.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/all/f46790.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/any/{083428.wgsl.expected.hlsl => 083428.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/any/083428.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/any/{0e3e58.wgsl.expected.hlsl => 0e3e58.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/any/{2ab91a.wgsl.expected.hlsl => 2ab91a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/any/{e755c1.wgsl.expected.hlsl => e755c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/any/e755c1.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asin/{064953.wgsl.expected.hlsl => 064953.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asin/064953.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asin/{7b6a44.wgsl.expected.hlsl => 7b6a44.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asin/{8cd9c9.wgsl.expected.hlsl => 8cd9c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asin/{c0c272.wgsl.expected.hlsl => c0c272.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asinh/{157447.wgsl.expected.hlsl => 157447.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asinh/157447.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asinh/{2265ee.wgsl.expected.hlsl => 2265ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asinh/{4a2226.wgsl.expected.hlsl => 4a2226.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/asinh/{8d2e51.wgsl.expected.hlsl => 8d2e51.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan/{02979a.wgsl.expected.hlsl => 02979a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan/02979a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan/{331e6d.wgsl.expected.hlsl => 331e6d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan/{a8b696.wgsl.expected.hlsl => a8b696.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan/{ad96e4.wgsl.expected.hlsl => ad96e4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan2/{57fb13.wgsl.expected.hlsl => 57fb13.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan2/{96057c.wgsl.expected.hlsl => 96057c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan2/{a70d0d.wgsl.expected.hlsl => a70d0d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atan2/{ae713e.wgsl.expected.hlsl => ae713e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atanh/{440cca.wgsl.expected.hlsl => 440cca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atanh/{7997d8.wgsl.expected.hlsl => 7997d8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atanh/{c0e634.wgsl.expected.hlsl => c0e634.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atanh/{f3e01b.wgsl.expected.hlsl => f3e01b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAdd/{794055.wgsl.expected.hlsl => 794055.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAdd/{8a199a.wgsl.expected.hlsl => 8a199a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAdd/{d32fe4.wgsl.expected.hlsl => d32fe4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAdd/{d5db1d.wgsl.expected.hlsl => d5db1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAnd/{152966.wgsl.expected.hlsl => 152966.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAnd/{34edd3.wgsl.expected.hlsl => 34edd3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAnd/{45a819.wgsl.expected.hlsl => 45a819.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicAnd/{85a8d9.wgsl.expected.hlsl => 85a8d9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicCompareExchangeWeak/{1bd40a.wgsl.expected.hlsl => 1bd40a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicCompareExchangeWeak/{63d8e6.wgsl.expected.hlsl => 63d8e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicCompareExchangeWeak/{83580d.wgsl.expected.hlsl => 83580d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicCompareExchangeWeak/{e88938.wgsl.expected.hlsl => e88938.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicExchange/{0a5dca.wgsl.expected.hlsl => 0a5dca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicExchange/{d59712.wgsl.expected.hlsl => d59712.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicExchange/{e114ba.wgsl.expected.hlsl => e114ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicExchange/{f2e22f.wgsl.expected.hlsl => f2e22f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMax/{51b9be.wgsl.expected.hlsl => 51b9be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMax/{92aa72.wgsl.expected.hlsl => 92aa72.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMax/{a89cc3.wgsl.expected.hlsl => a89cc3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMax/{beccfc.wgsl.expected.hlsl => beccfc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMin/{278235.wgsl.expected.hlsl => 278235.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMin/{69d383.wgsl.expected.hlsl => 69d383.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMin/{8e38dc.wgsl.expected.hlsl => 8e38dc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicMin/{c67a74.wgsl.expected.hlsl => c67a74.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicOr/{5e3d61.wgsl.expected.hlsl => 5e3d61.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicOr/{5e95d4.wgsl.expected.hlsl => 5e95d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicOr/{8d96a0.wgsl.expected.hlsl => 8d96a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicOr/{d09248.wgsl.expected.hlsl => d09248.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicStore/{726882.wgsl.expected.hlsl => 726882.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicStore/{8bea94.wgsl.expected.hlsl => 8bea94.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicStore/{cdc29e.wgsl.expected.hlsl => cdc29e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicStore/{d1e9a6.wgsl.expected.hlsl => d1e9a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicSub/{051100.wgsl.expected.hlsl => 051100.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicSub/{0d26c2.wgsl.expected.hlsl => 0d26c2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicSub/{15bfc9.wgsl.expected.hlsl => 15bfc9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicSub/{77883a.wgsl.expected.hlsl => 77883a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicXor/{54510e.wgsl.expected.hlsl => 54510e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicXor/{75dc95.wgsl.expected.hlsl => 75dc95.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicXor/{c1b78c.wgsl.expected.hlsl => c1b78c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/atomicXor/{c8e6be.wgsl.expected.hlsl => c8e6be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ceil/{34064b.wgsl.expected.hlsl => 34064b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ceil/{678655.wgsl.expected.hlsl => 678655.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ceil/678655.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ceil/{96f597.wgsl.expected.hlsl => 96f597.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ceil/{b74c16.wgsl.expected.hlsl => b74c16.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{0acf8f.wgsl.expected.hlsl => 0acf8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{1a32e3.wgsl.expected.hlsl => 1a32e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{2bd567.wgsl.expected.hlsl => 2bd567.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{2bde41.wgsl.expected.hlsl => 2bde41.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{548fc7.wgsl.expected.hlsl => 548fc7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{5f0819.wgsl.expected.hlsl => 5f0819.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{6c1749.wgsl.expected.hlsl => 6c1749.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{7706d7.wgsl.expected.hlsl => 7706d7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{867397.wgsl.expected.hlsl => 867397.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/867397.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{a2de25.wgsl.expected.hlsl => a2de25.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{b07c65.wgsl.expected.hlsl => b07c65.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/clamp/{bd43ce.wgsl.expected.hlsl => bd43ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cos/{16dc15.wgsl.expected.hlsl => 16dc15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cos/{29d66d.wgsl.expected.hlsl => 29d66d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cos/{c3b486.wgsl.expected.hlsl => c3b486.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cos/{c5c28e.wgsl.expected.hlsl => c5c28e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cosh/{377652.wgsl.expected.hlsl => 377652.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cosh/377652.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cosh/{c13756.wgsl.expected.hlsl => c13756.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cosh/{da92dd.wgsl.expected.hlsl => da92dd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cosh/{e0c1de.wgsl.expected.hlsl => e0c1de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{208d46.wgsl.expected.hlsl => 208d46.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{6d4656.wgsl.expected.hlsl => 6d4656.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{70783f.wgsl.expected.hlsl => 70783f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{7c38a6.wgsl.expected.hlsl => 7c38a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{858d40.wgsl.expected.hlsl => 858d40.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{ab6345.wgsl.expected.hlsl => ab6345.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{eab32b.wgsl.expected.hlsl => eab32b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countLeadingZeros/{f70103.wgsl.expected.hlsl => f70103.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{0d0e46.wgsl.expected.hlsl => 0d0e46.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{0f7980.wgsl.expected.hlsl => 0f7980.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{65d2ae.wgsl.expected.hlsl => 65d2ae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{690cfc.wgsl.expected.hlsl => 690cfc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{94fd81.wgsl.expected.hlsl => 94fd81.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{ae44f9.wgsl.expected.hlsl => ae44f9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{af90e2.wgsl.expected.hlsl => af90e2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countOneBits/{fd88b2.wgsl.expected.hlsl => fd88b2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{1ad138.wgsl.expected.hlsl => 1ad138.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{1dc84a.wgsl.expected.hlsl => 1dc84a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{21e394.wgsl.expected.hlsl => 21e394.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{327c37.wgsl.expected.hlsl => 327c37.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{42fed6.wgsl.expected.hlsl => 42fed6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{8ed26f.wgsl.expected.hlsl => 8ed26f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{acfacb.wgsl.expected.hlsl => acfacb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/countTrailingZeros/{d2b4a0.wgsl.expected.hlsl => d2b4a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/cross/{041cb0.wgsl.expected.hlsl => 041cb0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/degrees/{0d170c.wgsl.expected.hlsl => 0d170c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/degrees/{1ad5df.wgsl.expected.hlsl => 1ad5df.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/degrees/{2af623.wgsl.expected.hlsl => 2af623.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/degrees/{51f705.wgsl.expected.hlsl => 51f705.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/determinant/{2b62ba.wgsl.expected.hlsl => 2b62ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/determinant/{a0a87c.wgsl.expected.hlsl => a0a87c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/determinant/{e19305.wgsl.expected.hlsl => e19305.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/distance/{0657d4.wgsl.expected.hlsl => 0657d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/distance/{9646ea.wgsl.expected.hlsl => 9646ea.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/distance/{aa4055.wgsl.expected.hlsl => aa4055.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/distance/{cfed73.wgsl.expected.hlsl => cfed73.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{0c577b.wgsl.expected.hlsl => 0c577b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{7548a0.wgsl.expected.hlsl => 7548a0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{883f0e.wgsl.expected.hlsl => 883f0e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{97c7ee.wgsl.expected.hlsl => 97c7ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{ba4246.wgsl.expected.hlsl => ba4246.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{e994c7.wgsl.expected.hlsl => e994c7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{ef6b1d.wgsl.expected.hlsl => ef6b1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{f1312c.wgsl.expected.hlsl => f1312c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dot/{fc5f7c.wgsl.expected.hlsl => fc5f7c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdx/{0763f7.wgsl.expected.hlsl => 0763f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdx/{99edb1.wgsl.expected.hlsl => 99edb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdx/{c487fa.wgsl.expected.hlsl => c487fa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdx/{e263de.wgsl.expected.hlsl => e263de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxCoarse/{029152.wgsl.expected.hlsl => 029152.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxCoarse/{9581cf.wgsl.expected.hlsl => 9581cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxCoarse/{c28641.wgsl.expected.hlsl => c28641.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxCoarse/{f64d7b.wgsl.expected.hlsl => f64d7b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxFine/{8c5069.wgsl.expected.hlsl => 8c5069.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxFine/{9631de.wgsl.expected.hlsl => 9631de.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxFine/{f401a2.wgsl.expected.hlsl => f401a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdxFine/{f92fb6.wgsl.expected.hlsl => f92fb6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdy/{699a05.wgsl.expected.hlsl => 699a05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdy/{7f8d84.wgsl.expected.hlsl => 7f8d84.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdy/{a8b56e.wgsl.expected.hlsl => a8b56e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdy/{feb40f.wgsl.expected.hlsl => feb40f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyCoarse/{3e1ab4.wgsl.expected.hlsl => 3e1ab4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyCoarse/{445d24.wgsl.expected.hlsl => 445d24.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyCoarse/{870a7e.wgsl.expected.hlsl => 870a7e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyCoarse/{ae1873.wgsl.expected.hlsl => ae1873.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyFine/{1fb7ab.wgsl.expected.hlsl => 1fb7ab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyFine/{6eb673.wgsl.expected.hlsl => 6eb673.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyFine/{d0a648.wgsl.expected.hlsl => d0a648.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/dpdyFine/{df33aa.wgsl.expected.hlsl => df33aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp/{0f70eb.wgsl.expected.hlsl => 0f70eb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp/{1951e7.wgsl.expected.hlsl => 1951e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp/{771fd2.wgsl.expected.hlsl => 771fd2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp/{d98450.wgsl.expected.hlsl => d98450.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp/d98450.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp2/{1f8680.wgsl.expected.hlsl => 1f8680.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp2/{a9d0a7.wgsl.expected.hlsl => a9d0a7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp2/{d6777c.wgsl.expected.hlsl => d6777c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/exp2/{dea523.wgsl.expected.hlsl => dea523.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{12b197.wgsl.expected.hlsl => 12b197.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{249874.wgsl.expected.hlsl => 249874.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{631377.wgsl.expected.hlsl => 631377.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{a99a8d.wgsl.expected.hlsl => a99a8d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{ce81f8.wgsl.expected.hlsl => ce81f8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{e04f5d.wgsl.expected.hlsl => e04f5d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{f28f69.wgsl.expected.hlsl => f28f69.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/extractBits/{fb850f.wgsl.expected.hlsl => fb850f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/faceForward/{5afbd5.wgsl.expected.hlsl => 5afbd5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/faceForward/{b316e5.wgsl.expected.hlsl => b316e5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/faceForward/{e6908b.wgsl.expected.hlsl => e6908b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{000ff3.wgsl.expected.hlsl => 000ff3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{35053e.wgsl.expected.hlsl => 35053e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{3fd7d0.wgsl.expected.hlsl => 3fd7d0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{57a1a3.wgsl.expected.hlsl => 57a1a3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{6fe804.wgsl.expected.hlsl => 6fe804.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{a622c2.wgsl.expected.hlsl => a622c2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{c1f940.wgsl.expected.hlsl => c1f940.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstLeadingBit/{f0779d.wgsl.expected.hlsl => f0779d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{110f2c.wgsl.expected.hlsl => 110f2c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{3a2acc.wgsl.expected.hlsl => 3a2acc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{45eb10.wgsl.expected.hlsl => 45eb10.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{47d475.wgsl.expected.hlsl => 47d475.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{50c072.wgsl.expected.hlsl => 50c072.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{7496d6.wgsl.expected.hlsl => 7496d6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{86551b.wgsl.expected.hlsl => 86551b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/firstTrailingBit/{cb51ce.wgsl.expected.hlsl => cb51ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/floor/{3bccc4.wgsl.expected.hlsl => 3bccc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/floor/{5fc9ac.wgsl.expected.hlsl => 5fc9ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/floor/{60d7ea.wgsl.expected.hlsl => 60d7ea.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/floor/{66f154.wgsl.expected.hlsl => 66f154.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/floor/66f154.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fma/{26a7a9.wgsl.expected.hlsl => 26a7a9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fma/{6a3283.wgsl.expected.hlsl => 6a3283.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fma/{c10ba3.wgsl.expected.hlsl => c10ba3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fma/{e17c5c.wgsl.expected.hlsl => e17c5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fract/{8bc1e9.wgsl.expected.hlsl => 8bc1e9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fract/{943cb1.wgsl.expected.hlsl => 943cb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fract/{a49758.wgsl.expected.hlsl => a49758.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fract/a49758.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fract/{fa5c71.wgsl.expected.hlsl => fa5c71.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/frexp/{368997.wgsl.expected.hlsl => 368997.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/frexp/368997.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/frexp/{3c4f48.wgsl.expected.hlsl => 3c4f48.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/frexp/{4bdfc7.wgsl.expected.hlsl => 4bdfc7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/frexp/{eabd40.wgsl.expected.hlsl => eabd40.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidth/{5d1b39.wgsl.expected.hlsl => 5d1b39.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidth/{b83ebb.wgsl.expected.hlsl => b83ebb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidth/{d2ab9a.wgsl.expected.hlsl => d2ab9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidth/{df38ef.wgsl.expected.hlsl => df38ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthCoarse/{159c8a.wgsl.expected.hlsl => 159c8a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthCoarse/{1e59d9.wgsl.expected.hlsl => 1e59d9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthCoarse/{4e4fc4.wgsl.expected.hlsl => 4e4fc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthCoarse/{e653f7.wgsl.expected.hlsl => e653f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthFine/{523fdc.wgsl.expected.hlsl => 523fdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthFine/{68f4ef.wgsl.expected.hlsl => 68f4ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthFine/{f1742d.wgsl.expected.hlsl => f1742d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/fwidthFine/{ff6aa0.wgsl.expected.hlsl => ff6aa0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{3c7ba5.wgsl.expected.hlsl => 3c7ba5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{428b0b.wgsl.expected.hlsl => 428b0b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{51ede1.wgsl.expected.hlsl => 51ede1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{65468b.wgsl.expected.hlsl => 65468b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{87826b.wgsl.expected.hlsl => 87826b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{d86978.wgsl.expected.hlsl => d86978.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{e3e3a2.wgsl.expected.hlsl => e3e3a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/insertBits/{fe6ba6.wgsl.expected.hlsl => fe6ba6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/inverseSqrt/{84407e.wgsl.expected.hlsl => 84407e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/inverseSqrt/{8f2bd2.wgsl.expected.hlsl => 8f2bd2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/inverseSqrt/{b197b1.wgsl.expected.hlsl => b197b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/inverseSqrt/{c22347.wgsl.expected.hlsl => c22347.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ldexp/{a31cdc.wgsl.expected.hlsl => a31cdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ldexp/{abd718.wgsl.expected.hlsl => abd718.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ldexp/{cc9cde.wgsl.expected.hlsl => cc9cde.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/ldexp/{db8b49.wgsl.expected.hlsl => db8b49.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/length/{056071.wgsl.expected.hlsl => 056071.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/length/056071.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/length/{602a17.wgsl.expected.hlsl => 602a17.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/length/602a17.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/length/{afde8b.wgsl.expected.hlsl => afde8b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/length/afde8b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/length/{becebf.wgsl.expected.hlsl => becebf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/length/becebf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log/{3da25a.wgsl.expected.hlsl => 3da25a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log/3da25a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log/{7114a6.wgsl.expected.hlsl => 7114a6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log/7114a6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log/{b2ce28.wgsl.expected.hlsl => b2ce28.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log/{f4c570.wgsl.expected.hlsl => f4c570.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log/f4c570.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log2/{4036ed.wgsl.expected.hlsl => 4036ed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log2/{902988.wgsl.expected.hlsl => 902988.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log2/902988.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log2/{adb233.wgsl.expected.hlsl => adb233.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log2/adb233.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/log2/{aea659.wgsl.expected.hlsl => aea659.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/log2/aea659.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{0c0aae.wgsl.expected.hlsl => 0c0aae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{25eafe.wgsl.expected.hlsl => 25eafe.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/25eafe.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{320815.wgsl.expected.hlsl => 320815.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/320815.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{44a39d.wgsl.expected.hlsl => 44a39d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/44a39d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{453e04.wgsl.expected.hlsl => 453e04.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/453e04.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{462050.wgsl.expected.hlsl => 462050.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/462050.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{4883ac.wgsl.expected.hlsl => 4883ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/4883ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{85e6bc.wgsl.expected.hlsl => 85e6bc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{a93419.wgsl.expected.hlsl => a93419.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/a93419.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{b1b73a.wgsl.expected.hlsl => b1b73a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{ce7c30.wgsl.expected.hlsl => ce7c30.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/max/{e8192f.wgsl.expected.hlsl => e8192f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/max/e8192f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{03c7e3.wgsl.expected.hlsl => 03c7e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{0dc614.wgsl.expected.hlsl => 0dc614.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/0dc614.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{3941e1.wgsl.expected.hlsl => 3941e1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/3941e1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{46c5d3.wgsl.expected.hlsl => 46c5d3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{82b28f.wgsl.expected.hlsl => 82b28f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/82b28f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{93cfc4.wgsl.expected.hlsl => 93cfc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{a45171.wgsl.expected.hlsl => a45171.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/a45171.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{aa28ad.wgsl.expected.hlsl => aa28ad.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{af326d.wgsl.expected.hlsl => af326d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/af326d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{c70bb7.wgsl.expected.hlsl => c70bb7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{c73147.wgsl.expected.hlsl => c73147.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/c73147.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/min/{c76fa6.wgsl.expected.hlsl => c76fa6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{0c8c33.wgsl.expected.hlsl => 0c8c33.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{1faeb1.wgsl.expected.hlsl => 1faeb1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{2fadab.wgsl.expected.hlsl => 2fadab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{315264.wgsl.expected.hlsl => 315264.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/315264.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{4f0b5e.wgsl.expected.hlsl => 4f0b5e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{6f8adc.wgsl.expected.hlsl => 6f8adc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/mix/{c37ede.wgsl.expected.hlsl => c37ede.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/modf/{180fed.wgsl.expected.hlsl => 180fed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/modf/180fed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/modf/{9b75f7.wgsl.expected.hlsl => 9b75f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/modf/{ec2dbc.wgsl.expected.hlsl => ec2dbc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/modf/{f5f20d.wgsl.expected.hlsl => f5f20d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/normalize/{64d8c0.wgsl.expected.hlsl => 64d8c0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/normalize/{9a0aab.wgsl.expected.hlsl => 9a0aab.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/normalize/{fc2ef1.wgsl.expected.hlsl => fc2ef1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pack2x16float/{0e97b3.wgsl.expected.hlsl => 0e97b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pack2x16snorm/{6c169b.wgsl.expected.hlsl => 6c169b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pack2x16unorm/{0f08e4.wgsl.expected.hlsl => 0f08e4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pack4x8snorm/{4d22e7.wgsl.expected.hlsl => 4d22e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pack4x8unorm/{95c456.wgsl.expected.hlsl => 95c456.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pow/{04a908.wgsl.expected.hlsl => 04a908.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pow/04a908.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pow/{46e029.wgsl.expected.hlsl => 46e029.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pow/46e029.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pow/{4a46c9.wgsl.expected.hlsl => 4a46c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/pow/{e60ea5.wgsl.expected.hlsl => e60ea5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/radians/{09b7fc.wgsl.expected.hlsl => 09b7fc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/radians/{61687a.wgsl.expected.hlsl => 61687a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/radians/61687a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/radians/{6b0ff2.wgsl.expected.hlsl => 6b0ff2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/radians/{f96258.wgsl.expected.hlsl => f96258.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/radians/f96258.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reflect/{05357e.wgsl.expected.hlsl => 05357e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reflect/{b61e10.wgsl.expected.hlsl => b61e10.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reflect/{f47fdb.wgsl.expected.hlsl => f47fdb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/refract/{7e02e6.wgsl.expected.hlsl => 7e02e6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/refract/{cbc1d2.wgsl.expected.hlsl => cbc1d2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/refract/{cd905f.wgsl.expected.hlsl => cd905f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{222177.wgsl.expected.hlsl => 222177.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{35fea9.wgsl.expected.hlsl => 35fea9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{4dbd6f.wgsl.expected.hlsl => 4dbd6f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{7c4269.wgsl.expected.hlsl => 7c4269.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{a6ccd4.wgsl.expected.hlsl => a6ccd4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{c21bc1.wgsl.expected.hlsl => c21bc1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{e1f4c1.wgsl.expected.hlsl => e1f4c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/reverseBits/{e31adf.wgsl.expected.hlsl => e31adf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/round/{106c0b.wgsl.expected.hlsl => 106c0b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/round/106c0b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/round/{1c7897.wgsl.expected.hlsl => 1c7897.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/round/1c7897.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/round/{52c84d.wgsl.expected.hlsl => 52c84d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/round/52c84d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/round/{9edc38.wgsl.expected.hlsl => 9edc38.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/round/9edc38.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{00b848.wgsl.expected.hlsl => 00b848.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/00b848.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{01e2cd.wgsl.expected.hlsl => 01e2cd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{087ea4.wgsl.expected.hlsl => 087ea4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/087ea4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{1e960b.wgsl.expected.hlsl => 1e960b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/1e960b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{266aff.wgsl.expected.hlsl => 266aff.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/266aff.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{28a27e.wgsl.expected.hlsl => 28a27e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/28a27e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{3c25ce.wgsl.expected.hlsl => 3c25ce.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{416e14.wgsl.expected.hlsl => 416e14.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/416e14.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{51b047.wgsl.expected.hlsl => 51b047.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/51b047.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{713567.wgsl.expected.hlsl => 713567.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/713567.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{78be5f.wgsl.expected.hlsl => 78be5f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/78be5f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{80a9a9.wgsl.expected.hlsl => 80a9a9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{8fa62c.wgsl.expected.hlsl => 8fa62c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{99f883.wgsl.expected.hlsl => 99f883.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/99f883.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{a2860e.wgsl.expected.hlsl => a2860e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/a2860e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{ab069f.wgsl.expected.hlsl => ab069f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/ab069f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{b04721.wgsl.expected.hlsl => b04721.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/b04721.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{bb447f.wgsl.expected.hlsl => bb447f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/bb447f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{bb8aae.wgsl.expected.hlsl => bb8aae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{bf3d29.wgsl.expected.hlsl => bf3d29.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{c31f9e.wgsl.expected.hlsl => c31f9e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{c41bd1.wgsl.expected.hlsl => c41bd1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{c4a4ef.wgsl.expected.hlsl => c4a4ef.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{cb9301.wgsl.expected.hlsl => cb9301.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/cb9301.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{e3e028.wgsl.expected.hlsl => e3e028.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/e3e028.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{ebfea2.wgsl.expected.hlsl => ebfea2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{ed8a15.wgsl.expected.hlsl => ed8a15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/select/{fb7e53.wgsl.expected.hlsl => fb7e53.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sign/{159665.wgsl.expected.hlsl => 159665.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sign/159665.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sign/{b8f634.wgsl.expected.hlsl => b8f634.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sign/{d065d8.wgsl.expected.hlsl => d065d8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sign/{dd790e.wgsl.expected.hlsl => dd790e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sin/{01f241.wgsl.expected.hlsl => 01f241.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sin/01f241.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sin/{4e3979.wgsl.expected.hlsl => 4e3979.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sin/{b78c91.wgsl.expected.hlsl => b78c91.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sin/{fc8bc4.wgsl.expected.hlsl => fc8bc4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sinh/{445e33.wgsl.expected.hlsl => 445e33.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sinh/{7bb598.wgsl.expected.hlsl => 7bb598.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sinh/{b9860e.wgsl.expected.hlsl => b9860e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sinh/{c9a5eb.wgsl.expected.hlsl => c9a5eb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/smoothstep/{392c19.wgsl.expected.hlsl => 392c19.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/smoothstep/{40864c.wgsl.expected.hlsl => 40864c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/smoothstep/{6c4975.wgsl.expected.hlsl => 6c4975.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/smoothstep/{aad1db.wgsl.expected.hlsl => aad1db.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sqrt/{20c74e.wgsl.expected.hlsl => 20c74e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sqrt/{8c7024.wgsl.expected.hlsl => 8c7024.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sqrt/{aa0d7a.wgsl.expected.hlsl => aa0d7a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/sqrt/{f8c59a.wgsl.expected.hlsl => f8c59a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/step/{0b073b.wgsl.expected.hlsl => 0b073b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/step/0b073b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/step/{19accd.wgsl.expected.hlsl => 19accd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/step/19accd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/step/{334303.wgsl.expected.hlsl => 334303.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/step/334303.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/step/{e2b337.wgsl.expected.hlsl => e2b337.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/step/e2b337.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tan/{244e2a.wgsl.expected.hlsl => 244e2a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tan/{2f030e.wgsl.expected.hlsl => 2f030e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tan/{7ea104.wgsl.expected.hlsl => 7ea104.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tan/{8ce3e9.wgsl.expected.hlsl => 8ce3e9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tanh/{5663c5.wgsl.expected.hlsl => 5663c5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tanh/{5724b3.wgsl.expected.hlsl => 5724b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tanh/{9f9fb9.wgsl.expected.hlsl => 9f9fb9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/tanh/{c15fdb.wgsl.expected.hlsl => c15fdb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{12c9bb.wgsl.expected.hlsl => 12c9bb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{221f22.wgsl.expected.hlsl => 221f22.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{267788.wgsl.expected.hlsl => 267788.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{26bdfa.wgsl.expected.hlsl => 26bdfa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{2efa05.wgsl.expected.hlsl => 2efa05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{2fe1cc.wgsl.expected.hlsl => 2fe1cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{50a9ee.wgsl.expected.hlsl => 50a9ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{52045c.wgsl.expected.hlsl => 52045c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{686ef2.wgsl.expected.hlsl => 686ef2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{72e5d6.wgsl.expected.hlsl => 72e5d6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{79df87.wgsl.expected.hlsl => 79df87.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{85d556.wgsl.expected.hlsl => 85d556.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{88ad17.wgsl.expected.hlsl => 88ad17.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{9393b0.wgsl.expected.hlsl => 9393b0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{9c9c57.wgsl.expected.hlsl => 9c9c57.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{a01845.wgsl.expected.hlsl => a01845.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{a9c9c1.wgsl.expected.hlsl => a9c9c1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{b0e16d.wgsl.expected.hlsl => b0e16d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{b3e407.wgsl.expected.hlsl => b3e407.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{d83c45.wgsl.expected.hlsl => d83c45.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{efc8a4.wgsl.expected.hlsl => efc8a4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureDimensions/{f7145b.wgsl.expected.hlsl => f7145b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{10c554.wgsl.expected.hlsl => 10c554.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{1f7f6b.wgsl.expected.hlsl => 1f7f6b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{22e930.wgsl.expected.hlsl => 22e930.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{2cc066.wgsl.expected.hlsl => 2cc066.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{2e0ed5.wgsl.expected.hlsl => 2e0ed5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{32c4e8.wgsl.expected.hlsl => 32c4e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{3b32cc.wgsl.expected.hlsl => 3b32cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{43025d.wgsl.expected.hlsl => 43025d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{49b07f.wgsl.expected.hlsl => 49b07f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{4b8103.wgsl.expected.hlsl => 4b8103.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{5266da.wgsl.expected.hlsl => 5266da.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{5ba85f.wgsl.expected.hlsl => 5ba85f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{5bd491.wgsl.expected.hlsl => 5bd491.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{751f8a.wgsl.expected.hlsl => 751f8a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{7c3828.wgsl.expected.hlsl => 7c3828.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{8b754c.wgsl.expected.hlsl => 8b754c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{9a6358.wgsl.expected.hlsl => 9a6358.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{af55b3.wgsl.expected.hlsl => af55b3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{bb3ac5.wgsl.expected.hlsl => bb3ac5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{c0640c.wgsl.expected.hlsl => c0640c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{d1f187.wgsl.expected.hlsl => d1f187.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{d90605.wgsl.expected.hlsl => d90605.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{e9d390.wgsl.expected.hlsl => e9d390.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGather/{f2c6e3.wgsl.expected.hlsl => f2c6e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{182fd4.wgsl.expected.hlsl => 182fd4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{313add.wgsl.expected.hlsl => 313add.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{60d2d1.wgsl.expected.hlsl => 60d2d1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{6d9352.wgsl.expected.hlsl => 6d9352.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{783e65.wgsl.expected.hlsl => 783e65.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureGatherCompare/{f585cc.wgsl.expected.hlsl => f585cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{19cf87.wgsl.expected.hlsl => 19cf87.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{1b8588.wgsl.expected.hlsl => 1b8588.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{1f2016.wgsl.expected.hlsl => 1f2016.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{484344.wgsl.expected.hlsl => 484344.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{4fd803.wgsl.expected.hlsl => 4fd803.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{5a2f9d.wgsl.expected.hlsl => 5a2f9d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{6154d4.wgsl.expected.hlsl => 6154d4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{6273b1.wgsl.expected.hlsl => 6273b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{79e697.wgsl.expected.hlsl => 79e697.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{7c90e5.wgsl.expected.hlsl => 7c90e5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{81c381.wgsl.expected.hlsl => 81c381.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{87be85.wgsl.expected.hlsl => 87be85.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{8acf41.wgsl.expected.hlsl => 8acf41.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{9b2667.wgsl.expected.hlsl => 9b2667.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{a583c9.wgsl.expected.hlsl => a583c9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{a9a9f5.wgsl.expected.hlsl => a9a9f5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{c2a480.wgsl.expected.hlsl => c2a480.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{c378ee.wgsl.expected.hlsl => c378ee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureLoad/{e3d2cc.wgsl.expected.hlsl => e3d2cc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{0dff6c.wgsl.expected.hlsl => 0dff6c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{17e988.wgsl.expected.hlsl => 17e988.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{2149ec.wgsl.expected.hlsl => 2149ec.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{38bbb9.wgsl.expected.hlsl => 38bbb9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{3b50bd.wgsl.expected.hlsl => 3b50bd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{4dd1bf.wgsl.expected.hlsl => 4dd1bf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{51b514.wgsl.expected.hlsl => 51b514.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{60bf45.wgsl.expected.hlsl => 60bf45.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{6717ca.wgsl.expected.hlsl => 6717ca.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{6e64fb.wgsl.expected.hlsl => 6e64fb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{7e9ffd.wgsl.expected.hlsl => 7e9ffd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{85c4ba.wgsl.expected.hlsl => 85c4ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{c2f4e8.wgsl.expected.hlsl => c2f4e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{e53267.wgsl.expected.hlsl => e53267.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSample/{ea7030.wgsl.expected.hlsl => ea7030.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{53b9f7.wgsl.expected.hlsl => 53b9f7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{594824.wgsl.expected.hlsl => 594824.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{6a9113.wgsl.expected.hlsl => 6a9113.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{80e579.wgsl.expected.hlsl => 80e579.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{9dbb51.wgsl.expected.hlsl => 9dbb51.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{a161cf.wgsl.expected.hlsl => a161cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{d3fa1b.wgsl.expected.hlsl => d3fa1b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleBias/{eed7c4.wgsl.expected.hlsl => eed7c4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{3a5923.wgsl.expected.hlsl => 3a5923.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{63fb83.wgsl.expected.hlsl => 63fb83.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{a3ca7e.wgsl.expected.hlsl => a3ca7e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{af1051.wgsl.expected.hlsl => af1051.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{dd431d.wgsl.expected.hlsl => dd431d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompare/{dec064.wgsl.expected.hlsl => dec064.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{1116ed.wgsl.expected.hlsl => 1116ed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{1568e3.wgsl.expected.hlsl => 1568e3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{2ad2b1.wgsl.expected.hlsl => 2ad2b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{4cf3a2.wgsl.expected.hlsl => 4cf3a2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{7f2b9a.wgsl.expected.hlsl => 7f2b9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleCompareLevel/{b6e47c.wgsl.expected.hlsl => b6e47c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{21402b.wgsl.expected.hlsl => 21402b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{2ecd8f.wgsl.expected.hlsl => 2ecd8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{521263.wgsl.expected.hlsl => 521263.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{5312f4.wgsl.expected.hlsl => 5312f4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{5884dd.wgsl.expected.hlsl => 5884dd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{d4e3c5.wgsl.expected.hlsl => d4e3c5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{d65515.wgsl.expected.hlsl => d65515.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleGrad/{e383db.wgsl.expected.hlsl => e383db.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{02be59.wgsl.expected.hlsl => 02be59.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{0b0a1b.wgsl.expected.hlsl => 0b0a1b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{0bdd9a.wgsl.expected.hlsl => 0bdd9a.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{1b0291.wgsl.expected.hlsl => 1b0291.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{1bf73e.wgsl.expected.hlsl => 1bf73e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{302be4.wgsl.expected.hlsl => 302be4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{36780e.wgsl.expected.hlsl => 36780e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{749baf.wgsl.expected.hlsl => 749baf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{979816.wgsl.expected.hlsl => 979816.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{abfcc0.wgsl.expected.hlsl => abfcc0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{ae5e39.wgsl.expected.hlsl => ae5e39.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{b7c55c.wgsl.expected.hlsl => b7c55c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{c32df7.wgsl.expected.hlsl => c32df7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{c6aca6.wgsl.expected.hlsl => c6aca6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureSampleLevel/{dcbecb.wgsl.expected.hlsl => dcbecb.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{05ce15.wgsl.expected.hlsl => 05ce15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{064c7f.wgsl.expected.hlsl => 064c7f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{068641.wgsl.expected.hlsl => 068641.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{0af6b5.wgsl.expected.hlsl => 0af6b5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{0c3dff.wgsl.expected.hlsl => 0c3dff.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{102722.wgsl.expected.hlsl => 102722.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{1bbd08.wgsl.expected.hlsl => 1bbd08.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{1c02e7.wgsl.expected.hlsl => 1c02e7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{22d955.wgsl.expected.hlsl => 22d955.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{26bf70.wgsl.expected.hlsl => 26bf70.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{2796b4.wgsl.expected.hlsl => 2796b4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{2ac6c7.wgsl.expected.hlsl => 2ac6c7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{2eb2a4.wgsl.expected.hlsl => 2eb2a4.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{2ed2a3.wgsl.expected.hlsl => 2ed2a3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{31745b.wgsl.expected.hlsl => 31745b.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{32f368.wgsl.expected.hlsl => 32f368.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{331aee.wgsl.expected.hlsl => 331aee.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{38e8d7.wgsl.expected.hlsl => 38e8d7.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{3a52ac.wgsl.expected.hlsl => 3a52ac.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{3bb7a1.wgsl.expected.hlsl => 3bb7a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{3bec15.wgsl.expected.hlsl => 3bec15.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{441ba8.wgsl.expected.hlsl => 441ba8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{4fc057.wgsl.expected.hlsl => 4fc057.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{5a2f8f.wgsl.expected.hlsl => 5a2f8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{60975f.wgsl.expected.hlsl => 60975f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{682fd6.wgsl.expected.hlsl => 682fd6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{6b75c3.wgsl.expected.hlsl => 6b75c3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{6b80d2.wgsl.expected.hlsl => 6b80d2.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{6cff2e.wgsl.expected.hlsl => 6cff2e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{6da692.wgsl.expected.hlsl => 6da692.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{731349.wgsl.expected.hlsl => 731349.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{752da6.wgsl.expected.hlsl => 752da6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{77c0ae.wgsl.expected.hlsl => 77c0ae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{7cec8d.wgsl.expected.hlsl => 7cec8d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{7f7fae.wgsl.expected.hlsl => 7f7fae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{804942.wgsl.expected.hlsl => 804942.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{805dae.wgsl.expected.hlsl => 805dae.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{83bcc1.wgsl.expected.hlsl => 83bcc1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{872747.wgsl.expected.hlsl => 872747.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{8e0479.wgsl.expected.hlsl => 8e0479.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{8f71a1.wgsl.expected.hlsl => 8f71a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{969534.wgsl.expected.hlsl => 969534.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{9a3ecc.wgsl.expected.hlsl => 9a3ecc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{9d9cd5.wgsl.expected.hlsl => 9d9cd5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{9e3ec5.wgsl.expected.hlsl => 9e3ec5.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{ac67aa.wgsl.expected.hlsl => ac67aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{b706b1.wgsl.expected.hlsl => b706b1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{bbcb7f.wgsl.expected.hlsl => bbcb7f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{be6e30.wgsl.expected.hlsl => be6e30.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{bf775c.wgsl.expected.hlsl => bf775c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{c5af1e.wgsl.expected.hlsl => c5af1e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{c863be.wgsl.expected.hlsl => c863be.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{d73b5c.wgsl.expected.hlsl => d73b5c.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{dd7d81.wgsl.expected.hlsl => dd7d81.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{dde364.wgsl.expected.hlsl => dde364.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{e885e8.wgsl.expected.hlsl => e885e8.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{eb702f.wgsl.expected.hlsl => eb702f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{eb78b9.wgsl.expected.hlsl => eb78b9.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{ee6acc.wgsl.expected.hlsl => ee6acc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{ef9f2f.wgsl.expected.hlsl => ef9f2f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{f8dead.wgsl.expected.hlsl => f8dead.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{f9be83.wgsl.expected.hlsl => f9be83.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{fb9a8f.wgsl.expected.hlsl => fb9a8f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/textureStore/{fbf53f.wgsl.expected.hlsl => fbf53f.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{2585cd.wgsl.expected.hlsl => 2585cd.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{31d679.wgsl.expected.hlsl => 31d679.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{31e37e.wgsl.expected.hlsl => 31e37e.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{4ce359.wgsl.expected.hlsl => 4ce359.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{4dc9a1.wgsl.expected.hlsl => 4dc9a1.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{854336.wgsl.expected.hlsl => 854336.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/854336.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{c1b600.wgsl.expected.hlsl => c1b600.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{d8f8ba.wgsl.expected.hlsl => d8f8ba.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/transpose/{ed4bdc.wgsl.expected.hlsl => ed4bdc.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/trunc/{562d05.wgsl.expected.hlsl => 562d05.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/trunc/{e183aa.wgsl.expected.hlsl => e183aa.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/trunc/{eb83df.wgsl.expected.hlsl => eb83df.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/trunc/{f370d3.wgsl.expected.hlsl => f370d3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/unpack2x16float/{32a5cf.wgsl.expected.hlsl => 32a5cf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/unpack2x16snorm/{b4aea6.wgsl.expected.hlsl => b4aea6.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/unpack2x16unorm/{7699c0.wgsl.expected.hlsl => 7699c0.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/unpack4x8snorm/{523fb3.wgsl.expected.hlsl => 523fb3.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl rename test/tint/builtins/gen/var/unpack4x8unorm/{750c74.wgsl.expected.hlsl => 750c74.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl create mode 100644 test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl create mode 100644 test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl rename test/tint/builtins/insertBits/scalar/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/insertBits/scalar/i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/insertBits/scalar/{u32.spvasm.expected.hlsl => u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/insertBits/scalar/u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/insertBits/vec3/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/insertBits/vec3/i32.spvasm.expected.fxc.hlsl rename test/tint/builtins/insertBits/vec3/{u32.spvasm.expected.hlsl => u32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/insertBits/vec3/u32.spvasm.expected.fxc.hlsl rename test/tint/builtins/{modf.wgsl.expected.hlsl => modf.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/modf.wgsl.expected.fxc.hlsl rename test/tint/builtins/{radians.spvasm.expected.hlsl => radians.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/radians.spvasm.expected.fxc.hlsl rename test/tint/builtins/{repeated_use.wgsl.expected.hlsl => repeated_use.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/repeated_use.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureDimensions/{depth_ms.spvasm.expected.hlsl => depth_ms.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.fxc.hlsl rename test/tint/builtins/textureGather/f32/{alpha.wgsl.expected.hlsl => alpha.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/f32/alpha.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/f32/{blue.wgsl.expected.hlsl => blue.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/f32/blue.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/f32/{green.wgsl.expected.hlsl => green.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/f32/green.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/f32/{red.wgsl.expected.hlsl => red.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/f32/red.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/i32/{alpha.wgsl.expected.hlsl => alpha.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/i32/alpha.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/i32/{blue.wgsl.expected.hlsl => blue.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/i32/blue.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/i32/{green.wgsl.expected.hlsl => green.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/i32/green.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/i32/{red.wgsl.expected.hlsl => red.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/i32/red.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/u32/{alpha.wgsl.expected.hlsl => alpha.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/u32/alpha.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/u32/{blue.wgsl.expected.hlsl => blue.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/u32/blue.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/u32/{green.wgsl.expected.hlsl => green.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/u32/green.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureGather/u32/{red.wgsl.expected.hlsl => red.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureGather/u32/red.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureLoad/{depth_ms.spvasm.expected.hlsl => depth_ms.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureLoad/depth_ms.spvasm.expected.fxc.hlsl rename test/tint/builtins/textureLoad/{texture_external_param.wgsl.expected.hlsl => texture_external_param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureLoad/{texture_param.wgsl.expected.hlsl => texture_param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureLoad/texture_param.wgsl.expected.fxc.hlsl rename test/tint/builtins/textureNumSamples/{depth_ms.spvasm.expected.hlsl => depth_ms.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.fxc.hlsl rename test/tint/const/global/{global.wgsl.expected.hlsl => global.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/const/global/global.wgsl.expected.fxc.hlsl rename test/tint/const/inferred/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/const/inferred/function.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/mat3x3-mat3x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/add/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/scalar-scalar/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/vec3-vec3/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-and/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-or/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-or/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-or/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-or/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-xor/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-xor/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-xor/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/bit-xor/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/left-shift/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/left-shift/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/left-shift/vector-vector/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/left-shift/vector-vector/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/mat2x4-mat4x2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/mat3x2-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/mat3x3-mat3x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/mat3x3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/mat4x2-mat2x4/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-mat3x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-mat4x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/mul/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/right-shift/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/right-shift/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/right-shift/vector-vector/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/right-shift/vector-vector/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/mat3x3-mat3x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/scalar-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/binary/sub/vec3-vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{f32-f32.wgsl.expected.hlsl => f32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{f32-i32.wgsl.expected.hlsl => f32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{f32-u32.wgsl.expected.hlsl => f32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{i32-f32.wgsl.expected.hlsl => i32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{i32-i32.wgsl.expected.hlsl => i32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{i32-u32.wgsl.expected.hlsl => i32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{i32min-u32.wgsl.expected.hlsl => i32min-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{u32-f32.wgsl.expected.hlsl => u32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{u32-i32.wgsl.expected.hlsl => u32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/scalar/{u32-u32.wgsl.expected.hlsl => u32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{f32-f32.wgsl.expected.hlsl => f32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{f32-i32.wgsl.expected.hlsl => f32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{f32-u32.wgsl.expected.hlsl => f32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{i32-f32.wgsl.expected.hlsl => i32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{i32-i32.wgsl.expected.hlsl => i32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{i32-u32.wgsl.expected.hlsl => i32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{u32-f32.wgsl.expected.hlsl => u32-f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{u32-i32.wgsl.expected.hlsl => u32-i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/bitcast/vector/{u32-u32.wgsl.expected.hlsl => u32-u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/let/literal/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/let/{literal/array.wgsl.expected.hlsl => let/literal/array.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/let/let/literal/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/let/{literal/matrix.wgsl.expected.hlsl => let/literal/matrix.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/let/let/literal/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/let/{literal/vector.wgsl.expected.hlsl => let/literal/vector.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/let/let/param/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/let/param/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/let/param/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/let/param/matrix.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/let/param/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/let/param/vector.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/array.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/array.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/matrix.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/matrix.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/vector.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/let/literal/vector.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/param/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/param/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/param/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/param/matrix.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/param/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/let/param/vector.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/let/var/literal/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/{var/let/literal/array.wgsl.expected.hlsl => let/var/literal/array.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/let/var/literal/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/{var/let/literal/matrix.wgsl.expected.hlsl => let/var/literal/matrix.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/let/var/literal/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/index/{var/let/literal/vector.wgsl.expected.hlsl => let/var/literal/vector.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/index/var/{literal/array.wgsl.expected.hlsl => let/literal/array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/literal/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/{literal/matrix.wgsl.expected.hlsl => let/literal/matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/{literal/vector.wgsl.expected.hlsl => let/literal/vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/literal/vector.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/let/param/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/param/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/let/param/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/param/matrix.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/let/param/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/let/param/vector.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/array.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/array.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/matrix.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/matrix.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/vector.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/index/var/literal/vector.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/param/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/param/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/param/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/param/matrix.wgsl.expected.fxc.hlsl rename test/tint/expressions/index/var/param/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/index/var/param/vector.wgsl.expected.fxc.hlsl rename test/tint/expressions/literals/{-inf.spvasm.expected.hlsl => -inf.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/literals/-inf.spvasm.expected.fxc.hlsl rename test/tint/expressions/literals/{inf.spvasm.expected.hlsl => inf.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/literals/inf.spvasm.expected.fxc.hlsl rename test/tint/expressions/literals/{intmin.wgsl.expected.hlsl => intmin.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/literals/intmin.wgsl.expected.fxc.hlsl rename test/tint/expressions/literals/{nan.spvasm.expected.hlsl => nan.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/literals/nan.spvasm.expected.fxc.hlsl rename test/tint/expressions/splat/call/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/call/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/call/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/call/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/call/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/call/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/call/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/call/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/expression/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/expression/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/expression/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/expression/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/expression/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/expression/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/expression/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/expression/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/immediate/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/immediate/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/immediate/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/immediate/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/immediate/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/immediate/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/immediate/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/immediate/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/var/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/var/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/var/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/var/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/var/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/var/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/var/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/var/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/splat/with_swizzle/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/packed_vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/packed_vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/packed_vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/read/vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/packed_vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/packed_vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/packed_vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/swizzle/write/vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x2/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x2/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x2/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x2/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x2/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x3/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x3/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x3/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x3/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x3/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x4/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x4/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat2x4/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x4/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat2x4/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x2/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x2/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x2/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x2/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x2/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x3/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x3/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x3/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x3/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x3/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x4/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x4/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat3x4/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x4/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat3x4/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x2/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x2/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x2/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x2/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x2/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x3/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x3/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x3/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x3/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x3/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x4/explicit/identity/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/{inferred/identity/f32.wgsl.expected.hlsl => explicit/identity/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/explicit/scalars/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/explicit/{vectors/f32.wgsl.expected.hlsl => scalars/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/{inferred/scalars/abstract-float.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/{inferred/scalars/f32.wgsl.expected.hlsl => explicit/vectors/f32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x4/inferred/{vectors/abstract-float.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/mat4x4/inferred/{vectors/f32.wgsl.expected.hlsl => scalars/abstract-float.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x4/load/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/mat4x4/zero/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec2/explicit/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/{inferred/bool.wgsl.expected.hlsl => explicit/bool.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/explicit/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/{inferred/abstract-float.wgsl.expected.hlsl => explicit/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/explicit/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/{inferred/abstract-int.wgsl.expected.hlsl => explicit/i32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/explicit/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/{inferred/u32.wgsl.expected.hlsl => explicit/u32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec2/inferred/{f32.wgsl.expected.hlsl => abstract-float.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec2/inferred/{i32.wgsl.expected.hlsl => abstract-int.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec3/explicit/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/{inferred/bool.wgsl.expected.hlsl => explicit/bool.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/explicit/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/{inferred/abstract-float.wgsl.expected.hlsl => explicit/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/explicit/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/{inferred/abstract-int.wgsl.expected.hlsl => explicit/i32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/explicit/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/{inferred/u32.wgsl.expected.hlsl => explicit/u32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec3/inferred/{f32.wgsl.expected.hlsl => abstract-float.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec3/inferred/{i32.wgsl.expected.hlsl => abstract-int.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec4/explicit/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/{inferred/bool.wgsl.expected.hlsl => explicit/bool.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/explicit/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/{inferred/abstract-float.wgsl.expected.hlsl => explicit/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/explicit/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/{inferred/abstract-int.wgsl.expected.hlsl => explicit/i32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/explicit/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/{inferred/u32.wgsl.expected.hlsl => explicit/u32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/expressions/type_ctor/vec4/inferred/{f32.wgsl.expected.hlsl => abstract-float.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.fxc.hlsl rename test/tint/expressions/type_ctor/vec4/inferred/{i32.wgsl.expected.hlsl => abstract-int.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/unary/complement/{complement.wgsl.expected.hlsl => complement.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/unary/complement/complement.wgsl.expected.fxc.hlsl rename test/tint/expressions/unary/negate/{negate.wgsl.expected.hlsl => negate.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/unary/negate/negate.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/array/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/array/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/array/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/array/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/array/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/array/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/array/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/array/struct.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/array/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/array/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat2x2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat2x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat2x4/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat3x2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat3x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat3x4/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat4x2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat4x3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/mat4x4/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/scalar/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/scalar/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/scalar/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/scalar/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/scalar/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/scalar/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/scalar/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/scalar/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/struct/{array.wgsl.expected.hlsl => array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/struct/array.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/struct/{scalar.wgsl.expected.hlsl => scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/struct/scalar.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec2/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec2/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec2/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec2/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec2/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec2/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec2/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec3/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec3/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec3/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec3/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec3/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec3/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec3/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec3/u32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec4/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec4/bool.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec4/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec4/f32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec4/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec4/i32.wgsl.expected.fxc.hlsl rename test/tint/expressions/zero_init/vec4/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/expressions/zero_init/vec4/u32.wgsl.expected.fxc.hlsl rename test/tint/extensions/parsing/{basic.wgsl.expected.hlsl => basic.wgsl.expected.dxc.hlsl} (100%) rename test/tint/extensions/parsing/{duplicated_extensions.wgsl.expected.hlsl => basic.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.dxc.hlsl create mode 100644 test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/double/{alias.wgsl.expected.hlsl => alias.wgsl.expected.dxc.hlsl} (100%) rename test/tint/identifiers/underscore/{prefix/lower/alias.wgsl.expected.hlsl => double/alias.wgsl.expected.fxc.hlsl} (100%) rename test/tint/identifiers/underscore/double/{const.wgsl.expected.hlsl => const.wgsl.expected.dxc.hlsl} (100%) rename test/tint/identifiers/underscore/{prefix/lower/const.wgsl.expected.hlsl => double/const.wgsl.expected.fxc.hlsl} (100%) rename test/tint/identifiers/underscore/double/{fn.wgsl.expected.hlsl => fn.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/double/fn.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/double/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/double/let.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/double/{parameter.wgsl.expected.hlsl => parameter.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/double/parameter.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/double/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/double/struct.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/double/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/double/var.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/{upper/alias.wgsl.expected.hlsl => lower/alias.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.fxc.hlsl create mode 100644 test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.dxc.hlsl create mode 100644 test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/lower/{fn.wgsl.expected.hlsl => fn.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/lower/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/lower/{parameter.wgsl.expected.hlsl => parameter.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/lower/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/lower/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.fxc.hlsl create mode 100644 test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.dxc.hlsl create mode 100644 test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/upper/{fn.wgsl.expected.hlsl => fn.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/upper/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/upper/{parameter.wgsl.expected.hlsl => parameter.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/upper/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.fxc.hlsl rename test/tint/identifiers/underscore/prefix/upper/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.fxc.hlsl rename test/tint/layout/storage/mat2x2/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/layout/storage/mat2x2/f32.wgsl.expected.fxc.hlsl rename test/tint/layout/storage/mat2x2/stride/{16.spvasm.expected.hlsl => 16.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.fxc.hlsl rename test/tint/let/inferred/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/let/inferred/function.wgsl.expected.fxc.hlsl rename test/tint/loops/{continue_in_switch.wgsl.expected.hlsl => continue_in_switch.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/continue_in_switch.wgsl.expected.fxc.hlsl rename test/tint/loops/{loop.wgsl.expected.hlsl => loop.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/loop.wgsl.expected.fxc.hlsl rename test/tint/loops/{loop_with_continuing.wgsl.expected.hlsl => loop_with_continuing.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/loop_with_continuing.wgsl.expected.fxc.hlsl rename test/tint/loops/{nested_loops.wgsl.expected.hlsl => nested_loops.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/nested_loops.wgsl.expected.fxc.hlsl rename test/tint/loops/{nested_loops_with_continuing.wgsl.expected.hlsl => nested_loops_with_continuing.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/nested_loops_with_continuing.wgsl.expected.fxc.hlsl rename test/tint/loops/{while.wgsl.expected.hlsl => while.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/while.wgsl.expected.fxc.hlsl rename test/tint/loops/{while_with_continue.wgsl.expected.hlsl => while_with_continue.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/loops/while_with_continue.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/alias/{alias.wgsl.expected.hlsl => alias.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/alias/alias.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/alias/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) rename test/tint/out_of_order_decls/{struct/alias.wgsl.expected.hlsl => alias/struct.wgsl.expected.fxc.hlsl} (100%) rename test/tint/out_of_order_decls/array/{alias.wgsl.expected.hlsl => alias.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/array/alias.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/array/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/array/struct.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/func/{const.wgsl.expected.hlsl => const.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/func/const.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/func/{func.wgsl.expected.hlsl => func.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/func/func.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/func/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/func/let.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/func/{type.wgsl.expected.hlsl => type.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/func/type.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/func/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/func/var.wgsl.expected.fxc.hlsl create mode 100644 test/tint/out_of_order_decls/struct/alias.wgsl.expected.dxc.hlsl create mode 100644 test/tint/out_of_order_decls/struct/alias.wgsl.expected.fxc.hlsl rename test/tint/out_of_order_decls/struct/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/out_of_order_decls/struct/struct.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/access/{matrix.spvasm.expected.hlsl => matrix.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/access/matrix.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/access/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/access/matrix.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/copy/{ptr_copy.spvasm.expected.hlsl => ptr_copy.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/global/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/global/i32.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/global/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/global/i32.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/global/{struct_field.spvasm.expected.hlsl => struct_field.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/global/struct_field.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/global/{struct_field.wgsl.expected.hlsl => struct_field.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/global/struct_field.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/i32.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/ptr_ref/load/local/{ptr_function.wgsl.expected.hlsl => i32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.dxc.hlsl create mode 100644 test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{ptr_private.wgsl.expected.hlsl => ptr_private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{ptr_storage.wgsl.expected.hlsl => ptr_storage.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{ptr_uniform.wgsl.expected.hlsl => ptr_uniform.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{ptr_workgroup.wgsl.expected.hlsl => ptr_workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{struct_field.spvasm.expected.hlsl => struct_field.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/struct_field.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/local/{struct_field.wgsl.expected.hlsl => struct_field.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/local/struct_field.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/load/param/{ptr.spvasm.expected.hlsl => ptr.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/param/ptr.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/load/param/{ptr.wgsl.expected.hlsl => ptr.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/load/param/ptr.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/store/global/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/global/i32.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/store/global/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/global/i32.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/store/global/{struct_field.spvasm.expected.hlsl => struct_field.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/global/struct_field.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/store/local/{i32.spvasm.expected.hlsl => i32.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/local/i32.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/store/local/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/local/i32.wgsl.expected.fxc.hlsl rename test/tint/ptr_ref/store/local/{struct_field.spvasm.expected.hlsl => struct_field.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/local/struct_field.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/store/param/{ptr.spvasm.expected.hlsl => ptr.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/param/ptr.spvasm.expected.fxc.hlsl rename test/tint/ptr_ref/store/param/{ptr.wgsl.expected.hlsl => ptr.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/ptr_ref/store/param/ptr.wgsl.expected.fxc.hlsl rename test/tint/samples/{compute_boids.wgsl.expected.hlsl => compute_boids.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/compute_boids.wgsl.expected.fxc.hlsl rename test/tint/samples/{cube.wgsl.expected.hlsl => cube.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/cube.wgsl.expected.fxc.hlsl rename test/tint/samples/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/function.wgsl.expected.fxc.hlsl rename test/tint/samples/{simple.wgsl.expected.hlsl => simple.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/simple.wgsl.expected.fxc.hlsl rename test/tint/samples/{simple_vertex.spvasm.expected.hlsl => simple_vertex.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/simple_vertex.spvasm.expected.fxc.hlsl rename test/tint/samples/{triangle.wgsl.expected.hlsl => triangle.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/samples/triangle.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{compute_input_builtins.wgsl.expected.hlsl => compute_input_builtins.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/compute_input_builtins.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{compute_input_builtins_struct.wgsl.expected.hlsl => compute_input_builtins_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{compute_input_mixed.wgsl.expected.hlsl => compute_input_mixed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/compute_input_mixed.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_input_builtins.wgsl.expected.hlsl => fragment_input_builtins.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_input_builtins.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_input_builtins_struct.wgsl.expected.hlsl => fragment_input_builtins_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_input_locations.wgsl.expected.hlsl => fragment_input_locations.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_input_locations.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_input_locations_struct.wgsl.expected.hlsl => fragment_input_locations_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_input_mixed.wgsl.expected.hlsl => fragment_input_mixed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_input_mixed.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_output_builtins.wgsl.expected.hlsl => fragment_output_builtins.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_output_builtins.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_output_builtins_struct.wgsl.expected.hlsl => fragment_output_builtins_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_output_locations.wgsl.expected.hlsl => fragment_output_locations.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_output_locations.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_output_locations_struct.wgsl.expected.hlsl => fragment_output_locations_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{fragment_output_mixed.wgsl.expected.hlsl => fragment_output_mixed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/fragment_output_mixed.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{interpolate_input_parameters.wgsl.expected.hlsl => interpolate_input_parameters.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/interpolate_input_parameters.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{interpolate_input_struct.wgsl.expected.hlsl => interpolate_input_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/interpolate_input_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{interpolate_integers.wgsl.expected.hlsl => interpolate_integers.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/interpolate_integers.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{interpolate_return_struct.wgsl.expected.hlsl => interpolate_return_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/interpolate_return_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{invariant.wgsl.expected.hlsl => invariant.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/invariant.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{invariant_struct_member.wgsl.expected.hlsl => invariant_struct_member.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/invariant_struct_member.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{shared_struct_different_stages.wgsl.expected.hlsl => shared_struct_different_stages.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/shared_struct_different_stages.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{shared_struct_helper_function.wgsl.expected.hlsl => shared_struct_helper_function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/shared_struct_helper_function.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{shared_struct_storage_buffer.wgsl.expected.hlsl => shared_struct_storage_buffer.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_input_builtins.wgsl.expected.hlsl => vertex_input_builtins.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_input_builtins.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_input_builtins_struct.wgsl.expected.hlsl => vertex_input_builtins_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_input_locations.wgsl.expected.hlsl => vertex_input_locations.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_input_locations.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_input_locations_struct.wgsl.expected.hlsl => vertex_input_locations_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_input_mixed.wgsl.expected.hlsl => vertex_input_mixed.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_input_mixed.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_output_builtins.wgsl.expected.hlsl => vertex_output_builtins.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_output_builtins.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_output_builtins_struct.wgsl.expected.hlsl => vertex_output_builtins_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.fxc.hlsl rename test/tint/shader_io/{vertex_output_locations_struct.wgsl.expected.hlsl => vertex_output_locations_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.fxc.hlsl rename test/tint/shadowing/alias/{const.wgsl.expected.hlsl => const.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/alias/const.wgsl.expected.fxc.hlsl rename test/tint/shadowing/alias/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/alias/let.wgsl.expected.fxc.hlsl rename test/tint/shadowing/alias/{param.wgsl.expected.hlsl => param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/alias/param.wgsl.expected.fxc.hlsl rename test/tint/shadowing/alias/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/alias/var.wgsl.expected.fxc.hlsl rename test/tint/shadowing/function/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/function/let.wgsl.expected.fxc.hlsl rename test/tint/shadowing/function/{param.wgsl.expected.hlsl => param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/function/param.wgsl.expected.fxc.hlsl rename test/tint/shadowing/function/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) rename test/tint/shadowing/{struct/var.wgsl.expected.hlsl => function/var.wgsl.expected.fxc.hlsl} (100%) rename test/tint/shadowing/param/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/param/function.wgsl.expected.fxc.hlsl rename test/tint/shadowing/param/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/param/let.wgsl.expected.fxc.hlsl rename test/tint/shadowing/param/{var.wgsl.expected.hlsl => var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/param/var.wgsl.expected.fxc.hlsl rename test/tint/shadowing/struct/{let.wgsl.expected.hlsl => let.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/struct/let.wgsl.expected.fxc.hlsl rename test/tint/shadowing/struct/{param.wgsl.expected.hlsl => param.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/shadowing/struct/param.wgsl.expected.fxc.hlsl create mode 100644 test/tint/shadowing/struct/var.wgsl.expected.dxc.hlsl create mode 100644 test/tint/shadowing/struct/var.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{in_for_loop_body.wgsl.expected.hlsl => in_for_loop_body.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{in_for_loop_continuing.wgsl.expected.hlsl => in_for_loop_continuing.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{in_for_loop_init.wgsl.expected.hlsl => in_for_loop_init.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{indexing_with_side_effect_func.wgsl.expected.hlsl => indexing_with_side_effect_func.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_array.wgsl.expected.hlsl => struct_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_array_array.wgsl.expected.hlsl => struct_array_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_array_struct.wgsl.expected.hlsl => struct_array_struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_array_struct_array.wgsl.expected.hlsl => struct_array_struct_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_dynamic_array.wgsl.expected.hlsl => struct_dynamic_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_dynamic_array_struct_array.wgsl.expected.hlsl => struct_dynamic_array_struct_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_matrix.wgsl.expected.hlsl => struct_matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_multiple_arrays.wgsl.expected.hlsl => struct_multiple_arrays.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_struct_array.wgsl.expected.hlsl => struct_struct_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{struct_vector.wgsl.expected.hlsl => struct_vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{vector_assign.wgsl.expected.hlsl => vector_assign.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{via_pointer.wgsl.expected.hlsl => via_pointer.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/indexed_assign_to_array_in_struct/{via_pointer_arg.wgsl.expected.hlsl => via_pointer_arg.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/phony/{addr_of_non_constructable.wgsl.expected.hlsl => addr_of_non_constructable.wgsl.expected.dxc.hlsl} (100%) rename test/tint/statements/assign/phony/{addr_of_runtime_array.wgsl.expected.hlsl => addr_of_non_constructable.wgsl.expected.fxc.hlsl} (100%) rename test/tint/statements/assign/phony/{storage_buffer.wgsl.expected.hlsl => addr_of_runtime_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/phony/{call.wgsl.expected.hlsl => call.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/phony/call.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/phony/{multiple_side_effects.wgsl.expected.hlsl => multiple_side_effects.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.fxc.hlsl create mode 100644 test/tint/statements/assign/phony/storage_buffer.wgsl.expected.dxc.hlsl create mode 100644 test/tint/statements/assign/phony/storage_buffer.wgsl.expected.fxc.hlsl rename test/tint/statements/assign/phony/{uniform_buffer.wgsl.expected.hlsl => uniform_buffer.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{complex_lhs.wgsl.expected.hlsl => complex_lhs.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/complex_lhs.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{divide_by_zero.wgsl.expected.hlsl => divide_by_zero.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{for_loop.wgsl.expected.hlsl => for_loop.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/for_loop.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/function.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/matrix/{minus.wgsl.expected.hlsl => minus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/matrix/minus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/matrix/{plus.wgsl.expected.hlsl => plus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/matrix/plus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/matrix/{times-scalar.wgsl.expected.hlsl => times-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/matrix/{times.wgsl.expected.hlsl => times.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/matrix/times.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/private.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{and.wgsl.expected.hlsl => and.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/and.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{divide.wgsl.expected.hlsl => divide.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/divide.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{minus.wgsl.expected.hlsl => minus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/minus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{modulo.wgsl.expected.hlsl => modulo.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{or.wgsl.expected.hlsl => or.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/or.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{plus.wgsl.expected.hlsl => plus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/plus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{times.wgsl.expected.hlsl => times.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/times.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/scalar/{xor.wgsl.expected.hlsl => xor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/scalar/xor.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{and.wgsl.expected.hlsl => and.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/and.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{divide-scalar.wgsl.expected.hlsl => divide-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{divide.wgsl.expected.hlsl => divide.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/divide.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{minus-scalar.wgsl.expected.hlsl => minus-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{minus.wgsl.expected.hlsl => minus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/minus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{modulo-scalar.wgsl.expected.hlsl => modulo-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{modulo.wgsl.expected.hlsl => modulo.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/modulo.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{or.wgsl.expected.hlsl => or.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/or.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{plus-scalar.wgsl.expected.hlsl => plus-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{plus.wgsl.expected.hlsl => plus.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/plus.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{times-matrix.wgsl.expected.hlsl => times-matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{times-scalar.wgsl.expected.hlsl => times-scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{times.wgsl.expected.hlsl => times.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/times.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/vector/{xor.wgsl.expected.hlsl => xor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/vector/xor.wgsl.expected.fxc.hlsl rename test/tint/statements/compound_assign/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/compound_assign/workgroup.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{array_element.wgsl.expected.hlsl => array_element.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/array_element.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{complex.wgsl.expected.hlsl => complex.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/complex.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{for_loop_continuing.wgsl.expected.hlsl => for_loop_continuing.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/for_loop_continuing.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{for_loop_initializer.wgsl.expected.hlsl => for_loop_initializer.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/for_loop_initializer.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/function.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/private.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{storage.wgsl.expected.hlsl => storage.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/storage.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{vector_component.wgsl.expected.hlsl => vector_component.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/vector_component.wgsl.expected.fxc.hlsl rename test/tint/statements/decrement/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/decrement/workgroup.wgsl.expected.fxc.hlsl rename test/tint/statements/for/{basic.wgsl.expected.hlsl => basic.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/basic.wgsl.expected.fxc.hlsl rename test/tint/statements/for/{complex.wgsl.expected.hlsl => complex.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/complex.wgsl.expected.fxc.hlsl rename test/tint/statements/for/condition/{array_ctor.wgsl.expected.hlsl => array_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/condition/array_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/condition/{basic.wgsl.expected.hlsl => basic.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/condition/basic.wgsl.expected.fxc.hlsl rename test/tint/statements/for/condition/{struct_ctor.wgsl.expected.hlsl => struct_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/condition/struct_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/continuing/{array_ctor.wgsl.expected.hlsl => array_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/continuing/array_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/continuing/{basic.wgsl.expected.hlsl => basic.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/continuing/basic.wgsl.expected.fxc.hlsl rename test/tint/statements/for/continuing/{struct_ctor.wgsl.expected.hlsl => struct_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/continuing/struct_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/{empty.wgsl.expected.hlsl => empty.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/empty.wgsl.expected.fxc.hlsl rename test/tint/statements/for/initializer/{array_ctor.wgsl.expected.hlsl => array_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/initializer/array_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/initializer/{basic.wgsl.expected.hlsl => basic.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/initializer/basic.wgsl.expected.fxc.hlsl rename test/tint/statements/for/initializer/{struct_ctor.wgsl.expected.hlsl => struct_ctor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/initializer/struct_ctor.wgsl.expected.fxc.hlsl rename test/tint/statements/for/{scoping.wgsl.expected.hlsl => scoping.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/for/scoping.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{array_element.wgsl.expected.hlsl => array_element.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/array_element.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{complex.wgsl.expected.hlsl => complex.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/complex.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{for_loop_continuing.wgsl.expected.hlsl => for_loop_continuing.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/for_loop_continuing.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{for_loop_initializer.wgsl.expected.hlsl => for_loop_initializer.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/for_loop_initializer.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/function.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/private.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{storage.wgsl.expected.hlsl => storage.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/storage.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{vector_component.wgsl.expected.hlsl => vector_component.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/vector_component.wgsl.expected.fxc.hlsl rename test/tint/statements/increment/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/increment/workgroup.wgsl.expected.fxc.hlsl rename test/tint/statements/switch/{common.wgsl.expected.hlsl => common.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/switch/common.wgsl.expected.fxc.hlsl rename test/tint/statements/switch/{fallthrough.wgsl.expected.hlsl => fallthrough.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/switch/fallthrough.wgsl.expected.fxc.hlsl rename test/tint/statements/switch/{only_default_case.wgsl.expected.hlsl => only_default_case.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/statements/switch/only_default_case.wgsl.expected.fxc.hlsl rename test/tint/struct/{type_constructor.wgsl.expected.hlsl => type_constructor.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/struct/type_constructor.wgsl.expected.fxc.hlsl rename test/tint/types/{function_scope_declarations.wgsl.expected.hlsl => function_scope_declarations.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/function_scope_declarations.wgsl.expected.fxc.hlsl rename test/tint/types/{function_scope_var_conversions.wgsl.expected.hlsl => function_scope_var_conversions.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/function_scope_var_conversions.wgsl.expected.fxc.hlsl rename test/tint/types/{module_scope_const.wgsl.expected.hlsl => module_scope_const.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/module_scope_const.wgsl.expected.fxc.hlsl rename test/tint/types/{module_scope_var.wgsl.expected.hlsl => module_scope_var.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/module_scope_var.wgsl.expected.fxc.hlsl rename test/tint/types/{module_scope_var_conversions.wgsl.expected.hlsl => module_scope_var_conversions.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/module_scope_var_conversions.wgsl.expected.fxc.hlsl rename test/tint/types/{module_scope_var_initializers.wgsl.expected.hlsl => module_scope_var_initializers.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/module_scope_var_initializers.wgsl.expected.fxc.hlsl rename test/tint/types/{parameters.wgsl.expected.hlsl => parameters.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/parameters.wgsl.expected.fxc.hlsl rename test/tint/types/{return_types.wgsl.expected.hlsl => return_types.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/return_types.wgsl.expected.fxc.hlsl rename test/tint/types/{sampler.wgsl.expected.hlsl => sampler.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/sampler.wgsl.expected.fxc.hlsl rename test/tint/types/{struct_members.wgsl.expected.hlsl => struct_members.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/struct_members.wgsl.expected.fxc.hlsl rename test/tint/types/texture/depth/{2d.wgsl.expected.hlsl => 2d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/depth/2d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/depth/{2d_array.wgsl.expected.hlsl => 2d_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/depth/2d_array.wgsl.expected.fxc.hlsl rename test/tint/types/texture/depth/{cube.wgsl.expected.hlsl => cube.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/depth/cube.wgsl.expected.fxc.hlsl rename test/tint/types/texture/depth/{cube_array.wgsl.expected.hlsl => cube_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/depth/cube_array.wgsl.expected.fxc.hlsl rename test/tint/types/texture/multisampled/{2d.wgsl.expected.hlsl => 2d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/multisampled/2d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{1d.wgsl.expected.hlsl => 1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/1d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{2d.wgsl.expected.hlsl => 2d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/2d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{2d_array.wgsl.expected.hlsl => 2d_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/2d_array.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{3d.wgsl.expected.hlsl => 3d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/3d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{cube.wgsl.expected.hlsl => cube.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/cube.wgsl.expected.fxc.hlsl rename test/tint/types/texture/sampled/{cube_array.wgsl.expected.hlsl => cube_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/sampled/cube_array.wgsl.expected.fxc.hlsl rename test/tint/types/texture/storage/{1d.wgsl.expected.hlsl => 1d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/storage/1d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/storage/{2d.wgsl.expected.hlsl => 2d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/storage/2d.wgsl.expected.fxc.hlsl rename test/tint/types/texture/storage/{2d_array.wgsl.expected.hlsl => 2d_array.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/storage/2d_array.wgsl.expected.fxc.hlsl rename test/tint/types/texture/storage/{3d.wgsl.expected.hlsl => 3d.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/types/texture/storage/3d.wgsl.expected.fxc.hlsl rename test/tint/unicode/{comments.wgsl.expected.hlsl => comments.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unicode/comments.wgsl.expected.fxc.hlsl rename test/tint/unicode/{identifiers.wgsl.expected.hlsl => identifiers.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unicode/identifiers.wgsl.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.hlsl => SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.hlsl => SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.hlsl => SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.hlsl => SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.hlsl => SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.hlsl => SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.hlsl => SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.hlsl => SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.fxc.hlsl rename test/tint/unittest/reader/spirv/{SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.hlsl => SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl} (100%) create mode 100644 test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.fxc.hlsl rename test/tint/var/inferred/{function.wgsl.expected.hlsl => function.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/inferred/function.wgsl.expected.fxc.hlsl rename test/tint/var/inferred/{global.wgsl.expected.hlsl => global.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/inferred/global.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/array/{array_i32.wgsl.expected.hlsl => array_i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/array/array_i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/array/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/array/i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/matrix.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/{scalar.wgsl.expected.hlsl => scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/scalar.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/struct.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/function/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/function/vector.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/array/{array_i32.wgsl.expected.hlsl => array_i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/array/array_i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/array/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/array/i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/matrix.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/{scalar.wgsl.expected.hlsl => scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/scalar.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/struct.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/private/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/private/vector.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/array/{array_i32.wgsl.expected.hlsl => array_i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/array/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/array/i32.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/{matrix.wgsl.expected.hlsl => matrix.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/matrix.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/{scalar.wgsl.expected.hlsl => scalar.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/scalar.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/{struct.wgsl.expected.hlsl => struct.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/struct.wgsl.expected.fxc.hlsl rename test/tint/var/initialization/workgroup/{vector.wgsl.expected.hlsl => vector.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/initialization/workgroup/vector.wgsl.expected.fxc.hlsl rename test/tint/var/override/named/no_init/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/named/{val_init/bool.wgsl.expected.hlsl => no_init/bool.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/no_init/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/named/{val_init/f32.wgsl.expected.hlsl => no_init/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/no_init/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/{numbered/val_init/i32.wgsl.expected.hlsl => named/no_init/i32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/no_init/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/{numbered/no_init/u32.wgsl.expected.hlsl => named/no_init/u32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/{zero_init/bool.wgsl.expected.hlsl => val_init/bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/named/val_init/bool.wgsl.expected.fxc.hlsl rename test/tint/var/override/named/{zero_init/f32.wgsl.expected.hlsl => val_init/f32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/{numbered/no_init/f32.wgsl.expected.hlsl => named/val_init/f32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/val_init/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/named/{zero_init/i32.wgsl.expected.hlsl => val_init/i32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/named/val_init/{u32.wgsl.expected.hlsl => u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/named/{zero_init/u32.wgsl.expected.hlsl => val_init/u32.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/var/override/named/zero_init/bool.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/named/zero_init/bool.wgsl.expected.fxc.hlsl rename test/tint/var/override/{numbered/zero_init/f32.wgsl.expected.hlsl => named/zero_init/f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/named/zero_init/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/named/zero_init/i32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/named/zero_init/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/named/zero_init/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/named/zero_init/u32.wgsl.expected.fxc.hlsl rename test/tint/var/override/numbered/no_init/{bool.wgsl.expected.hlsl => bool.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/numbered/{val_init/bool.wgsl.expected.hlsl => no_init/bool.wgsl.expected.fxc.hlsl} (100%) create mode 100644 test/tint/var/override/numbered/no_init/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/no_init/f32.wgsl.expected.fxc.hlsl rename test/tint/var/override/numbered/no_init/{i32.wgsl.expected.hlsl => i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/numbered/no_init/i32.wgsl.expected.fxc.hlsl rename test/tint/var/override/numbered/{val_init/u32.wgsl.expected.hlsl => no_init/u32.wgsl.expected.dxc.hlsl} (100%) rename test/tint/var/override/numbered/{zero_init/u32.wgsl.expected.hlsl => no_init/u32.wgsl.expected.fxc.hlsl} (100%) rename test/tint/var/override/numbered/{zero_init/bool.wgsl.expected.hlsl => val_init/bool.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/numbered/val_init/bool.wgsl.expected.fxc.hlsl rename test/tint/var/override/numbered/val_init/{f32.wgsl.expected.hlsl => f32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/numbered/val_init/f32.wgsl.expected.fxc.hlsl rename test/tint/var/override/numbered/{zero_init/i32.wgsl.expected.hlsl => val_init/i32.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/override/numbered/val_init/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/numbered/val_init/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/val_init/u32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/bool.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/bool.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/f32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/f32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/i32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/i32.wgsl.expected.fxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/u32.wgsl.expected.dxc.hlsl create mode 100644 test/tint/var/override/numbered/zero_init/u32.wgsl.expected.fxc.hlsl rename test/tint/var/uses/{many_workgroup_vars.wgsl.expected.hlsl => many_workgroup_vars.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/uses/many_workgroup_vars.wgsl.expected.fxc.hlsl rename test/tint/var/uses/{private.wgsl.expected.hlsl => private.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/uses/private.wgsl.expected.fxc.hlsl rename test/tint/var/uses/{workgroup.wgsl.expected.hlsl => workgroup.wgsl.expected.dxc.hlsl} (100%) create mode 100644 test/tint/var/uses/workgroup.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/{0.spvasm.expected.hlsl => 0.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/{0.wgsl.expected.hlsl => 0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/{1.spvasm.expected.hlsl => 1.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/{1.wgsl.expected.hlsl => 1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/{1.spvasm.expected.hlsl => 1.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/{1.wgsl.expected.hlsl => 1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/{0.spvasm.expected.hlsl => 0.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/{0.wgsl.expected.hlsl => 0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/{0.spvasm.expected.hlsl => 0.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/{0.wgsl.expected.hlsl => 0.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/{1.spvasm.expected.hlsl => 1.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/{1.wgsl.expected.hlsl => 1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/{1.spvasm.expected.hlsl => 1.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/{1.wgsl.expected.hlsl => 1.wgsl.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/{0.spvasm.expected.hlsl => 0.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/{0.wgsl.expected.hlsl => 0.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/write-before-break/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/write-before-break/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.dxc.hlsl} (100%) create mode 100755 test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.fxc.hlsl rename test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/{0-opt.spvasm.expected.hlsl => 0-opt.spvasm.expected.fxc.hlsl} (100%) rename test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/{0-opt.wgsl.expected.hlsl => 0-opt.wgsl.expected.fxc.hlsl} (100%) delete mode 100644 test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.spvasm.expected.glsl delete mode 100644 test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl.expected.glsl diff --git a/infra/kokoro/windows/build.bat b/infra/kokoro/windows/build.bat index 6912c40e2d..811aa9ab5b 100644 --- a/infra/kokoro/windows/build.bat +++ b/infra/kokoro/windows/build.bat @@ -142,20 +142,12 @@ tint_unittests.exe || goto :error call :status "Testing test/tint/test-all.sh" @echo on cd /d %SRC_DIR% || goto :error -rem Run tests with DXC and Metal validation +rem Run tests with DXC, FXC and Metal validation set OLD_PATH=%PATH% set PATH=C:\Program Files\Metal Developer Tools\macos\bin;%PATH% where metal.exe -set PATH=%DXC_PATH%;%OLD_PATH% -where dxc.exe dxil.dll +set PATH=%DXC_PATH%;%D3DCOMPILER_PATH%;%OLD_PATH% call git bash -- ./test/tint/test-all.sh ../dawn-build/tint.exe --verbose || goto :error -@echo on -set PATH=%OLD_PATH% -rem Run again to test with FXC validation -set PATH=%D3DCOMPILER_PATH%;%OLD_PATH% -where d3dcompiler_47.dll -call git bash -- ./test/tint/test-all.sh ../dawn-build/tint.exe --verbose --format hlsl --fxc || goto :error -@echo on set PATH=%OLD_PATH% @echo off diff --git a/src/tint/cmd/main.cc b/src/tint/cmd/main.cc index 941b399456..b948e692a9 100644 --- a/src/tint/cmd/main.cc +++ b/src/tint/cmd/main.cc @@ -67,6 +67,7 @@ enum class Format { struct Options { bool show_help = false; + bool verbose = false; std::string input_filename; std::string output_file = "-"; // Default to stdout @@ -84,7 +85,7 @@ struct Options { std::vector transforms; - bool use_fxc = false; + std::string fxc_path; std::string dxc_path; std::string xcrun_path; std::unordered_map overrides; @@ -120,13 +121,13 @@ ${transforms} used for num_workgroups in HLSL. If not specified, then default to binding 0 of the largest used group plus 1, or group 0 if no resource bound. - --validate -- Validates the generated shader - --fxc -- Ask to validate HLSL output using FXC instead of DXC. - When specified, automatically enables --validate + --validate -- Validates the generated shader with all available validators + --fxc -- Path to FXC dll, used to validate HLSL output. + When specified, automatically enables HLSL validation with FXC --dxc -- Path to DXC executable, used to validate HLSL output. - When specified, automatically enables --validate + When specified, automatically enables HLSL validation with DXC --xcrun -- Path to xcrun executable, used to validate MSL output. - When specified, automatically enables --validate + When specified, automatically enables MSL validation --overrides -- Override values as IDENTIFIER=VALUE, comma-separated. )"; @@ -397,6 +398,8 @@ bool ParseArgs(const std::vector& args, Options* opts) { } else if (arg == "-h" || arg == "--help") { opts->show_help = true; + } else if (arg == "-v" || arg == "--verbose") { + opts->verbose = true; } else if (arg == "--transform") { ++i; if (i >= args.size()) { @@ -415,8 +418,12 @@ bool ParseArgs(const std::vector& args, Options* opts) { } else if (arg == "--validate") { opts->validate = true; } else if (arg == "--fxc") { - opts->validate = true; - opts->use_fxc = true; + ++i; + if (i >= args.size()) { + std::cerr << "Missing value for " << arg << std::endl; + return false; + } + opts->fxc_path = args[i]; } else if (arg == "--dxc") { ++i; if (i >= args.size()) { @@ -424,7 +431,6 @@ bool ParseArgs(const std::vector& args, Options* opts) { return false; } opts->dxc_path = args[i]; - opts->validate = true; } else if (arg == "--xcrun") { ++i; if (i >= args.size()) { @@ -801,29 +807,71 @@ bool GenerateHlsl(const tint::Program* program, const Options& options) { return false; } - if (options.validate) { - tint::val::Result res; - if (options.use_fxc) { -#ifdef _WIN32 - res = tint::val::HlslUsingFXC(result.hlsl, result.entry_points); -#else - res.failed = true; - res.output = "FXC can only be used on Windows. Sorry :X"; -#endif // _WIN32 - } else { + // If --fxc or --dxc was passed, then we must explicitly find and validate with that respective + // compiler. + const bool must_validate_dxc = !options.dxc_path.empty(); + const bool must_validate_fxc = !options.fxc_path.empty(); + if (options.validate || must_validate_dxc || must_validate_fxc) { + tint::val::Result dxc_res; + bool dxc_found = false; + if (options.validate || must_validate_dxc) { auto dxc = tint::utils::Command::LookPath(options.dxc_path.empty() ? "dxc" : options.dxc_path); if (dxc.Found()) { - res = tint::val::HlslUsingDXC(dxc.Path(), result.hlsl, result.entry_points); - } else { - res.failed = true; - res.output = "DXC executable not found. Cannot validate"; + dxc_found = true; + dxc_res = tint::val::HlslUsingDXC(dxc.Path(), result.hlsl, result.entry_points); + } else if (must_validate_dxc) { + // DXC was explicitly requested. Error if it could not be found. + dxc_res.failed = true; + dxc_res.output = + "DXC executable '" + options.dxc_path + "' not found. Cannot validate"; } } - if (res.failed) { - std::cerr << res.output << std::endl; + + tint::val::Result fxc_res; + bool fxc_found = false; + if (options.validate || must_validate_fxc) { + auto fxc = tint::utils::Command::LookPath( + options.fxc_path.empty() ? tint::val::kFxcDLLName : options.fxc_path); + +#ifdef _WIN32 + if (fxc.Found()) { + fxc_found = true; + fxc_res = tint::val::HlslUsingFXC(fxc.Path(), result.hlsl, result.entry_points); + } else if (must_validate_fxc) { + // FXC was explicitly requested. Error if it could not be found. + fxc_res.failed = true; + fxc_res.output = "FXC DLL '" + options.fxc_path + "' not found. Cannot validate"; + } +#else + if (must_validate_dxc) { + fxc_res.failed = true; + fxc_res.output = "FXC can only be used on Windows."; + } +#endif // _WIN32 + } + + if (fxc_res.failed) { + std::cerr << "FXC validation failure:" << std::endl << fxc_res.output << std::endl; + } + if (dxc_res.failed) { + std::cerr << "DXC validation failure:" << std::endl << dxc_res.output << std::endl; + } + if (fxc_res.failed || dxc_res.failed) { return false; } + if (!fxc_found && !dxc_found) { + std::cerr << "Couldn't find FXC or DXC. Cannot validate" << std::endl; + return false; + } + if (options.verbose) { + if (fxc_found && !fxc_res.failed) { + std::cout << "Passed FXC validation" << std::endl; + } + if (dxc_found && !dxc_res.failed) { + std::cout << "Passed DXC validation" << std::endl; + } + } } return true; diff --git a/src/tint/utils/io/command_windows.cc b/src/tint/utils/io/command_windows.cc index f953a85776..36c39c6f03 100644 --- a/src/tint/utils/io/command_windows.cc +++ b/src/tint/utils/io/command_windows.cc @@ -16,9 +16,12 @@ #define WIN32_LEAN_AND_MEAN 1 #include +#include #include #include +#include "src/tint/utils/defer.h" + namespace tint::utils { namespace { @@ -97,9 +100,34 @@ class Pipe { Handle write; }; +/// Queries whether the file at the given path is an executable or DLL. bool ExecutableExists(const std::string& path) { - DWORD type = 0; - return GetBinaryTypeA(path.c_str(), &type); + auto file = Handle(CreateFileA(path.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, + FILE_ATTRIBUTE_READONLY, NULL)); + if (!file) { + return false; + } + + auto map = Handle(CreateFileMappingA(file, NULL, PAGE_READONLY, 0, 0, NULL)); + if (map == INVALID_HANDLE_VALUE) { + return false; + } + + void* addr_header = MapViewOfFileEx(map, FILE_MAP_READ, 0, 0, 0, NULL); + + // Dynamically obtain the address of, and call ImageNtHeader. This is done to avoid tint.exe + // needing to statically link Dbghelp.lib. + static auto* dbg_help = LoadLibraryA("Dbghelp.dll"); // Leaks, but who cares? + if (dbg_help) { + if (FARPROC proc = GetProcAddress(dbg_help, "ImageNtHeader")) { + using ImageNtHeaderPtr = decltype(&ImageNtHeader); + auto* image_nt_header = reinterpret_cast(proc)(addr_header); + return image_nt_header != nullptr; + } + } + + // Couldn't call ImageNtHeader, assume it is executable + return false; } std::string FindExecutable(const std::string& name) { @@ -187,7 +215,8 @@ Command::Output Command::Exec(std::initializer_list arguments) cons &si, // Pointer to STARTUPINFO structure &pi)) { // Pointer to PROCESS_INFORMATION structure Output out; - out.err = "Command::Exec() CreateProcess() failed"; + out.err = "Command::Exec() CreateProcess('" + args.str() + "') failed"; + out.error_code = 1; return out; } diff --git a/src/tint/val/hlsl.cc b/src/tint/val/hlsl.cc index 164152d8f8..a2998d8948 100644 --- a/src/tint/val/hlsl.cc +++ b/src/tint/val/hlsl.cc @@ -95,13 +95,15 @@ Result HlslUsingDXC(const std::string& dxc_path, } #ifdef _WIN32 -Result HlslUsingFXC(const std::string& source, const EntryPointList& entry_points) { +Result HlslUsingFXC(const std::string& fxc_path, + const std::string& source, + const EntryPointList& entry_points) { Result result; // This library leaks if an error happens in this function, but it is ok // because it is loaded at most once, and the executables using HlslUsingFXC // are short-lived. - HMODULE fxcLib = LoadLibraryA("d3dcompiler_47.dll"); + HMODULE fxcLib = LoadLibraryA(fxc_path.c_str()); if (fxcLib == nullptr) { result.output = "Couldn't load FXC"; result.failed = true; diff --git a/src/tint/val/val.h b/src/tint/val/val.h index 4b3fff9cb2..dae6fcacf9 100644 --- a/src/tint/val/val.h +++ b/src/tint/val/val.h @@ -30,6 +30,9 @@ namespace tint::val { using EntryPointList = std::vector>; +/// Name of the FXC compiler DLL +static constexpr const char kFxcDLLName[] = "d3dcompiler_47.dll"; + /// The return structure of Validate() struct Result { /// True if validation passed @@ -51,10 +54,13 @@ Result HlslUsingDXC(const std::string& dxc_path, #ifdef _WIN32 /// Hlsl attempts to compile the shader with FXC, verifying that the shader /// compiles successfully. +/// @param fxc_path path to the FXC DLL /// @param source the generated HLSL source /// @param entry_points the list of entry points to validate /// @return the result of the compile -Result HlslUsingFXC(const std::string& source, const EntryPointList& entry_points); +Result HlslUsingFXC(const std::string& fxc_path, + const std::string& source, + const EntryPointList& entry_points); #endif // _WIN32 /// Msl attempts to compile the shader with the Metal Shader Compiler, diff --git a/test/tint/access/let/matrix.spvasm.expected.hlsl b/test/tint/access/let/matrix.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/access/let/matrix.spvasm.expected.hlsl rename to test/tint/access/let/matrix.spvasm.expected.dxc.hlsl diff --git a/test/tint/access/let/matrix.spvasm.expected.fxc.hlsl b/test/tint/access/let/matrix.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a78b2e6987 --- /dev/null +++ b/test/tint/access/let/matrix.spvasm.expected.fxc.hlsl @@ -0,0 +1,10 @@ +void main_1() { + const float x_24 = 5.0f; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/access/let/matrix.wgsl.expected.hlsl b/test/tint/access/let/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/access/let/matrix.wgsl.expected.hlsl rename to test/tint/access/let/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/access/let/matrix.wgsl.expected.fxc.hlsl b/test/tint/access/let/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38129cf901 --- /dev/null +++ b/test/tint/access/let/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +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 float f = v[1]; + return; +} diff --git a/test/tint/access/let/vector.spvasm.expected.hlsl b/test/tint/access/let/vector.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/access/let/vector.spvasm.expected.hlsl rename to test/tint/access/let/vector.spvasm.expected.dxc.hlsl diff --git a/test/tint/access/let/vector.spvasm.expected.fxc.hlsl b/test/tint/access/let/vector.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..d5e689bb00 --- /dev/null +++ b/test/tint/access/let/vector.spvasm.expected.fxc.hlsl @@ -0,0 +1,12 @@ +void main_1() { + const float x_11 = 2.0f; + const float2 x_13 = float2(1.0f, 3.0f); + const float3 x_14 = float3(1.0f, 3.0f, 2.0f); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/access/let/vector.wgsl.expected.hlsl b/test/tint/access/let/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/access/let/vector.wgsl.expected.hlsl rename to test/tint/access/let/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/access/let/vector.wgsl.expected.fxc.hlsl b/test/tint/access/let/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d86c8eda34 --- /dev/null +++ b/test/tint/access/let/vector.wgsl.expected.fxc.hlsl @@ -0,0 +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; + return; +} diff --git a/test/tint/access/var/matrix.spvasm.expected.hlsl b/test/tint/access/var/matrix.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/access/var/matrix.spvasm.expected.hlsl rename to test/tint/access/var/matrix.spvasm.expected.dxc.hlsl diff --git a/test/tint/access/var/matrix.spvasm.expected.fxc.hlsl b/test/tint/access/var/matrix.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..375ea5377c --- /dev/null +++ b/test/tint/access/var/matrix.spvasm.expected.fxc.hlsl @@ -0,0 +1,12 @@ +void main_1() { + 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; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/access/var/matrix.wgsl.expected.hlsl b/test/tint/access/var/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/access/var/matrix.wgsl.expected.hlsl rename to test/tint/access/var/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/access/var/matrix.wgsl.expected.fxc.hlsl b/test/tint/access/var/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b402c70bf5 --- /dev/null +++ b/test/tint/access/var/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void main() { + float3x3 m = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + const float3 v = m[1]; + const float f = v[1]; + return; +} diff --git a/test/tint/access/var/vector.spvasm.expected.hlsl b/test/tint/access/var/vector.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/access/var/vector.spvasm.expected.hlsl rename to test/tint/access/var/vector.spvasm.expected.dxc.hlsl diff --git a/test/tint/access/var/vector.spvasm.expected.fxc.hlsl b/test/tint/access/var/vector.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..cc8ef6b895 --- /dev/null +++ b/test/tint/access/var/vector.spvasm.expected.fxc.hlsl @@ -0,0 +1,15 @@ +void main_1() { + 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); + const float3 x_18 = v; + const float3 x_19 = float3(x_18.x, x_18.z, x_18.y); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/access/var/vector.wgsl.expected.hlsl b/test/tint/access/var/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/access/var/vector.wgsl.expected.hlsl rename to test/tint/access/var/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/access/var/vector.wgsl.expected.fxc.hlsl b/test/tint/access/var/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b9f393c2e --- /dev/null +++ b/test/tint/access/var/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void main() { + float3 v = float3(0.0f, 0.0f, 0.0f); + const float scalar = v.y; + const float2 swizzle2 = v.xz; + const float3 swizzle3 = v.xzy; + return; +} diff --git a/test/tint/array/assign_to_function_var.wgsl.expected.hlsl b/test/tint/array/assign_to_function_var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/assign_to_function_var.wgsl.expected.hlsl rename to test/tint/array/assign_to_function_var.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/assign_to_function_var.wgsl.expected.fxc.hlsl b/test/tint/array/assign_to_function_var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c6720324e1 --- /dev/null +++ b/test/tint/array/assign_to_function_var.wgsl.expected.fxc.hlsl @@ -0,0 +1,70 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int4 arr[4]; +}; + +static int4 src_private[4] = (int4[4])0; +groupshared int4 src_workgroup[4]; +cbuffer cbuffer_src_uniform : register(b0, space0) { + uint4 src_uniform[4]; +}; +RWByteAddressBuffer src_storage : register(u1, space0); + +typedef int4 ret_arr_ret[4]; +ret_arr_ret ret_arr() { + const int4 tint_symbol_6[4] = (int4[4])0; + return tint_symbol_6; +} + +S ret_struct_arr() { + const S tint_symbol_7 = (S)0; + return tint_symbol_7; +} + +typedef int4 tint_symbol_2_ret[4]; +tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + const uint scalar_offset = ((offset + (i * 16u))) / 4; + arr_1[i] = asint(buffer[scalar_offset / 4]); + } + } + return arr_1; +} + +typedef int4 tint_symbol_4_ret[4]; +tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { + int4 arr_2[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr_2[i_1] = asint(buffer.Load4((offset + (i_1 * 16u)))); + } + } + return arr_2; +} + +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] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx}; + tint_symbol = tint_symbol_8; + tint_symbol = src_param; + tint_symbol = ret_arr(); + const int4 src_let[4] = (int4[4])0; + tint_symbol = src_let; + tint_symbol = src_function; + tint_symbol = src_private; + tint_symbol = src_workgroup; + const S tint_symbol_1 = ret_struct_arr(); + tint_symbol = tint_symbol_1.arr; + tint_symbol = tint_symbol_2(src_uniform, 0u); + tint_symbol = tint_symbol_4(src_storage, 0u); + int dst_nested[4][3][2] = (int[4][3][2])0; + int src_nested[4][3][2] = (int[4][3][2])0; + dst_nested = src_nested; +} diff --git a/test/tint/array/assign_to_private_var.wgsl.expected.hlsl b/test/tint/array/assign_to_private_var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/assign_to_private_var.wgsl.expected.hlsl rename to test/tint/array/assign_to_private_var.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/assign_to_private_var.wgsl.expected.fxc.hlsl b/test/tint/array/assign_to_private_var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..49525420d7 --- /dev/null +++ b/test/tint/array/assign_to_private_var.wgsl.expected.fxc.hlsl @@ -0,0 +1,70 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int4 arr[4]; +}; + +static int4 src_private[4] = (int4[4])0; +groupshared int4 src_workgroup[4]; +cbuffer cbuffer_src_uniform : register(b0, space0) { + uint4 src_uniform[4]; +}; +RWByteAddressBuffer src_storage : register(u1, space0); +static int4 tint_symbol[4] = (int4[4])0; +static int dst_nested[4][3][2] = (int[4][3][2])0; + +typedef int4 ret_arr_ret[4]; +ret_arr_ret ret_arr() { + const int4 tint_symbol_6[4] = (int4[4])0; + return tint_symbol_6; +} + +S ret_struct_arr() { + const S tint_symbol_7 = (S)0; + return tint_symbol_7; +} + +typedef int4 tint_symbol_2_ret[4]; +tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + const uint scalar_offset = ((offset + (i * 16u))) / 4; + arr_1[i] = asint(buffer[scalar_offset / 4]); + } + } + return arr_1; +} + +typedef int4 tint_symbol_4_ret[4]; +tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { + int4 arr_2[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr_2[i_1] = asint(buffer.Load4((offset + (i_1 * 16u)))); + } + } + return arr_2; +} + +void foo(int4 src_param[4]) { + int4 src_function[4] = (int4[4])0; + 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(); + const int4 src_let[4] = (int4[4])0; + tint_symbol = src_let; + tint_symbol = src_function; + tint_symbol = src_private; + tint_symbol = src_workgroup; + const S tint_symbol_1 = ret_struct_arr(); + tint_symbol = tint_symbol_1.arr; + tint_symbol = tint_symbol_2(src_uniform, 0u); + tint_symbol = tint_symbol_4(src_storage, 0u); + int src_nested[4][3][2] = (int[4][3][2])0; + dst_nested = src_nested; +} diff --git a/test/tint/array/assign_to_storage_var.wgsl.expected.hlsl b/test/tint/array/assign_to_storage_var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/assign_to_storage_var.wgsl.expected.hlsl rename to test/tint/array/assign_to_storage_var.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/assign_to_storage_var.wgsl.expected.fxc.hlsl b/test/tint/array/assign_to_storage_var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1455343334 --- /dev/null +++ b/test/tint/array/assign_to_storage_var.wgsl.expected.fxc.hlsl @@ -0,0 +1,107 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int4 arr[4]; +}; + +static int4 src_private[4] = (int4[4])0; +groupshared int4 src_workgroup[4]; +cbuffer cbuffer_src_uniform : register(b0, space0) { + uint4 src_uniform[4]; +}; +RWByteAddressBuffer src_storage : register(u1, space0); +RWByteAddressBuffer tint_symbol : register(u2, space0); +RWByteAddressBuffer dst_nested : register(u3, space0); + +typedef int4 ret_arr_ret[4]; +ret_arr_ret ret_arr() { + const int4 tint_symbol_13[4] = (int4[4])0; + return tint_symbol_13; +} + +S ret_struct_arr() { + const S tint_symbol_14 = (S)0; + return tint_symbol_14; +} + +void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, int4 value[4]) { + int4 array[4] = value; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + buffer.Store4((offset + (i * 16u)), asuint(array[i])); + } + } +} + +typedef int4 tint_symbol_5_ret[4]; +tint_symbol_5_ret tint_symbol_5(uint4 buffer[4], uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + const uint scalar_offset = ((offset + (i_1 * 16u))) / 4; + arr_1[i_1] = asint(buffer[scalar_offset / 4]); + } + } + return arr_1; +} + +typedef int4 tint_symbol_7_ret[4]; +tint_symbol_7_ret tint_symbol_7(RWByteAddressBuffer buffer, uint offset) { + int4 arr_2[4] = (int4[4])0; + { + [loop] for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) { + arr_2[i_2] = asint(buffer.Load4((offset + (i_2 * 16u)))); + } + } + return arr_2; +} + +void tint_symbol_11(RWByteAddressBuffer buffer, uint offset, int value[2]) { + int array_3[2] = value; + { + [loop] for(uint i_3 = 0u; (i_3 < 2u); i_3 = (i_3 + 1u)) { + buffer.Store((offset + (i_3 * 4u)), asuint(array_3[i_3])); + } + } +} + +void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, int value[3][2]) { + int array_2[3][2] = value; + { + [loop] for(uint i_4 = 0u; (i_4 < 3u); i_4 = (i_4 + 1u)) { + tint_symbol_11(buffer, (offset + (i_4 * 8u)), array_2[i_4]); + } + } +} + +void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, int value[4][3][2]) { + int array_1[4][3][2] = value; + { + [loop] for(uint i_5 = 0u; (i_5 < 4u); i_5 = (i_5 + 1u)) { + tint_symbol_10(buffer, (offset + (i_5 * 24u)), array_1[i_5]); + } + } +} + +void foo(int4 src_param[4]) { + int4 src_function[4] = (int4[4])0; + 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(); + tint_symbol_3(tint_symbol, 0u, tint_symbol_1); + const int4 src_let[4] = (int4[4])0; + tint_symbol_3(tint_symbol, 0u, src_let); + tint_symbol_3(tint_symbol, 0u, src_function); + tint_symbol_3(tint_symbol, 0u, src_private); + tint_symbol_3(tint_symbol, 0u, src_workgroup); + const S tint_symbol_2 = ret_struct_arr(); + tint_symbol_3(tint_symbol, 0u, tint_symbol_2.arr); + tint_symbol_3(tint_symbol, 0u, tint_symbol_5(src_uniform, 0u)); + tint_symbol_3(tint_symbol, 0u, tint_symbol_7(src_storage, 0u)); + int src_nested[4][3][2] = (int[4][3][2])0; + tint_symbol_9(dst_nested, 0u, src_nested); +} diff --git a/test/tint/array/assign_to_subexpr.wgsl.expected.hlsl b/test/tint/array/assign_to_subexpr.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/assign_to_subexpr.wgsl.expected.hlsl rename to test/tint/array/assign_to_subexpr.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/assign_to_subexpr.wgsl.expected.fxc.hlsl b/test/tint/array/assign_to_subexpr.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38802ee51b --- /dev/null +++ b/test/tint/array/assign_to_subexpr.wgsl.expected.fxc.hlsl @@ -0,0 +1,20 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int arr[4]; +}; + +void foo() { + const int src[4] = (int[4])0; + int tint_symbol[4] = (int[4])0; + S dst_struct = (S)0; + int dst_array[2][4] = (int[2][4])0; + dst_struct.arr = src; + dst_array[1] = src; + tint_symbol = src; + dst_struct.arr = src; + dst_array[0] = src; +} diff --git a/test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl b/test/tint/array/assign_to_workgroup_var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl rename to test/tint/array/assign_to_workgroup_var.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/assign_to_workgroup_var.wgsl.expected.fxc.hlsl b/test/tint/array/assign_to_workgroup_var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f55b619ea3 --- /dev/null +++ b/test/tint/array/assign_to_workgroup_var.wgsl.expected.fxc.hlsl @@ -0,0 +1,70 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int4 arr[4]; +}; + +static int4 src_private[4] = (int4[4])0; +groupshared int4 src_workgroup[4]; +cbuffer cbuffer_src_uniform : register(b0, space0) { + uint4 src_uniform[4]; +}; +RWByteAddressBuffer src_storage : register(u1, space0); +groupshared int4 tint_symbol[4]; +groupshared int dst_nested[4][3][2]; + +typedef int4 ret_arr_ret[4]; +ret_arr_ret ret_arr() { + const int4 tint_symbol_6[4] = (int4[4])0; + return tint_symbol_6; +} + +S ret_struct_arr() { + const S tint_symbol_7 = (S)0; + return tint_symbol_7; +} + +typedef int4 tint_symbol_2_ret[4]; +tint_symbol_2_ret tint_symbol_2(uint4 buffer[4], uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + const uint scalar_offset = ((offset + (i * 16u))) / 4; + arr_1[i] = asint(buffer[scalar_offset / 4]); + } + } + return arr_1; +} + +typedef int4 tint_symbol_4_ret[4]; +tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { + int4 arr_2[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr_2[i_1] = asint(buffer.Load4((offset + (i_1 * 16u)))); + } + } + return arr_2; +} + +void foo(int4 src_param[4]) { + int4 src_function[4] = (int4[4])0; + 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(); + const int4 src_let[4] = (int4[4])0; + tint_symbol = src_let; + tint_symbol = src_function; + tint_symbol = src_private; + tint_symbol = src_workgroup; + const S tint_symbol_1 = ret_struct_arr(); + tint_symbol = tint_symbol_1.arr; + tint_symbol = tint_symbol_2(src_uniform, 0u); + tint_symbol = tint_symbol_4(src_storage, 0u); + int src_nested[4][3][2] = (int[4][3][2])0; + dst_nested = src_nested; +} diff --git a/test/tint/array/function_parameter.wgsl.expected.hlsl b/test/tint/array/function_parameter.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/function_parameter.wgsl.expected.hlsl rename to test/tint/array/function_parameter.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/function_parameter.wgsl.expected.fxc.hlsl b/test/tint/array/function_parameter.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2e7f4146a --- /dev/null +++ b/test/tint/array/function_parameter.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +float f1(float a[4]) { + return a[3]; +} + +float f2(float a[3][4]) { + return a[2][3]; +} + +float f3(float a[2][3][4]) { + return a[1][2][3]; +} + +[numthreads(1, 1, 1)] +void main() { + const float a1[4] = (float[4])0; + const float a2[3][4] = (float[3][4])0; + const float a3[2][3][4] = (float[2][3][4])0; + const float v1 = f1(a1); + const float v2 = f2(a2); + const float v3 = f3(a3); + return; +} diff --git a/test/tint/array/function_return_type.wgsl.expected.hlsl b/test/tint/array/function_return_type.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/function_return_type.wgsl.expected.hlsl rename to test/tint/array/function_return_type.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/function_return_type.wgsl.expected.fxc.hlsl b/test/tint/array/function_return_type.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..954b06007c --- /dev/null +++ b/test/tint/array/function_return_type.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +typedef float f1_ret[4]; +f1_ret f1() { + const float tint_symbol_5[4] = (float[4])0; + return tint_symbol_5; +} + +typedef float f2_ret[3][4]; +f2_ret f2() { + const float tint_symbol[4] = f1(); + const float tint_symbol_1[4] = f1(); + const float tint_symbol_2[4] = f1(); + const float tint_symbol_6[3][4] = {tint_symbol, tint_symbol_1, tint_symbol_2}; + return tint_symbol_6; +} + +typedef float f3_ret[2][3][4]; +f3_ret f3() { + const float tint_symbol_3[3][4] = f2(); + const float tint_symbol_4[3][4] = f2(); + const float tint_symbol_7[2][3][4] = {tint_symbol_3, tint_symbol_4}; + return tint_symbol_7; +} + +[numthreads(1, 1, 1)] +void main() { + const float a1[4] = f1(); + const float a2[3][4] = f2(); + const float a3[2][3][4] = f3(); + return; +} diff --git a/test/tint/array/size.wgsl.expected.hlsl b/test/tint/array/size.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/size.wgsl.expected.hlsl rename to test/tint/array/size.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/size.wgsl.expected.fxc.hlsl b/test/tint/array/size.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4753dde800 --- /dev/null +++ b/test/tint/array/size.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void main() { + float signed_literal[4] = (float[4])0; + float unsigned_literal[4] = (float[4])0; + float signed_constant[4] = (float[4])0; + float unsigned_constant[4] = (float[4])0; + signed_literal = unsigned_constant; + signed_constant = unsigned_literal; + return; +} diff --git a/test/tint/array/strides.spvasm.expected.hlsl b/test/tint/array/strides.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/array/strides.spvasm.expected.hlsl rename to test/tint/array/strides.spvasm.expected.dxc.hlsl diff --git a/test/tint/array/strides.spvasm.expected.fxc.hlsl b/test/tint/array/strides.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..910a49a935 --- /dev/null +++ b/test/tint/array/strides.spvasm.expected.fxc.hlsl @@ -0,0 +1,103 @@ +struct strided_arr { + float el; +}; +struct strided_arr_1 { + strided_arr el[3][2]; +}; + +RWByteAddressBuffer s : register(u0, space0); + +strided_arr tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { + const strided_arr tint_symbol_12 = {asfloat(buffer.Load((offset + 0u)))}; + return tint_symbol_12; +} + +typedef strided_arr tint_symbol_3_ret[2]; +tint_symbol_3_ret tint_symbol_3(RWByteAddressBuffer buffer, uint offset) { + strided_arr arr[2] = (strided_arr[2])0; + { + [loop] for(uint i = 0u; (i < 2u); i = (i + 1u)) { + arr[i] = tint_symbol_4(buffer, (offset + (i * 8u))); + } + } + return arr; +} + +typedef strided_arr tint_symbol_2_ret[3][2]; +tint_symbol_2_ret tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + strided_arr arr_1[3][2] = (strided_arr[3][2])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 3u); i_1 = (i_1 + 1u)) { + arr_1[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 16u))); + } + } + return arr_1; +} + +strided_arr_1 tint_symbol_1(RWByteAddressBuffer buffer, uint offset) { + const strided_arr_1 tint_symbol_13 = {tint_symbol_2(buffer, (offset + 0u))}; + return tint_symbol_13; +} + +typedef strided_arr_1 tint_symbol_ret[4]; +tint_symbol_ret tint_symbol(RWByteAddressBuffer buffer, uint offset) { + strided_arr_1 arr_2[4] = (strided_arr_1[4])0; + { + [loop] for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) { + arr_2[i_2] = tint_symbol_1(buffer, (offset + (i_2 * 128u))); + } + } + return arr_2; +} + +void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, strided_arr value) { + buffer.Store((offset + 0u), asuint(value.el)); +} + +void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, strided_arr value[2]) { + strided_arr array_2[2] = value; + { + [loop] for(uint i_3 = 0u; (i_3 < 2u); i_3 = (i_3 + 1u)) { + tint_symbol_10(buffer, (offset + (i_3 * 8u)), array_2[i_3]); + } + } +} + +void tint_symbol_8(RWByteAddressBuffer buffer, uint offset, strided_arr value[3][2]) { + strided_arr array_1[3][2] = value; + { + [loop] for(uint i_4 = 0u; (i_4 < 3u); i_4 = (i_4 + 1u)) { + tint_symbol_9(buffer, (offset + (i_4 * 16u)), array_1[i_4]); + } + } +} + +void tint_symbol_7(RWByteAddressBuffer buffer, uint offset, strided_arr_1 value) { + tint_symbol_8(buffer, (offset + 0u), value.el); +} + +void tint_symbol_6(RWByteAddressBuffer buffer, uint offset, strided_arr_1 value[4]) { + strided_arr_1 array[4] = value; + { + [loop] for(uint i_5 = 0u; (i_5 < 4u); i_5 = (i_5 + 1u)) { + tint_symbol_7(buffer, (offset + (i_5 * 128u)), array[i_5]); + } + } +} + +void f_1() { + const strided_arr_1 x_19[4] = tint_symbol(s, 0u); + const strided_arr x_24[3][2] = tint_symbol_2(s, 384u); + const strided_arr x_28[2] = tint_symbol_3(s, 416u); + const float x_32 = asfloat(s.Load(424u)); + const strided_arr_1 tint_symbol_14[4] = (strided_arr_1[4])0; + tint_symbol_6(s, 0u, tint_symbol_14); + s.Store(424u, asuint(5.0f)); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/array/type_constructor.wgsl.expected.hlsl b/test/tint/array/type_constructor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/array/type_constructor.wgsl.expected.hlsl rename to test/tint/array/type_constructor.wgsl.expected.dxc.hlsl diff --git a/test/tint/array/type_constructor.wgsl.expected.fxc.hlsl b/test/tint/array/type_constructor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8640324cbc --- /dev/null +++ b/test/tint/array/type_constructor.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +[numthreads(1, 1, 1)] +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 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}; + const int tint_symbol_2[4] = {9, 10, 11, 12}; + const int tint_symbol_3[3][4] = {tint_symbol, tint_symbol_1, tint_symbol_2}; + const int tint_symbol_4[4] = {13, 14, 15, 16}; + const int tint_symbol_5[4] = {17, 18, 19, 20}; + 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_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]}; + const int tint_symbol_11[4] = (int[4])0; + 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 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]; + const int tint_symbol_15[4] = {1, 2, 3, 4}; + 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_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/read.wgsl.expected.hlsl b/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/dynamic_index/read.wgsl.expected.hlsl rename to test/tint/buffer/storage/dynamic_index/read.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..25056c12eb --- /dev/null +++ b/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +ByteAddressBuffer s : register(t0, space0); + +struct tint_symbol_1 { + uint idx : SV_GroupIndex; +}; + +float2x3 tint_symbol_8(ByteAddressBuffer buffer, uint offset) { + return float2x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u)))); +} + +float3x2 tint_symbol_9(ByteAddressBuffer buffer, uint offset) { + return float3x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u)))); +} + +typedef int4 tint_symbol_11_ret[4]; +tint_symbol_11_ret tint_symbol_11(ByteAddressBuffer buffer, uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr_1[i_1] = asint(buffer.Load4((offset + (i_1 * 16u)))); + } + } + return arr_1; +} + +void main_inner(uint idx) { + const int3 a = asint(s.Load3((176u * idx))); + const int b = asint(s.Load(((176u * idx) + 12u))); + const uint3 c = s.Load3(((176u * idx) + 16u)); + const uint d = s.Load(((176u * idx) + 28u)); + const float3 e = asfloat(s.Load3(((176u * idx) + 32u))); + const float f = asfloat(s.Load(((176u * idx) + 44u))); + const float2x3 g = tint_symbol_8(s, ((176u * idx) + 48u)); + const float3x2 h = tint_symbol_9(s, ((176u * idx) + 80u)); + const int4 i[4] = tint_symbol_11(s, ((176u * idx) + 112u)); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.idx); + return; +} diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl rename to test/tint/buffer/storage/dynamic_index/write.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34275cff78 --- /dev/null +++ b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.fxc.hlsl @@ -0,0 +1,44 @@ +RWByteAddressBuffer s : register(u0, space0); + +struct tint_symbol_1 { + uint idx : SV_GroupIndex; +}; + +void tint_symbol_8(RWByteAddressBuffer buffer, uint offset, float2x3 value) { + buffer.Store3((offset + 0u), asuint(value[0u])); + buffer.Store3((offset + 16u), asuint(value[1u])); +} + +void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, float3x2 value) { + buffer.Store2((offset + 0u), asuint(value[0u])); + buffer.Store2((offset + 8u), asuint(value[1u])); + buffer.Store2((offset + 16u), asuint(value[2u])); +} + +void tint_symbol_11(RWByteAddressBuffer buffer, uint offset, int4 value[4]) { + int4 array[4] = value; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + buffer.Store4((offset + (i_1 * 16u)), asuint(array[i_1])); + } + } +} + +void main_inner(uint idx) { + s.Store3((176u * idx), asuint((0).xxx)); + s.Store(((176u * idx) + 12u), asuint(0)); + s.Store3(((176u * idx) + 16u), asuint((0u).xxx)); + s.Store(((176u * idx) + 28u), asuint(0u)); + 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).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); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.idx); + return; +} diff --git a/test/tint/buffer/storage/static_index/read.wgsl.expected.hlsl b/test/tint/buffer/storage/static_index/read.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/static_index/read.wgsl.expected.hlsl rename to test/tint/buffer/storage/static_index/read.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/static_index/read.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/static_index/read.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9062d007ed --- /dev/null +++ b/test/tint/buffer/storage/static_index/read.wgsl.expected.fxc.hlsl @@ -0,0 +1,44 @@ +struct Inner { + int x; +}; + +ByteAddressBuffer s : register(t0, space0); + +float2x3 tint_symbol_6(ByteAddressBuffer buffer, uint offset) { + return float2x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u)))); +} + +float3x2 tint_symbol_7(ByteAddressBuffer buffer, uint offset) { + return float3x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u)))); +} + +Inner tint_symbol_9(ByteAddressBuffer buffer, uint offset) { + const Inner tint_symbol_11 = {asint(buffer.Load((offset + 0u)))}; + return tint_symbol_11; +} + +typedef Inner tint_symbol_10_ret[4]; +tint_symbol_10_ret tint_symbol_10(ByteAddressBuffer buffer, uint offset) { + Inner arr[4] = (Inner[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr[i_1] = tint_symbol_9(buffer, (offset + (i_1 * 4u))); + } + } + return arr; +} + +[numthreads(1, 1, 1)] +void main() { + const int3 a = asint(s.Load3(0u)); + const int b = asint(s.Load(12u)); + const uint3 c = s.Load3(16u); + const uint d = s.Load(28u); + const float3 e = asfloat(s.Load3(32u)); + const float f = asfloat(s.Load(44u)); + const float2x3 g = tint_symbol_6(s, 48u); + const float3x2 h = tint_symbol_7(s, 80u); + const Inner i = tint_symbol_9(s, 104u); + const Inner j[4] = tint_symbol_10(s, 108u); + return; +} diff --git a/test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl b/test/tint/buffer/storage/static_index/write.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl rename to test/tint/buffer/storage/static_index/write.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/static_index/write.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/static_index/write.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2917dcf865 --- /dev/null +++ b/test/tint/buffer/storage/static_index/write.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +struct Inner { + int x; +}; + +RWByteAddressBuffer s : register(u0, space0); + +void tint_symbol_6(RWByteAddressBuffer buffer, uint offset, float2x3 value) { + buffer.Store3((offset + 0u), asuint(value[0u])); + buffer.Store3((offset + 16u), asuint(value[1u])); +} + +void tint_symbol_7(RWByteAddressBuffer buffer, uint offset, float3x2 value) { + buffer.Store2((offset + 0u), asuint(value[0u])); + buffer.Store2((offset + 8u), asuint(value[1u])); + buffer.Store2((offset + 16u), asuint(value[2u])); +} + +void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, Inner value) { + buffer.Store((offset + 0u), asuint(value.x)); +} + +void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, Inner value[4]) { + Inner array[4] = value; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + tint_symbol_9(buffer, (offset + (i_1 * 4u)), array[i_1]); + } + } +} + +[numthreads(1, 1, 1)] +void main() { + s.Store3(0u, asuint((0).xxx)); + s.Store(12u, asuint(0)); + s.Store3(16u, asuint((0u).xxx)); + s.Store(28u, asuint(0u)); + s.Store3(32u, asuint((0.0f).xxx)); + s.Store(44u, asuint(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; + tint_symbol_10(s, 108u, tint_symbol_12); + return; +} diff --git a/test/tint/buffer/storage/types/array.wgsl.expected.hlsl b/test/tint/buffer/storage/types/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/array.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/array.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b02ccdd25 --- /dev/null +++ b/test/tint/buffer/storage/types/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,28 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float value[4]) { + float array[4] = value; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + buffer.Store((offset + (i * 4u)), asuint(array[i])); + } + } +} + +typedef float tint_symbol_4_ret[4]; +tint_symbol_4_ret tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + float arr[4] = (float[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr[i_1] = asfloat(buffer.Load((offset + (i_1 * 4u)))); + } + } + return arr; +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/f32.wgsl.expected.hlsl b/test/tint/buffer/storage/types/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/f32.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/f32.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6dca9ed16 --- /dev/null +++ b/test/tint/buffer/storage/types/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store(0u, asuint(asfloat(tint_symbol.Load(0u)))); + return; +} diff --git a/test/tint/buffer/storage/types/i32.wgsl.expected.hlsl b/test/tint/buffer/storage/types/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/i32.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/i32.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c53558620 --- /dev/null +++ b/test/tint/buffer/storage/types/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store(0u, asuint(asint(tint_symbol.Load(0u)))); + return; +} diff --git a/test/tint/buffer/storage/types/mat2x2.wgsl.expected.hlsl b/test/tint/buffer/storage/types/mat2x2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/mat2x2.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/mat2x2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/mat2x2.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat2x2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1fc1b643f --- /dev/null +++ b/test/tint/buffer/storage/types/mat2x2.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float2x2 value) { + buffer.Store2((offset + 0u), asuint(value[0u])); + buffer.Store2((offset + 8u), asuint(value[1u])); +} + +float2x2 tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + return float2x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u)))); +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/mat2x3.wgsl.expected.hlsl b/test/tint/buffer/storage/types/mat2x3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/mat2x3.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/mat2x3.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/mat2x3.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat2x3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..baff4c5904 --- /dev/null +++ b/test/tint/buffer/storage/types/mat2x3.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float2x3 value) { + buffer.Store3((offset + 0u), asuint(value[0u])); + buffer.Store3((offset + 16u), asuint(value[1u])); +} + +float2x3 tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + return float2x3(asfloat(buffer.Load3((offset + 0u))), asfloat(buffer.Load3((offset + 16u)))); +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/mat3x2.wgsl.expected.hlsl b/test/tint/buffer/storage/types/mat3x2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/mat3x2.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/mat3x2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/mat3x2.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat3x2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31d606bf03 --- /dev/null +++ b/test/tint/buffer/storage/types/mat3x2.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float3x2 value) { + buffer.Store2((offset + 0u), asuint(value[0u])); + buffer.Store2((offset + 8u), asuint(value[1u])); + buffer.Store2((offset + 16u), asuint(value[2u])); +} + +float3x2 tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + return float3x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u))), asfloat(buffer.Load2((offset + 16u)))); +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/mat4x4.wgsl.expected.hlsl b/test/tint/buffer/storage/types/mat4x4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/mat4x4.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/mat4x4.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/mat4x4.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat4x4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e818c0922d --- /dev/null +++ b/test/tint/buffer/storage/types/mat4x4.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float4x4 value) { + buffer.Store4((offset + 0u), asuint(value[0u])); + buffer.Store4((offset + 16u), asuint(value[1u])); + buffer.Store4((offset + 32u), asuint(value[2u])); + buffer.Store4((offset + 48u), asuint(value[3u])); +} + +float4x4 tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u)))); +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_4(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/runtime_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c105c627a9 --- /dev/null +++ b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +struct S { + float f; +}; + +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, S value) { + buffer.Store((offset + 0u), asuint(value.f)); +} + +S tint_symbol_4(ByteAddressBuffer buffer, uint offset) { + const S tint_symbol_6 = {asfloat(buffer.Load((offset + 0u)))}; + return tint_symbol_6; +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, (4u * 0u), tint_symbol_4(tint_symbol, (4u * 0u))); + return; +} diff --git a/test/tint/buffer/storage/types/struct.wgsl.expected.hlsl b/test/tint/buffer/storage/types/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/struct.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/struct.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..05be6006f9 --- /dev/null +++ b/test/tint/buffer/storage/types/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +struct Inner { + float f; +}; +struct S { + Inner inner; +}; + +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, Inner value) { + buffer.Store((offset + 0u), asuint(value.f)); +} + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, S value) { + tint_symbol_3(buffer, (offset + 0u), value.inner); +} + +Inner tint_symbol_6(ByteAddressBuffer buffer, uint offset) { + const Inner tint_symbol_8 = {asfloat(buffer.Load((offset + 0u)))}; + return tint_symbol_8; +} + +S tint_symbol_5(ByteAddressBuffer buffer, uint offset) { + const S tint_symbol_9 = {tint_symbol_6(buffer, (offset + 0u))}; + return tint_symbol_9; +} + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_2(tint_symbol_1, 0u, tint_symbol_5(tint_symbol, 0u)); + return; +} diff --git a/test/tint/buffer/storage/types/u32.wgsl.expected.hlsl b/test/tint/buffer/storage/types/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/u32.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/u32.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8574dafdc8 --- /dev/null +++ b/test/tint/buffer/storage/types/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store(0u, asuint(tint_symbol.Load(0u))); + return; +} diff --git a/test/tint/buffer/storage/types/vec2.wgsl.expected.hlsl b/test/tint/buffer/storage/types/vec2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/vec2.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/vec2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/vec2.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c5c7d7ebe --- /dev/null +++ b/test/tint/buffer/storage/types/vec2.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store2(0u, asuint(asint(tint_symbol.Load2(0u)))); + return; +} diff --git a/test/tint/buffer/storage/types/vec3.wgsl.expected.hlsl b/test/tint/buffer/storage/types/vec3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/vec3.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/vec3.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/vec3.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9af25f4d63 --- /dev/null +++ b/test/tint/buffer/storage/types/vec3.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store3(0u, asuint(tint_symbol.Load3(0u))); + return; +} diff --git a/test/tint/buffer/storage/types/vec4.wgsl.expected.hlsl b/test/tint/buffer/storage/types/vec4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/storage/types/vec4.wgsl.expected.hlsl rename to test/tint/buffer/storage/types/vec4.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/storage/types/vec4.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dd068ba25a --- /dev/null +++ b/test/tint/buffer/storage/types/vec4.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +ByteAddressBuffer tint_symbol : register(t0, space0); +RWByteAddressBuffer tint_symbol_1 : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + tint_symbol_1.Store4(0u, asuint(asfloat(tint_symbol.Load4(0u)))); + return; +} diff --git a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.hlsl b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.hlsl rename to test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0d7bd06a72 --- /dev/null +++ b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.fxc.hlsl @@ -0,0 +1,65 @@ +cbuffer cbuffer_s : register(b0, space0) { + uint4 s[96]; +}; + +struct tint_symbol_1 { + uint idx : SV_GroupIndex; +}; + +float2x3 tint_symbol_9(uint4 buffer[96], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + return float2x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz)); +} + +float3x2 tint_symbol_10(uint4 buffer[96], uint offset) { + const uint scalar_offset_2 = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset_2 / 4]; + const uint scalar_offset_3 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_3 / 4]; + const uint scalar_offset_4 = ((offset + 16u)) / 4; + uint4 ubo_load_2 = buffer[scalar_offset_4 / 4]; + return float3x2(asfloat(((scalar_offset_2 & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_3 & 2) ? ubo_load_1.zw : ubo_load_1.xy)), asfloat(((scalar_offset_4 & 2) ? ubo_load_2.zw : ubo_load_2.xy))); +} + +typedef int4 tint_symbol_12_ret[4]; +tint_symbol_12_ret tint_symbol_12(uint4 buffer[96], uint offset) { + int4 arr_1[4] = (int4[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + const uint scalar_offset_5 = ((offset + (i_1 * 16u))) / 4; + arr_1[i_1] = asint(buffer[scalar_offset_5 / 4]); + } + } + return arr_1; +} + +void main_inner(uint idx) { + const uint scalar_offset_6 = ((192u * idx)) / 4; + const int3 a = asint(s[scalar_offset_6 / 4].xyz); + const uint scalar_offset_7 = (((192u * idx) + 12u)) / 4; + const int b = asint(s[scalar_offset_7 / 4][scalar_offset_7 % 4]); + const uint scalar_offset_8 = (((192u * idx) + 16u)) / 4; + const uint3 c = s[scalar_offset_8 / 4].xyz; + const uint scalar_offset_9 = (((192u * idx) + 28u)) / 4; + const uint d = s[scalar_offset_9 / 4][scalar_offset_9 % 4]; + const uint scalar_offset_10 = (((192u * idx) + 32u)) / 4; + const float3 e = asfloat(s[scalar_offset_10 / 4].xyz); + const uint scalar_offset_11 = (((192u * idx) + 44u)) / 4; + const float f = asfloat(s[scalar_offset_11 / 4][scalar_offset_11 % 4]); + const uint scalar_offset_12 = (((192u * idx) + 48u)) / 4; + uint4 ubo_load_3 = s[scalar_offset_12 / 4]; + const int2 g = asint(((scalar_offset_12 & 2) ? ubo_load_3.zw : ubo_load_3.xy)); + const uint scalar_offset_13 = (((192u * idx) + 56u)) / 4; + uint4 ubo_load_4 = s[scalar_offset_13 / 4]; + const int2 h = asint(((scalar_offset_13 & 2) ? ubo_load_4.zw : ubo_load_4.xy)); + const float2x3 i = tint_symbol_9(s, ((192u * idx) + 64u)); + const float3x2 j = tint_symbol_10(s, ((192u * idx) + 96u)); + const int4 k[4] = tint_symbol_12(s, ((192u * idx) + 128u)); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.idx); + return; +} diff --git a/test/tint/buffer/uniform/static_index/read.wgsl.expected.hlsl b/test/tint/buffer/uniform/static_index/read.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/static_index/read.wgsl.expected.hlsl rename to test/tint/buffer/uniform/static_index/read.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/static_index/read.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/static_index/read.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1446321b6b --- /dev/null +++ b/test/tint/buffer/uniform/static_index/read.wgsl.expected.fxc.hlsl @@ -0,0 +1,57 @@ +struct Inner { + int x; +}; + +cbuffer cbuffer_s : register(b0, space0) { + uint4 s[13]; +}; + +float2x3 tint_symbol_7(uint4 buffer[13], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + return float2x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz)); +} + +float3x2 tint_symbol_8(uint4 buffer[13], uint offset) { + const uint scalar_offset_2 = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset_2 / 4]; + const uint scalar_offset_3 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_3 / 4]; + const uint scalar_offset_4 = ((offset + 16u)) / 4; + uint4 ubo_load_2 = buffer[scalar_offset_4 / 4]; + return float3x2(asfloat(((scalar_offset_2 & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_3 & 2) ? ubo_load_1.zw : ubo_load_1.xy)), asfloat(((scalar_offset_4 & 2) ? ubo_load_2.zw : ubo_load_2.xy))); +} + +Inner tint_symbol_10(uint4 buffer[13], uint offset) { + const uint scalar_offset_5 = ((offset + 0u)) / 4; + const Inner tint_symbol_12 = {asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])}; + return tint_symbol_12; +} + +typedef Inner tint_symbol_11_ret[4]; +tint_symbol_11_ret tint_symbol_11(uint4 buffer[13], uint offset) { + Inner arr[4] = (Inner[4])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) { + arr[i_1] = tint_symbol_10(buffer, (offset + (i_1 * 16u))); + } + } + return arr; +} + +[numthreads(1, 1, 1)] +void main() { + const int3 a = asint(s[0].xyz); + const int b = asint(s[0].w); + const uint3 c = s[1].xyz; + const uint d = s[1].w; + const float3 e = asfloat(s[2].xyz); + const float f = asfloat(s[2].w); + const int2 g = asint(s[3].xy); + const int2 h = asint(s[3].zw); + const float2x3 i = tint_symbol_7(s, 64u); + const float3x2 j = tint_symbol_8(s, 96u); + const Inner k = tint_symbol_10(s, 128u); + const Inner l[4] = tint_symbol_11(s, 144u); + return; +} diff --git a/test/tint/buffer/uniform/types/array.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/array.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/array.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34e3ef1c6a --- /dev/null +++ b/test/tint/buffer/uniform/types/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[4]; +}; + +typedef float4 tint_symbol_ret[4]; +tint_symbol_ret tint_symbol(uint4 buffer[4], uint offset) { + float4 arr[4] = (float4[4])0; + { + [loop] for(uint i = 0u; (i < 4u); i = (i + 1u)) { + const uint scalar_offset = ((offset + (i * 16u))) / 4; + arr[i] = asfloat(buffer[scalar_offset / 4]); + } + } + return arr; +} + +[numthreads(1, 1, 1)] +void main() { + const float4 x[4] = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/f32.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/f32.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/f32.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..496e5c9fd4 --- /dev/null +++ b/test/tint/buffer/uniform/types/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const float x = asfloat(u[0].x); + return; +} diff --git a/test/tint/buffer/uniform/types/i32.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/i32.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/i32.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6ed76ea43 --- /dev/null +++ b/test/tint/buffer/uniform/types/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const int x = asint(u[0].x); + return; +} diff --git a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/mat2x2.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/mat2x2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c34b4c53df --- /dev/null +++ b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +float2x2 tint_symbol(uint4 buffer[1], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset / 4]; + const uint scalar_offset_1 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_1 / 4]; + return float2x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy))); +} + +[numthreads(1, 1, 1)] +void main() { + const float2x2 x = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/mat2x3.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/mat2x3.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e92e916135 --- /dev/null +++ b/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[2]; +}; + +float2x3 tint_symbol(uint4 buffer[2], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + return float2x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz)); +} + +[numthreads(1, 1, 1)] +void main() { + const float2x3 x = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/mat3x2.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/mat3x2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44f2aa4431 --- /dev/null +++ b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[2]; +}; + +float3x2 tint_symbol(uint4 buffer[2], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset / 4]; + const uint scalar_offset_1 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_1 / 4]; + const uint scalar_offset_2 = ((offset + 16u)) / 4; + uint4 ubo_load_2 = buffer[scalar_offset_2 / 4]; + return float3x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy)), asfloat(((scalar_offset_2 & 2) ? ubo_load_2.zw : ubo_load_2.xy))); +} + +[numthreads(1, 1, 1)] +void main() { + const float3x2 x = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/mat4x4.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/mat4x4.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0b14de0372 --- /dev/null +++ b/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[4]; +}; + +float4x4 tint_symbol(uint4 buffer[4], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const uint scalar_offset_3 = ((offset + 48u)) / 4; + return float4x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4]), asfloat(buffer[scalar_offset_3 / 4])); +} + +[numthreads(1, 1, 1)] +void main() { + const float4x4 x = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/struct.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/struct.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/struct.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d15eb31450 --- /dev/null +++ b/test/tint/buffer/uniform/types/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +struct Inner { + float f; +}; +struct S { + Inner inner; +}; + +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +Inner tint_symbol_1(uint4 buffer[1], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const Inner tint_symbol_3 = {asfloat(buffer[scalar_offset / 4][scalar_offset % 4])}; + return tint_symbol_3; +} + +S tint_symbol(uint4 buffer[1], uint offset) { + const S tint_symbol_4 = {tint_symbol_1(buffer, (offset + 0u))}; + return tint_symbol_4; +} + +[numthreads(1, 1, 1)] +void main() { + const S x = tint_symbol(u, 0u); + return; +} diff --git a/test/tint/buffer/uniform/types/u32.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/u32.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/u32.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f033091a5a --- /dev/null +++ b/test/tint/buffer/uniform/types/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const uint x = u[0].x; + return; +} diff --git a/test/tint/buffer/uniform/types/vec2.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/vec2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/vec2.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/vec2.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/vec2.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a36e25c3a9 --- /dev/null +++ b/test/tint/buffer/uniform/types/vec2.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const int2 x = asint(u[0].xy); + return; +} diff --git a/test/tint/buffer/uniform/types/vec3.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/vec3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/vec3.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/vec3.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/vec3.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e081c8a73 --- /dev/null +++ b/test/tint/buffer/uniform/types/vec3.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const uint3 x = u[0].xyz; + return; +} diff --git a/test/tint/buffer/uniform/types/vec4.wgsl.expected.hlsl b/test/tint/buffer/uniform/types/vec4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/buffer/uniform/types/vec4.wgsl.expected.hlsl rename to test/tint/buffer/uniform/types/vec4.wgsl.expected.dxc.hlsl diff --git a/test/tint/buffer/uniform/types/vec4.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ae2ec1970 --- /dev/null +++ b/test/tint/buffer/uniform/types/vec4.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const float4 x = asfloat(u[0]); + return; +} diff --git a/test/tint/bug/chromium/1221120.wgsl.expected.hlsl b/test/tint/bug/chromium/1221120.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1221120.wgsl.expected.hlsl rename to test/tint/bug/chromium/1221120.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1221120.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1221120.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..051e8c381c --- /dev/null +++ b/test/tint/bug/chromium/1221120.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + diff --git a/test/tint/bug/chromium/1236161.wgsl.expected.hlsl b/test/tint/bug/chromium/1236161.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1236161.wgsl.expected.hlsl rename to test/tint/bug/chromium/1236161.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1236161.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1236161.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0d44d90a7 --- /dev/null +++ b/test/tint/bug/chromium/1236161.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +struct modf_result { + float fract; + float whole; +}; +modf_result tint_modf(float param_0) { + float whole; + float fract = modf(param_0, whole); + modf_result result = {fract, whole}; + return result; +} + +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void i() { + const float s = tint_modf(1.0f).whole; +} diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.hlsl b/test/tint/bug/chromium/1251009.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1251009.wgsl.expected.hlsl rename to test/tint/bug/chromium/1251009.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1251009.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6531385ca6 --- /dev/null +++ b/test/tint/bug/chromium/1251009.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +struct VertexInputs0 { + uint vertex_index; + int loc0; +}; +struct VertexInputs1 { + uint loc1; + float4 loc3; +}; +struct tint_symbol_1 { + int loc0 : TEXCOORD0; + uint loc1 : TEXCOORD1; + uint loc1_1 : TEXCOORD2; + float4 loc3 : TEXCOORD3; + uint vertex_index : SV_VertexID; + uint instance_index : SV_InstanceID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) { + const uint foo = (inputs0.vertex_index + instance_index); + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const VertexInputs0 tint_symbol_3 = {tint_symbol.vertex_index, tint_symbol.loc0}; + const VertexInputs1 tint_symbol_4 = {tint_symbol.loc1_1, tint_symbol.loc3}; + const float4 inner_result = main_inner(tint_symbol_3, tint_symbol.loc1, tint_symbol.instance_index, tint_symbol_4); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/chromium/1273230.wgsl.expected.hlsl b/test/tint/bug/chromium/1273230.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1273230.wgsl.expected.hlsl rename to test/tint/bug/chromium/1273230.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1273230.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1273230.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..52f58595fe --- /dev/null +++ b/test/tint/bug/chromium/1273230.wgsl.expected.fxc.hlsl @@ -0,0 +1,102 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +void marg8uintin() { +} + +cbuffer cbuffer_uniforms : register(b0, space0) { + uint4 uniforms[3]; +}; +RWByteAddressBuffer indices : register(u10, space0); +RWByteAddressBuffer positions : register(u11, space0); +RWByteAddressBuffer counters : register(u20, space0); +RWByteAddressBuffer LUT : register(u21, space0); +RWByteAddressBuffer dbg : register(u50, space0); + +float3 toVoxelPos(float3 position) { + float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z)); + float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z)); + float3 bbSize = (bbMin - bbMin); + float cubeSize = max(max(bbMax.x, bbMax.y), bbSize.z); + float gridSize = float(uniforms[0].y); + float gx = ((cubeSize * (position.x - asfloat(uniforms[1].x))) / cubeSize); + float gy = ((gx * (position.y - asfloat(uniforms[1].y))) / gridSize); + float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / gridSize); + return float3(gz, gz, gz); +} + +uint toIndex1D(uint gridSize, float3 voxelPos) { + uint3 icoord = uint3(voxelPos); + return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); +} + +uint3 toIndex4D(uint gridSize, uint index) { + uint z_1 = (gridSize / value_or_one_if_zero_uint((index * index))); + uint y_1 = ((gridSize - ((gridSize * gridSize) * z_1)) / (gridSize == 0u ? 1u : gridSize)); + uint x_1 = (index % (gridSize == 0u ? 1u : gridSize)); + return uint3(z_1, y_1, y_1); +} + +float3 loadPosition(uint vertexIndex) { + float3 position = float3(asfloat(positions.Load((4u * ((3u * vertexIndex) + 0u)))), asfloat(positions.Load((4u * ((3u * vertexIndex) + 1u)))), asfloat(positions.Load((4u * ((3u * vertexIndex) + 2u))))); + return position; +} + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void doIgnore() { + uint g43 = uniforms[0].x; + uint kj6 = dbg.Load(20u); + 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 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void main_count_inner(uint3 GlobalInvocationID) { + uint triangleIndex = GlobalInvocationID.x; + if ((triangleIndex >= uniforms[0].x)) { + return; + } + doIgnore(); + uint i0 = indices.Load((4u * ((3u * triangleIndex) + 0u))); + uint i1 = indices.Load((4u * ((3u * i0) + 1u))); + uint i2 = indices.Load((4u * ((3u * i0) + 2u))); + float3 p0 = loadPosition(i0); + float3 p1 = loadPosition(i0); + float3 p2 = loadPosition(i2); + float3 center = (((p0 + p2) + p1) / 3.0f); + float3 voxelPos = toVoxelPos(p1); + uint lIndex = toIndex1D(uniforms[0].y, p0); + int triangleOffset = tint_atomicAdd(LUT, (4u * i1), 1); +} + +[numthreads(128, 1, 1)] +void main_count(tint_symbol_1 tint_symbol) { + main_count_inner(tint_symbol.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/chromium/1273451.wgsl.expected.hlsl b/test/tint/bug/chromium/1273451.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1273451.wgsl.expected.hlsl rename to test/tint/bug/chromium/1273451.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1273451.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1273451.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dddd92f31b --- /dev/null +++ b/test/tint/bug/chromium/1273451.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct A { + int a; +}; +struct B { + int b; +}; + +B f(A a) { + const B tint_symbol = (B)0; + return tint_symbol; +} diff --git a/test/tint/bug/chromium/1290107.wgsl.expected.hlsl b/test/tint/bug/chromium/1290107.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1290107.wgsl.expected.hlsl rename to test/tint/bug/chromium/1290107.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1290107.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1290107.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95e8cb7e13 --- /dev/null +++ b/test/tint/bug/chromium/1290107.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer arr : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + arr.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = (tint_symbol_1 / 4u); + const uint len = tint_symbol_2; + return; +} diff --git a/test/tint/bug/chromium/1341475.wgsl.expected.hlsl b/test/tint/bug/chromium/1341475.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1341475.wgsl.expected.hlsl rename to test/tint/bug/chromium/1341475.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1341475.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1341475.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01c8800086 --- /dev/null +++ b/test/tint/bug/chromium/1341475.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void main() { + lerp(1.0f, 1.0f, 1.0f); + return; +} diff --git a/test/tint/bug/chromium/1343242.wgsl.expected.hlsl b/test/tint/bug/chromium/1343242.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1343242.wgsl.expected.hlsl rename to test/tint/bug/chromium/1343242.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1343242.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1343242.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e2052cfedd --- /dev/null +++ b/test/tint/bug/chromium/1343242.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool o = true; diff --git a/test/tint/bug/chromium/1345468.wgsl.expected.hlsl b/test/tint/bug/chromium/1345468.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/chromium/1345468.wgsl.expected.hlsl rename to test/tint/bug/chromium/1345468.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/chromium/1345468.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1345468.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b3556b9f5 --- /dev/null +++ b/test/tint/bug/chromium/1345468.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 1; + float2 a = float4x2((0.0f).xx, (0.0f).xx, float2(4.0f, 0.0f), (0.0f).xx)[i]; + int b = int2(0, 1)[i]; +} diff --git a/test/tint/bug/dawn/947.wgsl.expected.hlsl b/test/tint/bug/dawn/947.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/dawn/947.wgsl.expected.hlsl rename to test/tint/bug/dawn/947.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/dawn/947.wgsl.expected.fxc.hlsl b/test/tint/bug/dawn/947.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..be587b091d --- /dev/null +++ b/test/tint/bug/dawn/947.wgsl.expected.fxc.hlsl @@ -0,0 +1,86 @@ +bug/dawn/947.wgsl:59:20 warning: 'textureSample' must only be called from uniform control flow + var srcColor = textureSample(myTexture, mySampler, texcoord); + ^^^^^^^^^^^^^ + +bug/dawn/947.wgsl:55:5 note: control flow depends on non-uniform value + if (!all(clampedTexcoord == texcoord)) { + ^^ + +bug/dawn/947.wgsl:55:33 note: reading from user-defined input 'texcoord' may result in a non-uniform value + if (!all(clampedTexcoord == texcoord)) { + ^^^^^^^^ + +cbuffer cbuffer_uniforms : register(b0, space0) { + uint4 uniforms[1]; +}; + +struct VertexOutputs { + float2 texcoords; + float4 position; +}; +struct tint_symbol_1 { + uint VertexIndex : SV_VertexID; +}; +struct tint_symbol_2 { + float2 texcoords : TEXCOORD0; + float4 position : SV_Position; +}; + +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) - (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)); + } else { + output.texcoords = ((((texcoord[VertexIndex] * float2(1.0f, -1.0f)) + float2(0.0f, 1.0f)) * asfloat(uniforms[0].xy)) + asfloat(uniforms[0].zw)); + } + return output; +} + +tint_symbol_2 vs_main(tint_symbol_1 tint_symbol) { + const VertexOutputs inner_result = vs_main_inner(tint_symbol.VertexIndex); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.texcoords = inner_result.texcoords; + wrapper_result.position = inner_result.position; + return wrapper_result; +} + +SamplerState mySampler : register(s1, space0); +Texture2D myTexture : register(t2, space0); + +struct tint_symbol_4 { + float2 texcoord : TEXCOORD0; +}; +struct tint_symbol_5 { + float4 value : SV_Target0; +}; + +static bool tint_discard = false; + +float4 fs_main_inner(float2 texcoord) { + float2 clampedTexcoord = clamp(texcoord, (0.0f).xx, (1.0f).xx); + if (!(all((clampedTexcoord == texcoord)))) { + tint_discard = true; + return (0.0f).xxxx; + } + float4 srcColor = myTexture.Sample(mySampler, texcoord); + return srcColor; +} + +void tint_discard_func() { + discard; +} + +tint_symbol_5 fs_main(tint_symbol_4 tint_symbol_3) { + const float4 inner_result_1 = fs_main_inner(tint_symbol_3.texcoord); + if (tint_discard) { + tint_discard_func(); + const tint_symbol_5 tint_symbol_8 = (tint_symbol_5)0; + return tint_symbol_8; + } + tint_symbol_5 wrapper_result_1 = (tint_symbol_5)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b9a46178c5 --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); + +[numthreads(1, 1, 1)] +void f() { + S s = (S)0; + result.Store(0u, asuint(s.data[asint(ubo[0].x)])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ef50e8a3ce --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); +static S s = (S)0; + +[numthreads(1, 1, 1)] +void f() { + result.Store(0u, asuint(s.data[asint(ubo[0].x)])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dada6d4c9d --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +RWByteAddressBuffer result : register(u2, space0); + +RWByteAddressBuffer ssbo : register(u1, space0); + +[numthreads(1, 1, 1)] +void f() { + result.Store(0u, asuint(asint(ssbo.Load((4u * uint(asint(ubo[0].x))))))); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01e61f78b5 --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[5]; +}; + +RWByteAddressBuffer result : register(u2, space0); + +[numthreads(1, 1, 1)] +void f() { + const uint scalar_offset = ((16u * uint(asint(ubo[4].x)))) / 4; + result.Store(0u, asuint(asint(ubo[scalar_offset / 4][scalar_offset % 4]))); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c590e46bc --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); +groupshared S s; + +struct tint_symbol_2 { + uint local_invocation_index : SV_GroupIndex; +}; + +void f_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 64u); idx = (idx + 1u)) { + const uint i = idx; + s.data[i] = 0; + } + } + GroupMemoryBarrierWithGroupSync(); + result.Store(0u, asuint(s.data[asint(ubo[0].x)])); +} + +[numthreads(1, 1, 1)] +void f(tint_symbol_2 tint_symbol_1) { + f_inner(tint_symbol_1.local_invocation_index); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60c1a89bb1 --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); + +[numthreads(1, 1, 1)] +void f() { + S s = (S)0; + { + int tint_symbol_2[64] = s.data; + tint_symbol_2[asint(ubo[0].x)] = 1; + s.data = tint_symbol_2; + } + result.Store(0u, asuint(s.data[3])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d73fa8f2d --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); + +void x(inout S p) { + { + int tint_symbol_2[64] = p.data; + tint_symbol_2[asint(ubo[0].x)] = 1; + p.data = tint_symbol_2; + } +} + +[numthreads(1, 1, 1)] +void f() { + S s = (S)0; + x(s); + result.Store(0u, asuint(s.data[3])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..755fa553f4 --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); +static S s = (S)0; + +[numthreads(1, 1, 1)] +void f() { + { + int tint_symbol_2[64] = s.data; + tint_symbol_2[asint(ubo[0].x)] = 1; + s.data = tint_symbol_2; + } + result.Store(0u, asuint(s.data[3])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8d8ff4e1c --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); +static S s = (S)0; + +void x(inout S p) { + { + int tint_symbol_2[64] = p.data; + tint_symbol_2[asint(ubo[0].x)] = 1; + p.data = tint_symbol_2; + } +} + +[numthreads(1, 1, 1)] +void f() { + x(s); + result.Store(0u, asuint(s.data[3])); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..005f32199f --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +RWByteAddressBuffer result : register(u2, space0); + +RWByteAddressBuffer ssbo : register(u1, space0); + +[numthreads(1, 1, 1)] +void f() { + ssbo.Store((4u * uint(asint(ubo[0].x))), asuint(1)); + result.Store(0u, asuint(asint(ssbo.Load(12u)))); + return; +} diff --git a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.hlsl rename to test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5080be8b95 --- /dev/null +++ b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +cbuffer cbuffer_ubo : register(b0, space0) { + uint4 ubo[1]; +}; + +struct S { + int data[64]; +}; + +RWByteAddressBuffer result : register(u1, space0); +groupshared S s; + +struct tint_symbol_2 { + uint local_invocation_index : SV_GroupIndex; +}; + +void f_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 64u); idx = (idx + 1u)) { + const uint i = idx; + s.data[i] = 0; + } + } + GroupMemoryBarrierWithGroupSync(); + s.data[asint(ubo[0].x)] = 1; + result.Store(0u, asuint(s.data[3])); +} + +[numthreads(1, 1, 1)] +void f(tint_symbol_2 tint_symbol_1) { + f_inner(tint_symbol_1.local_invocation_index); + return; +} 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.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl rename to test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d8ef362ca9 --- /dev/null +++ b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.fxc.hlsl @@ -0,0 +1,60 @@ +bug/fxc/gradient_in_varying_loop/1112.wgsl:23:33 warning: 'textureSample' must only be called from uniform control flow + let sampleDepth : f32 = textureSample(depthTexture, Sampler, offset.xy).r; + ^^^^^^^^^^^^^ + +bug/fxc/gradient_in_varying_loop/1112.wgsl:18:28 note: control flow depends on non-uniform value + if (offset.x < 0.0 || offset.y < 0.0 || offset.x > 1.0 || offset.y > 1.0) { + ^^ + +bug/fxc/gradient_in_varying_loop/1112.wgsl:8:29 note: return value of 'textureSample' may be non-uniform + let random: vec3 = textureSample(randomTexture, Sampler, vUV).rgb; + ^^^^^^^^^^^^^ + +SamplerState tint_symbol : register(s0, space0); +Texture2D randomTexture : register(t1, space0); +Texture2D depthTexture : register(t2, space0); + +struct tint_symbol_2 { + float2 vUV : TEXCOORD0; +}; +struct tint_symbol_3 { + float4 value : SV_Target0; +}; + +float4 main_inner(float2 vUV) { + const float3 random = randomTexture.Sample(tint_symbol, vUV).rgb; + int i = 0; + [loop] while (true) { + if ((i < 1)) { + } else { + break; + } + const float3 offset = float3((random.x).xxx); + bool tint_tmp_2 = (offset.x < 0.0f); + if (!tint_tmp_2) { + tint_tmp_2 = (offset.y < 0.0f); + } + bool tint_tmp_1 = (tint_tmp_2); + if (!tint_tmp_1) { + tint_tmp_1 = (offset.x > 1.0f); + } + bool tint_tmp = (tint_tmp_1); + if (!tint_tmp) { + tint_tmp = (offset.y > 1.0f); + } + if ((tint_tmp)) { + i = (i + 1); + continue; + } + const float sampleDepth = depthTexture.Sample(tint_symbol, offset.xy).r; + i = (i + 1); + } + return (1.0f).xxxx; +} + +tint_symbol_3 main(tint_symbol_2 tint_symbol_1) { + const float4 inner_result = main_inner(tint_symbol_1.vUV); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.value = inner_result; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.hlsl rename to test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b62d3ff263 --- /dev/null +++ b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +struct Particle { + float3 position[8]; + float lifetime; + float4 color; + float3 velocity; +}; + +ByteAddressBuffer particles : register(t3, space1); +cbuffer cbuffer_sim : register(b4, space1) { + uint4 sim[1]; +}; + +typedef float3 tint_symbol_3_ret[8]; +tint_symbol_3_ret tint_symbol_3(ByteAddressBuffer buffer, uint offset) { + float3 arr[8] = (float3[8])0; + { + [loop] for(uint i_1 = 0u; (i_1 < 8u); i_1 = (i_1 + 1u)) { + arr[i_1] = asfloat(buffer.Load3((offset + (i_1 * 16u)))); + } + } + return arr; +} + +Particle tint_symbol_2(ByteAddressBuffer buffer, uint offset) { + const Particle tint_symbol_8 = {tint_symbol_3(buffer, (offset + 0u)), asfloat(buffer.Load((offset + 128u))), asfloat(buffer.Load4((offset + 144u))), asfloat(buffer.Load3((offset + 160u)))}; + return tint_symbol_8; +} + +[numthreads(1, 1, 1)] +void main() { + 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]; + particle.position = tint_symbol_1; + } + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d9c9833994 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[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_scalar_float2x4(m1, 0, uniforms[0].x, 1.0f); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..254519f61e --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[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_scalar_float2x4(m1, uniforms[0].y, uniforms[0].x, 1.0f); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.fxc.hlsl 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.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c4a4418bfa --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +void set_vector_float2x4(inout float2x4 mat, int col, float4 val) { + switch (col) { + case 0: mat[0] = val; break; + case 1: mat[1] = val; break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[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, (1.0f).xxxx); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c52f157379 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +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_scalar_float2x4(m1, 0, uniforms[0].x, 1.0f); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1487ddd1d9 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +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_scalar_float2x4(m1, uniforms[0].y, uniforms[0].x, 1.0f); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.dxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..75a62179b4 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.dxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +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_scalar_float2x4(m1, uniforms[0].y, 0, 1.0f); + return; +} diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..75a62179b4 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +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_scalar_float2x4(m1, uniforms[0].y, 0, 1.0f); + 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.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.hlsl rename to test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..263c2bc023 --- /dev/null +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +void set_vector_float2x4(inout float2x4 mat, int col, float4 val) { + switch (col) { + case 0: mat[0] = val; break; + case 1: mat[1] = val; break; + } +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +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, (1.0f).xxxx); + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..00000e97cd --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +static float2 v2f = float2(0.0f, 0.0f); +static int3 v3i = int3(0, 0, 0); +static uint4 v4u = uint4(0u, 0u, 0u, 0u); +static bool2 v2b = bool2(false, false); + +void foo() { + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + set_float2(v2f, i, 1.0f); + set_int3(v3i, i, 1); + set_uint4(v4u, i, 1u); + set_bool2(v2b, i, true); + } + } +} + +[numthreads(1, 1, 1)] +void main() { + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + foo(); + } + } + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc096ac700 --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +static float2 v2f = float2(0.0f, 0.0f); +static int3 v3i = int3(0, 0, 0); +static uint4 v4u = uint4(0u, 0u, 0u, 0u); +static bool2 v2b = bool2(false, false); + +void foo() { + int i = 0; + set_float2(v2f, i, 1.0f); + set_int3(v3i, i, 1); + set_uint4(v4u, i, 1u); + set_bool2(v2b, i, true); +} + +[numthreads(1, 1, 1)] +void main() { + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + foo(); + } + } + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..13dd87cfd2 --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.fxc.hlsl @@ -0,0 +1,80 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_float4(inout float4 vec, int idx, float val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_int2(inout int2 vec, int idx, int val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_int4(inout int4 vec, int idx, int val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_uint2(inout uint2 vec, int idx, uint val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_uint3(inout uint3 vec, int idx, uint val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_bool3(inout bool3 vec, int idx, bool val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_bool4(inout bool4 vec, int idx, bool val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +[numthreads(1, 1, 1)] +void main() { + float2 v2f = float2(0.0f, 0.0f); + float3 v3f = float3(0.0f, 0.0f, 0.0f); + float4 v4f = float4(0.0f, 0.0f, 0.0f, 0.0f); + int2 v2i = int2(0, 0); + int3 v3i = int3(0, 0, 0); + int4 v4i = int4(0, 0, 0, 0); + uint2 v2u = uint2(0u, 0u); + uint3 v3u = uint3(0u, 0u, 0u); + uint4 v4u = uint4(0u, 0u, 0u, 0u); + bool2 v2b = bool2(false, false); + bool3 v3b = bool3(false, false, false); + bool4 v4b = bool4(false, false, false, false); + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + set_float2(v2f, i, 1.0f); + set_float3(v3f, i, 1.0f); + set_float4(v4f, i, 1.0f); + set_int2(v2i, i, 1); + set_int3(v3i, i, 1); + set_int4(v4i, i, 1); + set_uint2(v2u, i, 1u); + set_uint3(v3u, i, 1u); + set_uint4(v4u, i, 1u); + set_bool2(v2b, i, true); + set_bool3(v3b, i, true); + set_bool4(v4b, i, true); + } + } + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c3db07790 --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.fxc.hlsl @@ -0,0 +1,40 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +[numthreads(1, 1, 1)] +void main() { + float2 v2f = float2(0.0f, 0.0f); + float2 v2f_2 = float2(0.0f, 0.0f); + int3 v3i = int3(0, 0, 0); + int3 v3i_2 = int3(0, 0, 0); + uint4 v4u = uint4(0u, 0u, 0u, 0u); + uint4 v4u_2 = uint4(0u, 0u, 0u, 0u); + bool2 v2b = bool2(false, false); + bool2 v2b_2 = bool2(false, false); + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + set_float2(v2f, i, 1.0f); + set_int3(v3i, i, 1); + set_uint4(v4u, i, 1u); + set_bool2(v2b, i, true); + set_float2(v2f_2, i, 1.0f); + set_int3(v3i_2, i, 1); + set_uint4(v4u_2, i, 1u); + set_bool2(v2b_2, i, true); + } + } + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0740864c6c --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.fxc.hlsl @@ -0,0 +1,81 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int2(inout int2 vec, int idx, int val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_uint2(inout uint2 vec, int idx, uint val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_float4(inout float4 vec, int idx, float val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_int4(inout int4 vec, int idx, int val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_uint3(inout uint3 vec, int idx, uint val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool3(inout bool3 vec, int idx, bool val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_bool4(inout bool4 vec, int idx, bool val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +[numthreads(1, 1, 1)] +void main() { + float2 v2f = float2(0.0f, 0.0f); + float3 v3f = float3(0.0f, 0.0f, 0.0f); + float4 v4f = float4(0.0f, 0.0f, 0.0f, 0.0f); + int2 v2i = int2(0, 0); + int3 v3i = int3(0, 0, 0); + int4 v4i = int4(0, 0, 0, 0); + uint2 v2u = uint2(0u, 0u); + uint3 v3u = uint3(0u, 0u, 0u); + uint4 v4u = uint4(0u, 0u, 0u, 0u); + bool2 v2b = bool2(false, false); + bool3 v3b = bool3(false, false, false); + bool4 v4b = bool4(false, false, false, false); + { + [loop] for(int i = 0; (i < 2); i = (i + 1)) { + set_float2(v2f, i, 1.0f); + set_int2(v2i, i, 1); + set_uint2(v2u, i, 1u); + set_bool2(v2b, i, true); + } + } + int i = 0; + set_float3(v3f, i, 1.0f); + set_float4(v4f, i, 1.0f); + set_int3(v3i, i, 1); + set_int4(v4i, i, 1); + set_uint3(v3u, i, 1u); + set_uint4(v4u, i, 1u); + set_bool3(v3b, i, true); + set_bool4(v4b, i, true); + return; +} diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.hlsl rename to test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.fxc.hlsl b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..69170f0b0a --- /dev/null +++ b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.fxc.hlsl @@ -0,0 +1,77 @@ +void set_float2(inout float2 vec, int idx, float val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_float4(inout float4 vec, int idx, float val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_int2(inout int2 vec, int idx, int val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_int3(inout int3 vec, int idx, int val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_int4(inout int4 vec, int idx, int val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_uint2(inout uint2 vec, int idx, uint val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_uint3(inout uint3 vec, int idx, uint val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +void set_bool2(inout bool2 vec, int idx, bool val) { + vec = (idx.xx == int2(0, 1)) ? val.xx : vec; +} + +void set_bool3(inout bool3 vec, int idx, bool val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +void set_bool4(inout bool4 vec, int idx, bool val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +[numthreads(1, 1, 1)] +void main() { + float2 v2f = float2(0.0f, 0.0f); + float3 v3f = float3(0.0f, 0.0f, 0.0f); + float4 v4f = float4(0.0f, 0.0f, 0.0f, 0.0f); + int2 v2i = int2(0, 0); + int3 v3i = int3(0, 0, 0); + int4 v4i = int4(0, 0, 0, 0); + uint2 v2u = uint2(0u, 0u); + uint3 v3u = uint3(0u, 0u, 0u); + uint4 v4u = uint4(0u, 0u, 0u, 0u); + bool2 v2b = bool2(false, false); + bool3 v3b = bool3(false, false, false); + bool4 v4b = bool4(false, false, false, false); + int i = 0; + set_float2(v2f, i, 1.0f); + set_float3(v3f, i, 1.0f); + set_float4(v4f, i, 1.0f); + set_int2(v2i, i, 1); + set_int3(v3i, i, 1); + set_int4(v4i, i, 1); + set_uint2(v2u, i, 1u); + set_uint3(v3u, i, 1u); + set_uint4(v4u, i, 1u); + set_bool2(v2b, i, true); + set_bool3(v3b, i, true); + set_bool4(v4b, i, true); + return; +} diff --git a/test/tint/bug/tint/1046.wgsl.expected.hlsl b/test/tint/bug/tint/1046.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1046.wgsl.expected.hlsl rename to test/tint/bug/tint/1046.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1046.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1046.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3e72045ce --- /dev/null +++ b/test/tint/bug/tint/1046.wgsl.expected.fxc.hlsl @@ -0,0 +1,63 @@ +cbuffer cbuffer_uniforms : register(b0, space0) { + uint4 uniforms[10]; +}; +ByteAddressBuffer pointLights : register(t1, space0); +SamplerState mySampler : register(s2, space0); +Texture2D myTexture : register(t3, space0); + +struct FragmentInput { + float4 position; + float4 view_position; + float4 normal; + float2 uv; + float4 color; +}; +struct FragmentOutput { + float4 color; +}; + +float4 getColor(FragmentInput fragment) { + float4 color = float4(0.0f, 0.0f, 0.0f, 0.0f); + if ((uniforms[8].y == 0u)) { + color = fragment.color; + } else { + if ((uniforms[8].y == 1u)) { + color = fragment.normal; + color.a = 1.0f; + } else { + if ((uniforms[8].y == 2u)) { + color = asfloat(uniforms[9]); + } else { + if ((uniforms[8].y == 3u)) { + color = myTexture.Sample(mySampler, fragment.uv); + } + } + } + } + return color; +} + +struct tint_symbol_1 { + float4 view_position : TEXCOORD0; + float4 normal : TEXCOORD1; + float2 uv : TEXCOORD2; + float4 color : TEXCOORD3; + float4 position : SV_Position; +}; +struct tint_symbol_2 { + float4 color : SV_Target0; +}; + +FragmentOutput main_inner(FragmentInput fragment) { + FragmentOutput output = (FragmentOutput)0; + output.color = float4(1.0f, 0.0f, 0.0f, 1.0f); + return output; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const FragmentInput tint_symbol_5 = {tint_symbol.position, tint_symbol.view_position, tint_symbol.normal, tint_symbol.uv, tint_symbol.color}; + const FragmentOutput inner_result = main_inner(tint_symbol_5); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.color = inner_result.color; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1064.wgsl.expected.hlsl b/test/tint/bug/tint/1064.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1064.wgsl.expected.hlsl rename to test/tint/bug/tint/1064.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1064.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1064.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ed00540a4b --- /dev/null +++ b/test/tint/bug/tint/1064.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +void main() { + [loop] while (true) { + if (false) { + } else { + break; + } + { + if (true) { + } else { + break; + } + } + } + return; +} diff --git a/test/tint/bug/tint/1076.wgsl.expected.hlsl b/test/tint/bug/tint/1076.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1076.wgsl.expected.hlsl rename to test/tint/bug/tint/1076.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1076.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1076.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..868773bfbf --- /dev/null +++ b/test/tint/bug/tint/1076.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +struct FragIn { + float a; + uint mask; +}; +struct tint_symbol_2 { + float a : TEXCOORD0; + float b : TEXCOORD1; + uint mask : SV_Coverage; +}; +struct tint_symbol_3 { + float a : SV_Target0; + uint mask : SV_Coverage; +}; + +FragIn main_inner(FragIn tint_symbol, float b) { + if ((tint_symbol.mask == 0u)) { + return tint_symbol; + } + const FragIn tint_symbol_4 = {b, 1u}; + return tint_symbol_4; +} + +tint_symbol_3 main(tint_symbol_2 tint_symbol_1) { + const FragIn tint_symbol_5 = {tint_symbol_1.a, tint_symbol_1.mask}; + const FragIn inner_result = main_inner(tint_symbol_5, tint_symbol_1.b); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.a = inner_result.a; + wrapper_result.mask = inner_result.mask; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1081.wgsl.expected.hlsl b/test/tint/bug/tint/1081.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1081.wgsl.expected.hlsl rename to test/tint/bug/tint/1081.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1081.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1081.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60ace97a3c --- /dev/null +++ b/test/tint/bug/tint/1081.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static bool tint_discard = false; + +int f(int x) { + if ((x == 10)) { + tint_discard = true; + return 0; + } + return x; +} + +struct tint_symbol_1 { + nointerpolation int3 x : TEXCOORD1; +}; +struct tint_symbol_2 { + int value : SV_Target2; +}; + +int main_inner(int3 x) { + int y = x.x; + [loop] while (true) { + const int r = f(y); + if (tint_discard) { + return 0; + } + if ((r == 0)) { + break; + } + } + return y; +} + +void tint_discard_func() { + discard; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const int inner_result = main_inner(tint_symbol.x); + if (tint_discard) { + tint_discard_func(); + const tint_symbol_2 tint_symbol_3 = (tint_symbol_2)0; + return tint_symbol_3; + } + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1083.wgsl.expected.hlsl b/test/tint/bug/tint/1083.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1083.wgsl.expected.hlsl rename to test/tint/bug/tint/1083.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1083.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1083.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e793e0d74d --- /dev/null +++ b/test/tint/bug/tint/1083.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int c = (1 / 1); + return; +} diff --git a/test/tint/bug/tint/1086.wgsl.expected.hlsl b/test/tint/bug/tint/1086.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1086.wgsl.expected.hlsl rename to test/tint/bug/tint/1086.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1086.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1086.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c161767a7d --- /dev/null +++ b/test/tint/bug/tint/1086.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +static float v = 0.0f; + +void x(inout float p) { + p = 0.0f; +} + +void g() { + x(v); +} + +void f() { + g(); + return; +} diff --git a/test/tint/bug/tint/1088.spvasm.expected.hlsl b/test/tint/bug/tint/1088.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1088.spvasm.expected.hlsl rename to test/tint/bug/tint/1088.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1088.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/1088.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..be4186ae9e --- /dev/null +++ b/test/tint/bug/tint/1088.spvasm.expected.fxc.hlsl @@ -0,0 +1,72 @@ +static float3 position = float3(0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_14 : register(b2, space2) { + uint4 x_14[17]; +}; +static float2 vUV = float2(0.0f, 0.0f); +static float2 uv = float2(0.0f, 0.0f); +static float3 normal = float3(0.0f, 0.0f, 0.0f); +static float4 gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); + +float4x4 tint_symbol_4(uint4 buffer[17], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const uint scalar_offset_3 = ((offset + 48u)) / 4; + return float4x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4]), asfloat(buffer[scalar_offset_3 / 4])); +} + +void main_1() { + float4 q = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 p = float3(0.0f, 0.0f, 0.0f); + const float3 x_13 = position; + q = float4(x_13.x, x_13.y, x_13.z, 1.0f); + 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 * 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); + p.x = (x_27 + sin(((x_41 * x_45) + x_49))); + const float x_55 = p.y; + const float x_57 = asfloat(x_14[4].x); + p.y = (x_55 + sin((x_57 + 4.0f))); + const float4x4 x_69 = tint_symbol_4(x_14, 0u); + const float3 x_70 = p; + gl_Position = mul(float4(x_70.x, x_70.y, x_70.z, 1.0f), x_69); + vUV = uv; + const float x_87 = gl_Position.y; + gl_Position.y = (x_87 * -1.0f); + return; +} + +struct main_out { + float4 gl_Position; + float2 vUV_1; +}; +struct tint_symbol_1 { + float3 position_param : TEXCOORD0; + float3 normal_param : TEXCOORD1; + float2 uv_param : TEXCOORD2; +}; +struct tint_symbol_2 { + float2 vUV_1 : TEXCOORD0; + float4 gl_Position : SV_Position; +}; + +main_out main_inner(float3 position_param, float2 uv_param, float3 normal_param) { + position = position_param; + uv = uv_param; + normal = normal_param; + main_1(); + const main_out tint_symbol_6 = {gl_Position, vUV}; + return tint_symbol_6; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.position_param, tint_symbol.uv_param, tint_symbol.normal_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.gl_Position = inner_result.gl_Position; + wrapper_result.vUV_1 = inner_result.vUV_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1113.wgsl.expected.hlsl b/test/tint/bug/tint/1113.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1113.wgsl.expected.hlsl rename to test/tint/bug/tint/1113.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1113.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1113.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1069d2b811 --- /dev/null +++ b/test/tint/bug/tint/1113.wgsl.expected.fxc.hlsl @@ -0,0 +1,179 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +cbuffer cbuffer_uniforms : register(b0, space0) { + uint4 uniforms[3]; +}; +RWByteAddressBuffer indices : register(u10, space0); +RWByteAddressBuffer positions : register(u11, space0); +RWByteAddressBuffer counters : register(u20, space0); +RWByteAddressBuffer LUT : register(u21, space0); +RWByteAddressBuffer dbg : register(u50, space0); + +float3 toVoxelPos(float3 position) { + float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z)); + float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z)); + float3 bbSize = (bbMax - bbMin); + float cubeSize = max(max(bbSize.x, bbSize.y), bbSize.z); + float gridSize = float(uniforms[0].y); + float gx = ((gridSize * (position.x - asfloat(uniforms[1].x))) / cubeSize); + float gy = ((gridSize * (position.y - asfloat(uniforms[1].y))) / cubeSize); + float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / cubeSize); + return float3(gx, gy, gz); +} + +uint toIndex1D(uint gridSize, float3 voxelPos) { + uint3 icoord = uint3(voxelPos); + return ((icoord.x + (gridSize * icoord.y)) + ((gridSize * gridSize) * icoord.z)); +} + +uint3 toIndex3D(uint gridSize, uint index) { + uint z_1 = (index / value_or_one_if_zero_uint((gridSize * gridSize))); + uint y_1 = ((index - ((gridSize * gridSize) * z_1)) / (gridSize == 0u ? 1u : gridSize)); + uint x_1 = (index % (gridSize == 0u ? 1u : gridSize)); + return uint3(x_1, y_1, z_1); +} + +float3 loadPosition(uint vertexIndex) { + float3 position = float3(asfloat(positions.Load((4u * ((3u * vertexIndex) + 0u)))), asfloat(positions.Load((4u * ((3u * vertexIndex) + 1u)))), asfloat(positions.Load((4u * ((3u * vertexIndex) + 2u))))); + return position; +} + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void doIgnore() { + uint g42 = uniforms[0].x; + uint kj6 = dbg.Load(20u); + 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 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void main_count_inner(uint3 GlobalInvocationID) { + uint triangleIndex = GlobalInvocationID.x; + if ((triangleIndex >= uniforms[0].x)) { + return; + } + doIgnore(); + uint i0 = indices.Load((4u * ((3u * triangleIndex) + 0u))); + uint i1 = indices.Load((4u * ((3u * triangleIndex) + 1u))); + uint i2 = indices.Load((4u * ((3u * triangleIndex) + 2u))); + float3 p0 = loadPosition(i0); + float3 p1 = loadPosition(i1); + float3 p2 = loadPosition(i2); + float3 center = (((p0 + p1) + p2) / 3.0f); + float3 voxelPos = toVoxelPos(center); + uint voxelIndex = toIndex1D(uniforms[0].y, voxelPos); + uint acefg = tint_atomicAdd(counters, (4u * voxelIndex), 1u); + if ((triangleIndex == 0u)) { + dbg.Store(16u, asuint(uniforms[0].y)); + dbg.Store(32u, asuint(center.x)); + dbg.Store(36u, asuint(center.y)); + dbg.Store(40u, asuint(center.z)); + } +} + +[numthreads(128, 1, 1)] +void main_count(tint_symbol_1 tint_symbol) { + main_count_inner(tint_symbol.GlobalInvocationID); + return; +} + +struct tint_symbol_3 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +uint tint_atomicAdd_1(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, int value) { + int ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void main_create_lut_inner(uint3 GlobalInvocationID) { + uint voxelIndex = GlobalInvocationID.x; + doIgnore(); + uint maxVoxels = ((uniforms[0].y * uniforms[0].y) * uniforms[0].y); + if ((voxelIndex >= maxVoxels)) { + return; + } + uint numTriangles = tint_atomicLoad(counters, (4u * voxelIndex)); + int offset = -1; + if ((numTriangles > 0u)) { + const uint tint_symbol_6 = tint_atomicAdd_1(dbg, 0u, numTriangles); + offset = int(tint_symbol_6); + } + tint_atomicStore(LUT, (4u * voxelIndex), offset); +} + +[numthreads(128, 1, 1)] +void main_create_lut(tint_symbol_3 tint_symbol_2) { + main_create_lut_inner(tint_symbol_2.GlobalInvocationID); + return; +} + +struct tint_symbol_5 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +int tint_atomicAdd_2(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void main_sort_triangles_inner(uint3 GlobalInvocationID) { + uint triangleIndex = GlobalInvocationID.x; + doIgnore(); + if ((triangleIndex >= uniforms[0].x)) { + return; + } + uint i0 = indices.Load((4u * ((3u * triangleIndex) + 0u))); + uint i1 = indices.Load((4u * ((3u * triangleIndex) + 1u))); + uint i2 = indices.Load((4u * ((3u * triangleIndex) + 2u))); + float3 p0 = loadPosition(i0); + float3 p1 = loadPosition(i1); + float3 p2 = loadPosition(i2); + float3 center = (((p0 + p1) + p2) / 3.0f); + float3 voxelPos = toVoxelPos(center); + uint voxelIndex = toIndex1D(uniforms[0].y, voxelPos); + int triangleOffset = tint_atomicAdd_2(LUT, (4u * voxelIndex), 1); +} + +[numthreads(128, 1, 1)] +void main_sort_triangles(tint_symbol_5 tint_symbol_4) { + main_sort_triangles_inner(tint_symbol_4.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/tint/1118.wgsl.expected.hlsl b/test/tint/bug/tint/1118.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1118.wgsl.expected.hlsl rename to test/tint/bug/tint/1118.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1118.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1118.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..91abf604d5 --- /dev/null +++ b/test/tint/bug/tint/1118.wgsl.expected.fxc.hlsl @@ -0,0 +1,134 @@ +bug/tint/1118.wgsl:64:31 warning: 'dpdx' must only be called from uniform control flow + normalW = normalize(-(cross(dpdx(x_62), dpdy(x_64)))); + ^^^^ + +bug/tint/1118.wgsl:47:3 note: control flow depends on non-uniform value + if ((x_9 > 0.0)) { + ^^ + +bug/tint/1118.wgsl:46:19 note: reading from module-scope private variable 'fClipDistance3' may result in a non-uniform value + let x_9 : f32 = fClipDistance3; + ^^^^^^^^^^^^^^ + +static float fClipDistance3 = 0.0f; +static float fClipDistance4 = 0.0f; +cbuffer cbuffer_x_29 : register(b0, space0) { + uint4 x_29[1]; +}; +cbuffer cbuffer_x_49 : register(b1, space0) { + uint4 x_49[3]; +}; +cbuffer cbuffer_x_137 : register(b2, space0) { + uint4 x_137[1]; +}; +static float4 glFragColor = float4(0.0f, 0.0f, 0.0f, 0.0f); +static bool tint_discard = false; + +void main_1() { + float3 viewDirectionW = float3(0.0f, 0.0f, 0.0f); + float4 baseColor = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 diffuseColor = float3(0.0f, 0.0f, 0.0f); + float alpha = 0.0f; + float3 normalW = float3(0.0f, 0.0f, 0.0f); + float2 uvOffset = float2(0.0f, 0.0f); + float3 baseAmbientColor = float3(0.0f, 0.0f, 0.0f); + float glossiness = 0.0f; + float3 diffuseBase = float3(0.0f, 0.0f, 0.0f); + float shadow = 0.0f; + float4 refractionColor = float4(0.0f, 0.0f, 0.0f, 0.0f); + float4 reflectionColor = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 emissiveColor = float3(0.0f, 0.0f, 0.0f); + float3 finalDiffuse = float3(0.0f, 0.0f, 0.0f); + float3 finalSpecular = float3(0.0f, 0.0f, 0.0f); + float4 color = float4(0.0f, 0.0f, 0.0f, 0.0f); + if ((fClipDistance3 > 0.0f)) { + tint_discard = true; + return; + } + if ((fClipDistance4 > 0.0f)) { + tint_discard = true; + return; + } + const float4 x_34 = asfloat(x_29[0]); + const float3 x_38 = (0.0f).xxx; + viewDirectionW = normalize((float3(x_34.x, x_34.y, x_34.z) - x_38)); + 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 = (0.0f).xxx; + const float3 x_64 = (0.0f).xxx; + normalW = normalize(-(cross(ddx(x_62), ddy(x_64)))); + 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)); + baseColor = float4(x_78.x, x_78.y, x_78.z, baseColor.w); + baseAmbientColor = (1.0f).xxx; + glossiness = 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); + const float3 x_94 = asfloat(x_49[2].xyz); + emissiveColor = x_94; + const float3 x_96 = diffuseBase; + const float3 x_97 = diffuseColor; + 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), (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), (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; + color.w = (x_142 * x_140); + glFragColor = color; + return; +} + +struct main_out { + float4 glFragColor_1; +}; +struct tint_symbol_1 { + float fClipDistance3_param : TEXCOORD2; + float fClipDistance4_param : TEXCOORD3; +}; +struct tint_symbol_2 { + float4 glFragColor_1 : SV_Target0; +}; + +main_out main_inner(float fClipDistance3_param, float fClipDistance4_param) { + fClipDistance3 = fClipDistance3_param; + fClipDistance4 = fClipDistance4_param; + main_1(); + if (tint_discard) { + const main_out tint_symbol_8 = (main_out)0; + return tint_symbol_8; + } + const main_out tint_symbol_9 = {glFragColor}; + return tint_symbol_9; +} + +void tint_discard_func() { + discard; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.fClipDistance3_param, tint_symbol.fClipDistance4_param); + if (tint_discard) { + tint_discard_func(); + const tint_symbol_2 tint_symbol_10 = (tint_symbol_2)0; + return tint_symbol_10; + } + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.glFragColor_1 = inner_result.glFragColor_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1121.wgsl.expected.hlsl b/test/tint/bug/tint/1121.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1121.wgsl.expected.hlsl rename to test/tint/bug/tint/1121.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1121.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1121.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bfff4638cf --- /dev/null +++ b/test/tint/bug/tint/1121.wgsl.expected.fxc.hlsl @@ -0,0 +1,116 @@ +RWByteAddressBuffer lightsBuffer : register(u0, space0); + +RWByteAddressBuffer tileLightId : register(u0, space1); + +cbuffer cbuffer_config : register(b0, space2) { + uint4 config[2]; +}; + +cbuffer cbuffer_uniforms : register(b0, space3) { + uint4 uniforms[11]; +}; + +struct tint_symbol_1 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +float4x4 tint_symbol_6(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const uint scalar_offset_3 = ((offset + 48u)) / 4; + return float4x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4]), asfloat(buffer[scalar_offset_3 / 4])); +} + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void main_inner(uint3 GlobalInvocationID) { + uint index = GlobalInvocationID.x; + if ((index >= config[0].x)) { + return; + } + lightsBuffer.Store(((32u * index) + 4u), asuint(((asfloat(lightsBuffer.Load(((32u * index) + 4u))) - 0.100000001f) + (0.001f * (float(index) - (64.0f * floor((float(index) / 64.0f)))))))); + if ((asfloat(lightsBuffer.Load(((32u * index) + 4u))) < asfloat(uniforms[0].y))) { + lightsBuffer.Store(((32u * index) + 4u), asuint(asfloat(uniforms[1].y))); + } + float4x4 M = tint_symbol_6(uniforms, 96u); + float viewNear = (-(M[3][2]) / (-1.0f + M[2][2])); + float viewFar = (-(M[3][2]) / (1.0f + M[2][2])); + float4 lightPos = asfloat(lightsBuffer.Load4((32u * index))); + lightPos = mul(lightPos, tint_symbol_6(uniforms, 32u)); + lightPos = (lightPos / lightPos.w); + float lightRadius = asfloat(lightsBuffer.Load(((32u * index) + 28u))); + float4 boxMin = (lightPos - float4(float3((lightRadius).xxx), 0.0f)); + float4 boxMax = (lightPos + float4(float3((lightRadius).xxx), 0.0f)); + float4 frustumPlanes[6] = (float4[6])0; + frustumPlanes[4] = float4(0.0f, 0.0f, -1.0f, viewNear); + frustumPlanes[5] = float4(0.0f, 0.0f, 1.0f, -(viewFar)); + const int TILE_SIZE = 16; + const int TILE_COUNT_X = 2; + { + [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) - (1.0f).xx); + float2 ceilCoord = (((2.0f * float2((tilePixel0Idx + int2((TILE_SIZE).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); + frustumPlanes[1] = float4(-1.0f, 0.0f, (viewCeilCoord.x / viewNear), 0.0f); + frustumPlanes[2] = float4(0.0f, 1.0f, (-(viewFloorCoord.y) / viewNear), 0.0f); + frustumPlanes[3] = float4(0.0f, -1.0f, (viewCeilCoord.y / viewNear), 0.0f); + float dp = 0.0f; + { + [loop] for(uint i = 0u; (i < 6u); i = (i + 1u)) { + float4 p = float4(0.0f, 0.0f, 0.0f, 0.0f); + if ((frustumPlanes[i].x > 0.0f)) { + p.x = boxMax.x; + } else { + p.x = boxMin.x; + } + if ((frustumPlanes[i].y > 0.0f)) { + p.y = boxMax.y; + } else { + p.y = boxMin.y; + } + if ((frustumPlanes[i].z > 0.0f)) { + p.z = boxMax.z; + } else { + p.z = boxMin.z; + } + p.w = 1.0f; + dp = (dp + min(0.0f, dot(p, frustumPlanes[i]))); + } + } + if ((dp >= 0.0f)) { + uint tileId = uint((x_1 + (y_1 * TILE_COUNT_X))); + bool tint_tmp = (tileId < 0u); + if (!tint_tmp) { + tint_tmp = (tileId >= config[0].y); + } + if ((tint_tmp)) { + continue; + } + uint offset = tint_atomicAdd(tileLightId, (260u * tileId), 1u); + if ((offset >= config[1].x)) { + continue; + } + tileLightId.Store((((260u * tileId) + 4u) + (4u * offset)), asuint(GlobalInvocationID.x)); + } + } + } + } + } +} + +[numthreads(64, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/tint/1136.wgsl.expected.hlsl b/test/tint/bug/tint/1136.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1136.wgsl.expected.hlsl rename to test/tint/bug/tint/1136.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1136.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1136.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c50c331517 --- /dev/null +++ b/test/tint/bug/tint/1136.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer buffer : register(u0, space0); + +void main() { + buffer.Store(0u, asuint((buffer.Load(0u) + 1u))); +} diff --git a/test/tint/bug/tint/1321.wgsl.expected.hlsl b/test/tint/bug/tint/1321.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1321.wgsl.expected.hlsl rename to test/tint/bug/tint/1321.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1321.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1321.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1da087fd7c --- /dev/null +++ b/test/tint/bug/tint/1321.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +int foo() { + return 1; +} + +void main() { + float arr[4] = (float[4])0; + const int a_save = foo(); + { + [loop] for(; ; ) { + const float x = arr[a_save]; + break; + } + } + return; +} diff --git a/test/tint/bug/tint/1332.wgsl.expected.hlsl b/test/tint/bug/tint/1332.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1332.wgsl.expected.hlsl rename to test/tint/bug/tint/1332.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1332.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1332.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a9a78badf --- /dev/null +++ b/test/tint/bug/tint/1332.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void compute_main() { + float b = max(1.230000019f, 1.17549435e-38f); + return; +} diff --git a/test/tint/bug/tint/1369.wgsl.expected.hlsl b/test/tint/bug/tint/1369.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1369.wgsl.expected.hlsl rename to test/tint/bug/tint/1369.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1369.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1369.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d0fffc5379 --- /dev/null +++ b/test/tint/bug/tint/1369.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +bug/tint/1369.wgsl:3:3 warning: code is unreachable + return true; + ^^^^^^ + +bug/tint/1369.wgsl:9:9 warning: code is unreachable + var also_unreachable : bool; + ^^^^^^^^^^^^^^^^ + +static bool tint_discard = false; + +bool call_discard() { + tint_discard = true; + return false; + return true; +} + +void tint_discard_func() { + discard; +} + +void f() { + bool v = call_discard(); + if (tint_discard) { + tint_discard_func(); + return; + } + bool also_unreachable = false; + return; +} diff --git a/test/tint/bug/tint/1385.wgsl.expected.hlsl b/test/tint/bug/tint/1385.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1385.wgsl.expected.hlsl rename to test/tint/bug/tint/1385.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1385.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1385.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a0021807c --- /dev/null +++ b/test/tint/bug/tint/1385.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +ByteAddressBuffer data : register(t1, space0); + +int foo() { + return asint(data.Load((4u * 0u))); +} + +[numthreads(16, 16, 1)] +void main() { + foo(); + return; +} diff --git a/test/tint/bug/tint/1509.wgsl.expected.hlsl b/test/tint/bug/tint/1509.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1509.wgsl.expected.hlsl rename to test/tint/bug/tint/1509.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1509.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1509.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f03ad7ccf --- /dev/null +++ b/test/tint/bug/tint/1509.wgsl.expected.fxc.hlsl @@ -0,0 +1,2020 @@ +static uint v0 = 0u; +static uint v1 = 0u; +static uint v2 = 0u; +static uint v3 = 0u; +static uint v4 = 0u; +static uint v5 = 0u; +static uint v6 = 0u; +static uint v7 = 0u; +static uint v8 = 0u; +static uint v9 = 0u; +static uint v10 = 0u; +static uint v11 = 0u; +static uint v12 = 0u; +static uint v13 = 0u; +static uint v14 = 0u; +static uint v15 = 0u; +static uint v16 = 0u; +static uint v17 = 0u; +static uint v18 = 0u; +static uint v19 = 0u; +static uint v20 = 0u; +static uint v21 = 0u; +static uint v22 = 0u; +static uint v23 = 0u; +static uint v24 = 0u; +static uint v25 = 0u; +static uint v26 = 0u; +static uint v27 = 0u; +static uint v28 = 0u; +static uint v29 = 0u; +static uint v30 = 0u; +static uint v31 = 0u; +static uint v32 = 0u; +static uint v33 = 0u; +static uint v34 = 0u; +static uint v35 = 0u; +static uint v36 = 0u; +static uint v37 = 0u; +static uint v38 = 0u; +static uint v39 = 0u; +static uint v40 = 0u; +static uint v41 = 0u; +static uint v42 = 0u; +static uint v43 = 0u; +static uint v44 = 0u; +static uint v45 = 0u; +static uint v46 = 0u; +static uint v47 = 0u; +static uint v48 = 0u; +static uint v49 = 0u; +static uint v50 = 0u; +static uint v51 = 0u; +static uint v52 = 0u; +static uint v53 = 0u; +static uint v54 = 0u; +static uint v55 = 0u; +static uint v56 = 0u; +static uint v57 = 0u; +static uint v58 = 0u; +static uint v59 = 0u; +static uint v60 = 0u; +static uint v61 = 0u; +static uint v62 = 0u; +static uint v63 = 0u; +static uint v64 = 0u; +static uint v65 = 0u; +static uint v66 = 0u; +static uint v67 = 0u; +static uint v68 = 0u; +static uint v69 = 0u; +static uint v70 = 0u; +static uint v71 = 0u; +static uint v72 = 0u; +static uint v73 = 0u; +static uint v74 = 0u; +static uint v75 = 0u; +static uint v76 = 0u; +static uint v77 = 0u; +static uint v78 = 0u; +static uint v79 = 0u; +static uint v80 = 0u; +static uint v81 = 0u; +static uint v82 = 0u; +static uint v83 = 0u; +static uint v84 = 0u; +static uint v85 = 0u; +static uint v86 = 0u; +static uint v87 = 0u; +static uint v88 = 0u; +static uint v89 = 0u; +static uint v90 = 0u; +static uint v91 = 0u; +static uint v92 = 0u; +static uint v93 = 0u; +static uint v94 = 0u; +static uint v95 = 0u; +static uint v96 = 0u; +static uint v97 = 0u; +static uint v98 = 0u; +static uint v99 = 0u; +static uint v100 = 0u; +static uint v101 = 0u; +static uint v102 = 0u; +static uint v103 = 0u; +static uint v104 = 0u; +static uint v105 = 0u; +static uint v106 = 0u; +static uint v107 = 0u; +static uint v108 = 0u; +static uint v109 = 0u; +static uint v110 = 0u; +static uint v111 = 0u; +static uint v112 = 0u; +static uint v113 = 0u; +static uint v114 = 0u; +static uint v115 = 0u; +static uint v116 = 0u; +static uint v117 = 0u; +static uint v118 = 0u; +static uint v119 = 0u; +static uint v120 = 0u; +static uint v121 = 0u; +static uint v122 = 0u; +static uint v123 = 0u; +static uint v124 = 0u; +static uint v125 = 0u; +static uint v126 = 0u; +static uint v127 = 0u; +static uint v128 = 0u; +static uint v129 = 0u; +static uint v130 = 0u; +static uint v131 = 0u; +static uint v132 = 0u; +static uint v133 = 0u; +static uint v134 = 0u; +static uint v135 = 0u; +static uint v136 = 0u; +static uint v137 = 0u; +static uint v138 = 0u; +static uint v139 = 0u; +static uint v140 = 0u; +static uint v141 = 0u; +static uint v142 = 0u; +static uint v143 = 0u; +static uint v144 = 0u; +static uint v145 = 0u; +static uint v146 = 0u; +static uint v147 = 0u; +static uint v148 = 0u; +static uint v149 = 0u; +static uint v150 = 0u; +static uint v151 = 0u; +static uint v152 = 0u; +static uint v153 = 0u; +static uint v154 = 0u; +static uint v155 = 0u; +static uint v156 = 0u; +static uint v157 = 0u; +static uint v158 = 0u; +static uint v159 = 0u; +static uint v160 = 0u; +static uint v161 = 0u; +static uint v162 = 0u; +static uint v163 = 0u; +static uint v164 = 0u; +static uint v165 = 0u; +static uint v166 = 0u; +static uint v167 = 0u; +static uint v168 = 0u; +static uint v169 = 0u; +static uint v170 = 0u; +static uint v171 = 0u; +static uint v172 = 0u; +static uint v173 = 0u; +static uint v174 = 0u; +static uint v175 = 0u; +static uint v176 = 0u; +static uint v177 = 0u; +static uint v178 = 0u; +static uint v179 = 0u; +static uint v180 = 0u; +static uint v181 = 0u; +static uint v182 = 0u; +static uint v183 = 0u; +static uint v184 = 0u; +static uint v185 = 0u; +static uint v186 = 0u; +static uint v187 = 0u; +static uint v188 = 0u; +static uint v189 = 0u; +static uint v190 = 0u; +static uint v191 = 0u; +static uint v192 = 0u; +static uint v193 = 0u; +static uint v194 = 0u; +static uint v195 = 0u; +static uint v196 = 0u; +static uint v197 = 0u; +static uint v198 = 0u; +static uint v199 = 0u; +static uint v200 = 0u; +static uint v201 = 0u; +static uint v202 = 0u; +static uint v203 = 0u; +static uint v204 = 0u; +static uint v205 = 0u; +static uint v206 = 0u; +static uint v207 = 0u; +static uint v208 = 0u; +static uint v209 = 0u; +static uint v210 = 0u; +static uint v211 = 0u; +static uint v212 = 0u; +static uint v213 = 0u; +static uint v214 = 0u; +static uint v215 = 0u; +static uint v216 = 0u; +static uint v217 = 0u; +static uint v218 = 0u; +static uint v219 = 0u; +static uint v220 = 0u; +static uint v221 = 0u; +static uint v222 = 0u; +static uint v223 = 0u; +static uint v224 = 0u; +static uint v225 = 0u; +static uint v226 = 0u; +static uint v227 = 0u; +static uint v228 = 0u; +static uint v229 = 0u; +static uint v230 = 0u; +static uint v231 = 0u; +static uint v232 = 0u; +static uint v233 = 0u; +static uint v234 = 0u; +static uint v235 = 0u; +static uint v236 = 0u; +static uint v237 = 0u; +static uint v238 = 0u; +static uint v239 = 0u; +static uint v240 = 0u; +static uint v241 = 0u; +static uint v242 = 0u; +static uint v243 = 0u; +static uint v244 = 0u; +static uint v245 = 0u; +static uint v246 = 0u; +static uint v247 = 0u; +static uint v248 = 0u; +static uint v249 = 0u; +static uint v250 = 0u; +static uint v251 = 0u; +static uint v252 = 0u; +static uint v253 = 0u; +static uint v254 = 0u; +static uint v255 = 0u; +static uint v256 = 0u; +static uint v257 = 0u; +static uint v258 = 0u; +static uint v259 = 0u; +static uint v260 = 0u; +static uint v261 = 0u; +static uint v262 = 0u; +static uint v263 = 0u; +static uint v264 = 0u; +static uint v265 = 0u; +static uint v266 = 0u; +static uint v267 = 0u; +static uint v268 = 0u; +static uint v269 = 0u; +static uint v270 = 0u; +static uint v271 = 0u; +static uint v272 = 0u; +static uint v273 = 0u; +static uint v274 = 0u; +static uint v275 = 0u; +static uint v276 = 0u; +static uint v277 = 0u; +static uint v278 = 0u; +static uint v279 = 0u; +static uint v280 = 0u; +static uint v281 = 0u; +static uint v282 = 0u; +static uint v283 = 0u; +static uint v284 = 0u; +static uint v285 = 0u; +static uint v286 = 0u; +static uint v287 = 0u; +static uint v288 = 0u; +static uint v289 = 0u; +static uint v290 = 0u; +static uint v291 = 0u; +static uint v292 = 0u; +static uint v293 = 0u; +static uint v294 = 0u; +static uint v295 = 0u; +static uint v296 = 0u; +static uint v297 = 0u; +static uint v298 = 0u; +static uint v299 = 0u; +static uint v300 = 0u; +static uint v301 = 0u; +static uint v302 = 0u; +static uint v303 = 0u; +static uint v304 = 0u; +static uint v305 = 0u; +static uint v306 = 0u; +static uint v307 = 0u; +static uint v308 = 0u; +static uint v309 = 0u; +static uint v310 = 0u; +static uint v311 = 0u; +static uint v312 = 0u; +static uint v313 = 0u; +static uint v314 = 0u; +static uint v315 = 0u; +static uint v316 = 0u; +static uint v317 = 0u; +static uint v318 = 0u; +static uint v319 = 0u; +static uint v320 = 0u; +static uint v321 = 0u; +static uint v322 = 0u; +static uint v323 = 0u; +static uint v324 = 0u; +static uint v325 = 0u; +static uint v326 = 0u; +static uint v327 = 0u; +static uint v328 = 0u; +static uint v329 = 0u; +static uint v330 = 0u; +static uint v331 = 0u; +static uint v332 = 0u; +static uint v333 = 0u; +static uint v334 = 0u; +static uint v335 = 0u; +static uint v336 = 0u; +static uint v337 = 0u; +static uint v338 = 0u; +static uint v339 = 0u; +static uint v340 = 0u; +static uint v341 = 0u; +static uint v342 = 0u; +static uint v343 = 0u; +static uint v344 = 0u; +static uint v345 = 0u; +static uint v346 = 0u; +static uint v347 = 0u; +static uint v348 = 0u; +static uint v349 = 0u; +static uint v350 = 0u; +static uint v351 = 0u; +static uint v352 = 0u; +static uint v353 = 0u; +static uint v354 = 0u; +static uint v355 = 0u; +static uint v356 = 0u; +static uint v357 = 0u; +static uint v358 = 0u; +static uint v359 = 0u; +static uint v360 = 0u; +static uint v361 = 0u; +static uint v362 = 0u; +static uint v363 = 0u; +static uint v364 = 0u; +static uint v365 = 0u; +static uint v366 = 0u; +static uint v367 = 0u; +static uint v368 = 0u; +static uint v369 = 0u; +static uint v370 = 0u; +static uint v371 = 0u; +static uint v372 = 0u; +static uint v373 = 0u; +static uint v374 = 0u; +static uint v375 = 0u; +static uint v376 = 0u; +static uint v377 = 0u; +static uint v378 = 0u; +static uint v379 = 0u; +static uint v380 = 0u; +static uint v381 = 0u; +static uint v382 = 0u; +static uint v383 = 0u; +static uint v384 = 0u; +static uint v385 = 0u; +static uint v386 = 0u; +static uint v387 = 0u; +static uint v388 = 0u; +static uint v389 = 0u; +static uint v390 = 0u; +static uint v391 = 0u; +static uint v392 = 0u; +static uint v393 = 0u; +static uint v394 = 0u; +static uint v395 = 0u; +static uint v396 = 0u; +static uint v397 = 0u; +static uint v398 = 0u; +static uint v399 = 0u; +static uint v400 = 0u; +static uint v401 = 0u; +static uint v402 = 0u; +static uint v403 = 0u; +static uint v404 = 0u; +static uint v405 = 0u; +static uint v406 = 0u; +static uint v407 = 0u; +static uint v408 = 0u; +static uint v409 = 0u; +static uint v410 = 0u; +static uint v411 = 0u; +static uint v412 = 0u; +static uint v413 = 0u; +static uint v414 = 0u; +static uint v415 = 0u; +static uint v416 = 0u; +static uint v417 = 0u; +static uint v418 = 0u; +static uint v419 = 0u; +static uint v420 = 0u; +static uint v421 = 0u; +static uint v422 = 0u; +static uint v423 = 0u; +static uint v424 = 0u; +static uint v425 = 0u; +static uint v426 = 0u; +static uint v427 = 0u; +static uint v428 = 0u; +static uint v429 = 0u; +static uint v430 = 0u; +static uint v431 = 0u; +static uint v432 = 0u; +static uint v433 = 0u; +static uint v434 = 0u; +static uint v435 = 0u; +static uint v436 = 0u; +static uint v437 = 0u; +static uint v438 = 0u; +static uint v439 = 0u; +static uint v440 = 0u; +static uint v441 = 0u; +static uint v442 = 0u; +static uint v443 = 0u; +static uint v444 = 0u; +static uint v445 = 0u; +static uint v446 = 0u; +static uint v447 = 0u; +static uint v448 = 0u; +static uint v449 = 0u; +static uint v450 = 0u; +static uint v451 = 0u; +static uint v452 = 0u; +static uint v453 = 0u; +static uint v454 = 0u; +static uint v455 = 0u; +static uint v456 = 0u; +static uint v457 = 0u; +static uint v458 = 0u; +static uint v459 = 0u; +static uint v460 = 0u; +static uint v461 = 0u; +static uint v462 = 0u; +static uint v463 = 0u; +static uint v464 = 0u; +static uint v465 = 0u; +static uint v466 = 0u; +static uint v467 = 0u; +static uint v468 = 0u; +static uint v469 = 0u; +static uint v470 = 0u; +static uint v471 = 0u; +static uint v472 = 0u; +static uint v473 = 0u; +static uint v474 = 0u; +static uint v475 = 0u; +static uint v476 = 0u; +static uint v477 = 0u; +static uint v478 = 0u; +static uint v479 = 0u; +static uint v480 = 0u; +static uint v481 = 0u; +static uint v482 = 0u; +static uint v483 = 0u; +static uint v484 = 0u; +static uint v485 = 0u; +static uint v486 = 0u; +static uint v487 = 0u; +static uint v488 = 0u; +static uint v489 = 0u; +static uint v490 = 0u; +static uint v491 = 0u; +static uint v492 = 0u; +static uint v493 = 0u; +static uint v494 = 0u; +static uint v495 = 0u; +static uint v496 = 0u; +static uint v497 = 0u; +static uint v498 = 0u; +static uint v499 = 0u; +static uint v500 = 0u; +static uint v501 = 0u; +static uint v502 = 0u; +static uint v503 = 0u; +static uint v504 = 0u; +static uint v505 = 0u; +static uint v506 = 0u; +static uint v507 = 0u; +static uint v508 = 0u; +static uint v509 = 0u; +static uint v510 = 0u; +static uint v511 = 0u; +static uint v512 = 0u; +static uint v513 = 0u; +static uint v514 = 0u; +static uint v515 = 0u; +static uint v516 = 0u; +static uint v517 = 0u; +static uint v518 = 0u; +static uint v519 = 0u; +static uint v520 = 0u; +static uint v521 = 0u; +static uint v522 = 0u; +static uint v523 = 0u; +static uint v524 = 0u; +static uint v525 = 0u; +static uint v526 = 0u; +static uint v527 = 0u; +static uint v528 = 0u; +static uint v529 = 0u; +static uint v530 = 0u; +static uint v531 = 0u; +static uint v532 = 0u; +static uint v533 = 0u; +static uint v534 = 0u; +static uint v535 = 0u; +static uint v536 = 0u; +static uint v537 = 0u; +static uint v538 = 0u; +static uint v539 = 0u; +static uint v540 = 0u; +static uint v541 = 0u; +static uint v542 = 0u; +static uint v543 = 0u; +static uint v544 = 0u; +static uint v545 = 0u; +static uint v546 = 0u; +static uint v547 = 0u; +static uint v548 = 0u; +static uint v549 = 0u; +static uint v550 = 0u; +static uint v551 = 0u; +static uint v552 = 0u; +static uint v553 = 0u; +static uint v554 = 0u; +static uint v555 = 0u; +static uint v556 = 0u; +static uint v557 = 0u; +static uint v558 = 0u; +static uint v559 = 0u; +static uint v560 = 0u; +static uint v561 = 0u; +static uint v562 = 0u; +static uint v563 = 0u; +static uint v564 = 0u; +static uint v565 = 0u; +static uint v566 = 0u; +static uint v567 = 0u; +static uint v568 = 0u; +static uint v569 = 0u; +static uint v570 = 0u; +static uint v571 = 0u; +static uint v572 = 0u; +static uint v573 = 0u; +static uint v574 = 0u; +static uint v575 = 0u; +static uint v576 = 0u; +static uint v577 = 0u; +static uint v578 = 0u; +static uint v579 = 0u; +static uint v580 = 0u; +static uint v581 = 0u; +static uint v582 = 0u; +static uint v583 = 0u; +static uint v584 = 0u; +static uint v585 = 0u; +static uint v586 = 0u; +static uint v587 = 0u; +static uint v588 = 0u; +static uint v589 = 0u; +static uint v590 = 0u; +static uint v591 = 0u; +static uint v592 = 0u; +static uint v593 = 0u; +static uint v594 = 0u; +static uint v595 = 0u; +static uint v596 = 0u; +static uint v597 = 0u; +static uint v598 = 0u; +static uint v599 = 0u; +static uint v600 = 0u; +static uint v601 = 0u; +static uint v602 = 0u; +static uint v603 = 0u; +static uint v604 = 0u; +static uint v605 = 0u; +static uint v606 = 0u; +static uint v607 = 0u; +static uint v608 = 0u; +static uint v609 = 0u; +static uint v610 = 0u; +static uint v611 = 0u; +static uint v612 = 0u; +static uint v613 = 0u; +static uint v614 = 0u; +static uint v615 = 0u; +static uint v616 = 0u; +static uint v617 = 0u; +static uint v618 = 0u; +static uint v619 = 0u; +static uint v620 = 0u; +static uint v621 = 0u; +static uint v622 = 0u; +static uint v623 = 0u; +static uint v624 = 0u; +static uint v625 = 0u; +static uint v626 = 0u; +static uint v627 = 0u; +static uint v628 = 0u; +static uint v629 = 0u; +static uint v630 = 0u; +static uint v631 = 0u; +static uint v632 = 0u; +static uint v633 = 0u; +static uint v634 = 0u; +static uint v635 = 0u; +static uint v636 = 0u; +static uint v637 = 0u; +static uint v638 = 0u; +static uint v639 = 0u; +static uint v640 = 0u; +static uint v641 = 0u; +static uint v642 = 0u; +static uint v643 = 0u; +static uint v644 = 0u; +static uint v645 = 0u; +static uint v646 = 0u; +static uint v647 = 0u; +static uint v648 = 0u; +static uint v649 = 0u; +static uint v650 = 0u; +static uint v651 = 0u; +static uint v652 = 0u; +static uint v653 = 0u; +static uint v654 = 0u; +static uint v655 = 0u; +static uint v656 = 0u; +static uint v657 = 0u; +static uint v658 = 0u; +static uint v659 = 0u; +static uint v660 = 0u; +static uint v661 = 0u; +static uint v662 = 0u; +static uint v663 = 0u; +static uint v664 = 0u; +static uint v665 = 0u; +static uint v666 = 0u; +static uint v667 = 0u; +static uint v668 = 0u; +static uint v669 = 0u; +static uint v670 = 0u; +static uint v671 = 0u; +static uint v672 = 0u; +static uint v673 = 0u; +static uint v674 = 0u; +static uint v675 = 0u; +static uint v676 = 0u; +static uint v677 = 0u; +static uint v678 = 0u; +static uint v679 = 0u; +static uint v680 = 0u; +static uint v681 = 0u; +static uint v682 = 0u; +static uint v683 = 0u; +static uint v684 = 0u; +static uint v685 = 0u; +static uint v686 = 0u; +static uint v687 = 0u; +static uint v688 = 0u; +static uint v689 = 0u; +static uint v690 = 0u; +static uint v691 = 0u; +static uint v692 = 0u; +static uint v693 = 0u; +static uint v694 = 0u; +static uint v695 = 0u; +static uint v696 = 0u; +static uint v697 = 0u; +static uint v698 = 0u; +static uint v699 = 0u; +static uint v700 = 0u; +static uint v701 = 0u; +static uint v702 = 0u; +static uint v703 = 0u; +static uint v704 = 0u; +static uint v705 = 0u; +static uint v706 = 0u; +static uint v707 = 0u; +static uint v708 = 0u; +static uint v709 = 0u; +static uint v710 = 0u; +static uint v711 = 0u; +static uint v712 = 0u; +static uint v713 = 0u; +static uint v714 = 0u; +static uint v715 = 0u; +static uint v716 = 0u; +static uint v717 = 0u; +static uint v718 = 0u; +static uint v719 = 0u; +static uint v720 = 0u; +static uint v721 = 0u; +static uint v722 = 0u; +static uint v723 = 0u; +static uint v724 = 0u; +static uint v725 = 0u; +static uint v726 = 0u; +static uint v727 = 0u; +static uint v728 = 0u; +static uint v729 = 0u; +static uint v730 = 0u; +static uint v731 = 0u; +static uint v732 = 0u; +static uint v733 = 0u; +static uint v734 = 0u; +static uint v735 = 0u; +static uint v736 = 0u; +static uint v737 = 0u; +static uint v738 = 0u; +static uint v739 = 0u; +static uint v740 = 0u; +static uint v741 = 0u; +static uint v742 = 0u; +static uint v743 = 0u; +static uint v744 = 0u; +static uint v745 = 0u; +static uint v746 = 0u; +static uint v747 = 0u; +static uint v748 = 0u; +static uint v749 = 0u; +static uint v750 = 0u; +static uint v751 = 0u; +static uint v752 = 0u; +static uint v753 = 0u; +static uint v754 = 0u; +static uint v755 = 0u; +static uint v756 = 0u; +static uint v757 = 0u; +static uint v758 = 0u; +static uint v759 = 0u; +static uint v760 = 0u; +static uint v761 = 0u; +static uint v762 = 0u; +static uint v763 = 0u; +static uint v764 = 0u; +static uint v765 = 0u; +static uint v766 = 0u; +static uint v767 = 0u; +static uint v768 = 0u; +static uint v769 = 0u; +static uint v770 = 0u; +static uint v771 = 0u; +static uint v772 = 0u; +static uint v773 = 0u; +static uint v774 = 0u; +static uint v775 = 0u; +static uint v776 = 0u; +static uint v777 = 0u; +static uint v778 = 0u; +static uint v779 = 0u; +static uint v780 = 0u; +static uint v781 = 0u; +static uint v782 = 0u; +static uint v783 = 0u; +static uint v784 = 0u; +static uint v785 = 0u; +static uint v786 = 0u; +static uint v787 = 0u; +static uint v788 = 0u; +static uint v789 = 0u; +static uint v790 = 0u; +static uint v791 = 0u; +static uint v792 = 0u; +static uint v793 = 0u; +static uint v794 = 0u; +static uint v795 = 0u; +static uint v796 = 0u; +static uint v797 = 0u; +static uint v798 = 0u; +static uint v799 = 0u; +static uint v800 = 0u; +static uint v801 = 0u; +static uint v802 = 0u; +static uint v803 = 0u; +static uint v804 = 0u; +static uint v805 = 0u; +static uint v806 = 0u; +static uint v807 = 0u; +static uint v808 = 0u; +static uint v809 = 0u; +static uint v810 = 0u; +static uint v811 = 0u; +static uint v812 = 0u; +static uint v813 = 0u; +static uint v814 = 0u; +static uint v815 = 0u; +static uint v816 = 0u; +static uint v817 = 0u; +static uint v818 = 0u; +static uint v819 = 0u; +static uint v820 = 0u; +static uint v821 = 0u; +static uint v822 = 0u; +static uint v823 = 0u; +static uint v824 = 0u; +static uint v825 = 0u; +static uint v826 = 0u; +static uint v827 = 0u; +static uint v828 = 0u; +static uint v829 = 0u; +static uint v830 = 0u; +static uint v831 = 0u; +static uint v832 = 0u; +static uint v833 = 0u; +static uint v834 = 0u; +static uint v835 = 0u; +static uint v836 = 0u; +static uint v837 = 0u; +static uint v838 = 0u; +static uint v839 = 0u; +static uint v840 = 0u; +static uint v841 = 0u; +static uint v842 = 0u; +static uint v843 = 0u; +static uint v844 = 0u; +static uint v845 = 0u; +static uint v846 = 0u; +static uint v847 = 0u; +static uint v848 = 0u; +static uint v849 = 0u; +static uint v850 = 0u; +static uint v851 = 0u; +static uint v852 = 0u; +static uint v853 = 0u; +static uint v854 = 0u; +static uint v855 = 0u; +static uint v856 = 0u; +static uint v857 = 0u; +static uint v858 = 0u; +static uint v859 = 0u; +static uint v860 = 0u; +static uint v861 = 0u; +static uint v862 = 0u; +static uint v863 = 0u; +static uint v864 = 0u; +static uint v865 = 0u; +static uint v866 = 0u; +static uint v867 = 0u; +static uint v868 = 0u; +static uint v869 = 0u; +static uint v870 = 0u; +static uint v871 = 0u; +static uint v872 = 0u; +static uint v873 = 0u; +static uint v874 = 0u; +static uint v875 = 0u; +static uint v876 = 0u; +static uint v877 = 0u; +static uint v878 = 0u; +static uint v879 = 0u; +static uint v880 = 0u; +static uint v881 = 0u; +static uint v882 = 0u; +static uint v883 = 0u; +static uint v884 = 0u; +static uint v885 = 0u; +static uint v886 = 0u; +static uint v887 = 0u; +static uint v888 = 0u; +static uint v889 = 0u; +static uint v890 = 0u; +static uint v891 = 0u; +static uint v892 = 0u; +static uint v893 = 0u; +static uint v894 = 0u; +static uint v895 = 0u; +static uint v896 = 0u; +static uint v897 = 0u; +static uint v898 = 0u; +static uint v899 = 0u; +static uint v900 = 0u; +static uint v901 = 0u; +static uint v902 = 0u; +static uint v903 = 0u; +static uint v904 = 0u; +static uint v905 = 0u; +static uint v906 = 0u; +static uint v907 = 0u; +static uint v908 = 0u; +static uint v909 = 0u; +static uint v910 = 0u; +static uint v911 = 0u; +static uint v912 = 0u; +static uint v913 = 0u; +static uint v914 = 0u; +static uint v915 = 0u; +static uint v916 = 0u; +static uint v917 = 0u; +static uint v918 = 0u; +static uint v919 = 0u; +static uint v920 = 0u; +static uint v921 = 0u; +static uint v922 = 0u; +static uint v923 = 0u; +static uint v924 = 0u; +static uint v925 = 0u; +static uint v926 = 0u; +static uint v927 = 0u; +static uint v928 = 0u; +static uint v929 = 0u; +static uint v930 = 0u; +static uint v931 = 0u; +static uint v932 = 0u; +static uint v933 = 0u; +static uint v934 = 0u; +static uint v935 = 0u; +static uint v936 = 0u; +static uint v937 = 0u; +static uint v938 = 0u; +static uint v939 = 0u; +static uint v940 = 0u; +static uint v941 = 0u; +static uint v942 = 0u; +static uint v943 = 0u; +static uint v944 = 0u; +static uint v945 = 0u; +static uint v946 = 0u; +static uint v947 = 0u; +static uint v948 = 0u; +static uint v949 = 0u; +static uint v950 = 0u; +static uint v951 = 0u; +static uint v952 = 0u; +static uint v953 = 0u; +static uint v954 = 0u; +static uint v955 = 0u; +static uint v956 = 0u; +static uint v957 = 0u; +static uint v958 = 0u; +static uint v959 = 0u; +static uint v960 = 0u; +static uint v961 = 0u; +static uint v962 = 0u; +static uint v963 = 0u; +static uint v964 = 0u; +static uint v965 = 0u; +static uint v966 = 0u; +static uint v967 = 0u; +static uint v968 = 0u; +static uint v969 = 0u; +static uint v970 = 0u; +static uint v971 = 0u; +static uint v972 = 0u; +static uint v973 = 0u; +static uint v974 = 0u; +static uint v975 = 0u; +static uint v976 = 0u; +static uint v977 = 0u; +static uint v978 = 0u; +static uint v979 = 0u; +static uint v980 = 0u; +static uint v981 = 0u; +static uint v982 = 0u; +static uint v983 = 0u; +static uint v984 = 0u; +static uint v985 = 0u; +static uint v986 = 0u; +static uint v987 = 0u; +static uint v988 = 0u; +static uint v989 = 0u; +static uint v990 = 0u; +static uint v991 = 0u; +static uint v992 = 0u; +static uint v993 = 0u; +static uint v994 = 0u; +static uint v995 = 0u; +static uint v996 = 0u; +static uint v997 = 0u; +static uint v998 = 0u; +static uint v999 = 0u; + +uint foo() { + uint x = 0u; + x = (x + v0); + x = (x + v1); + x = (x + v2); + x = (x + v3); + x = (x + v4); + x = (x + v5); + x = (x + v6); + x = (x + v7); + x = (x + v8); + x = (x + v9); + x = (x + v10); + x = (x + v11); + x = (x + v12); + x = (x + v13); + x = (x + v14); + x = (x + v15); + x = (x + v16); + x = (x + v17); + x = (x + v18); + x = (x + v19); + x = (x + v20); + x = (x + v21); + x = (x + v22); + x = (x + v23); + x = (x + v24); + x = (x + v25); + x = (x + v26); + x = (x + v27); + x = (x + v28); + x = (x + v29); + x = (x + v30); + x = (x + v31); + x = (x + v32); + x = (x + v33); + x = (x + v34); + x = (x + v35); + x = (x + v36); + x = (x + v37); + x = (x + v38); + x = (x + v39); + x = (x + v40); + x = (x + v41); + x = (x + v42); + x = (x + v43); + x = (x + v44); + x = (x + v45); + x = (x + v46); + x = (x + v47); + x = (x + v48); + x = (x + v49); + x = (x + v50); + x = (x + v51); + x = (x + v52); + x = (x + v53); + x = (x + v54); + x = (x + v55); + x = (x + v56); + x = (x + v57); + x = (x + v58); + x = (x + v59); + x = (x + v60); + x = (x + v61); + x = (x + v62); + x = (x + v63); + x = (x + v64); + x = (x + v65); + x = (x + v66); + x = (x + v67); + x = (x + v68); + x = (x + v69); + x = (x + v70); + x = (x + v71); + x = (x + v72); + x = (x + v73); + x = (x + v74); + x = (x + v75); + x = (x + v76); + x = (x + v77); + x = (x + v78); + x = (x + v79); + x = (x + v80); + x = (x + v81); + x = (x + v82); + x = (x + v83); + x = (x + v84); + x = (x + v85); + x = (x + v86); + x = (x + v87); + x = (x + v88); + x = (x + v89); + x = (x + v90); + x = (x + v91); + x = (x + v92); + x = (x + v93); + x = (x + v94); + x = (x + v95); + x = (x + v96); + x = (x + v97); + x = (x + v98); + x = (x + v99); + x = (x + v100); + x = (x + v101); + x = (x + v102); + x = (x + v103); + x = (x + v104); + x = (x + v105); + x = (x + v106); + x = (x + v107); + x = (x + v108); + x = (x + v109); + x = (x + v110); + x = (x + v111); + x = (x + v112); + x = (x + v113); + x = (x + v114); + x = (x + v115); + x = (x + v116); + x = (x + v117); + x = (x + v118); + x = (x + v119); + x = (x + v120); + x = (x + v121); + x = (x + v122); + x = (x + v123); + x = (x + v124); + x = (x + v125); + x = (x + v126); + x = (x + v127); + x = (x + v128); + x = (x + v129); + x = (x + v130); + x = (x + v131); + x = (x + v132); + x = (x + v133); + x = (x + v134); + x = (x + v135); + x = (x + v136); + x = (x + v137); + x = (x + v138); + x = (x + v139); + x = (x + v140); + x = (x + v141); + x = (x + v142); + x = (x + v143); + x = (x + v144); + x = (x + v145); + x = (x + v146); + x = (x + v147); + x = (x + v148); + x = (x + v149); + x = (x + v150); + x = (x + v151); + x = (x + v152); + x = (x + v153); + x = (x + v154); + x = (x + v155); + x = (x + v156); + x = (x + v157); + x = (x + v158); + x = (x + v159); + x = (x + v160); + x = (x + v161); + x = (x + v162); + x = (x + v163); + x = (x + v164); + x = (x + v165); + x = (x + v166); + x = (x + v167); + x = (x + v168); + x = (x + v169); + x = (x + v170); + x = (x + v171); + x = (x + v172); + x = (x + v173); + x = (x + v174); + x = (x + v175); + x = (x + v176); + x = (x + v177); + x = (x + v178); + x = (x + v179); + x = (x + v180); + x = (x + v181); + x = (x + v182); + x = (x + v183); + x = (x + v184); + x = (x + v185); + x = (x + v186); + x = (x + v187); + x = (x + v188); + x = (x + v189); + x = (x + v190); + x = (x + v191); + x = (x + v192); + x = (x + v193); + x = (x + v194); + x = (x + v195); + x = (x + v196); + x = (x + v197); + x = (x + v198); + x = (x + v199); + x = (x + v200); + x = (x + v201); + x = (x + v202); + x = (x + v203); + x = (x + v204); + x = (x + v205); + x = (x + v206); + x = (x + v207); + x = (x + v208); + x = (x + v209); + x = (x + v210); + x = (x + v211); + x = (x + v212); + x = (x + v213); + x = (x + v214); + x = (x + v215); + x = (x + v216); + x = (x + v217); + x = (x + v218); + x = (x + v219); + x = (x + v220); + x = (x + v221); + x = (x + v222); + x = (x + v223); + x = (x + v224); + x = (x + v225); + x = (x + v226); + x = (x + v227); + x = (x + v228); + x = (x + v229); + x = (x + v230); + x = (x + v231); + x = (x + v232); + x = (x + v233); + x = (x + v234); + x = (x + v235); + x = (x + v236); + x = (x + v237); + x = (x + v238); + x = (x + v239); + x = (x + v240); + x = (x + v241); + x = (x + v242); + x = (x + v243); + x = (x + v244); + x = (x + v245); + x = (x + v246); + x = (x + v247); + x = (x + v248); + x = (x + v249); + x = (x + v250); + x = (x + v251); + x = (x + v252); + x = (x + v253); + x = (x + v254); + x = (x + v255); + x = (x + v256); + x = (x + v257); + x = (x + v258); + x = (x + v259); + x = (x + v260); + x = (x + v261); + x = (x + v262); + x = (x + v263); + x = (x + v264); + x = (x + v265); + x = (x + v266); + x = (x + v267); + x = (x + v268); + x = (x + v269); + x = (x + v270); + x = (x + v271); + x = (x + v272); + x = (x + v273); + x = (x + v274); + x = (x + v275); + x = (x + v276); + x = (x + v277); + x = (x + v278); + x = (x + v279); + x = (x + v280); + x = (x + v281); + x = (x + v282); + x = (x + v283); + x = (x + v284); + x = (x + v285); + x = (x + v286); + x = (x + v287); + x = (x + v288); + x = (x + v289); + x = (x + v290); + x = (x + v291); + x = (x + v292); + x = (x + v293); + x = (x + v294); + x = (x + v295); + x = (x + v296); + x = (x + v297); + x = (x + v298); + x = (x + v299); + x = (x + v300); + x = (x + v301); + x = (x + v302); + x = (x + v303); + x = (x + v304); + x = (x + v305); + x = (x + v306); + x = (x + v307); + x = (x + v308); + x = (x + v309); + x = (x + v310); + x = (x + v311); + x = (x + v312); + x = (x + v313); + x = (x + v314); + x = (x + v315); + x = (x + v316); + x = (x + v317); + x = (x + v318); + x = (x + v319); + x = (x + v320); + x = (x + v321); + x = (x + v322); + x = (x + v323); + x = (x + v324); + x = (x + v325); + x = (x + v326); + x = (x + v327); + x = (x + v328); + x = (x + v329); + x = (x + v330); + x = (x + v331); + x = (x + v332); + x = (x + v333); + x = (x + v334); + x = (x + v335); + x = (x + v336); + x = (x + v337); + x = (x + v338); + x = (x + v339); + x = (x + v340); + x = (x + v341); + x = (x + v342); + x = (x + v343); + x = (x + v344); + x = (x + v345); + x = (x + v346); + x = (x + v347); + x = (x + v348); + x = (x + v349); + x = (x + v350); + x = (x + v351); + x = (x + v352); + x = (x + v353); + x = (x + v354); + x = (x + v355); + x = (x + v356); + x = (x + v357); + x = (x + v358); + x = (x + v359); + x = (x + v360); + x = (x + v361); + x = (x + v362); + x = (x + v363); + x = (x + v364); + x = (x + v365); + x = (x + v366); + x = (x + v367); + x = (x + v368); + x = (x + v369); + x = (x + v370); + x = (x + v371); + x = (x + v372); + x = (x + v373); + x = (x + v374); + x = (x + v375); + x = (x + v376); + x = (x + v377); + x = (x + v378); + x = (x + v379); + x = (x + v380); + x = (x + v381); + x = (x + v382); + x = (x + v383); + x = (x + v384); + x = (x + v385); + x = (x + v386); + x = (x + v387); + x = (x + v388); + x = (x + v389); + x = (x + v390); + x = (x + v391); + x = (x + v392); + x = (x + v393); + x = (x + v394); + x = (x + v395); + x = (x + v396); + x = (x + v397); + x = (x + v398); + x = (x + v399); + x = (x + v400); + x = (x + v401); + x = (x + v402); + x = (x + v403); + x = (x + v404); + x = (x + v405); + x = (x + v406); + x = (x + v407); + x = (x + v408); + x = (x + v409); + x = (x + v410); + x = (x + v411); + x = (x + v412); + x = (x + v413); + x = (x + v414); + x = (x + v415); + x = (x + v416); + x = (x + v417); + x = (x + v418); + x = (x + v419); + x = (x + v420); + x = (x + v421); + x = (x + v422); + x = (x + v423); + x = (x + v424); + x = (x + v425); + x = (x + v426); + x = (x + v427); + x = (x + v428); + x = (x + v429); + x = (x + v430); + x = (x + v431); + x = (x + v432); + x = (x + v433); + x = (x + v434); + x = (x + v435); + x = (x + v436); + x = (x + v437); + x = (x + v438); + x = (x + v439); + x = (x + v440); + x = (x + v441); + x = (x + v442); + x = (x + v443); + x = (x + v444); + x = (x + v445); + x = (x + v446); + x = (x + v447); + x = (x + v448); + x = (x + v449); + x = (x + v450); + x = (x + v451); + x = (x + v452); + x = (x + v453); + x = (x + v454); + x = (x + v455); + x = (x + v456); + x = (x + v457); + x = (x + v458); + x = (x + v459); + x = (x + v460); + x = (x + v461); + x = (x + v462); + x = (x + v463); + x = (x + v464); + x = (x + v465); + x = (x + v466); + x = (x + v467); + x = (x + v468); + x = (x + v469); + x = (x + v470); + x = (x + v471); + x = (x + v472); + x = (x + v473); + x = (x + v474); + x = (x + v475); + x = (x + v476); + x = (x + v477); + x = (x + v478); + x = (x + v479); + x = (x + v480); + x = (x + v481); + x = (x + v482); + x = (x + v483); + x = (x + v484); + x = (x + v485); + x = (x + v486); + x = (x + v487); + x = (x + v488); + x = (x + v489); + x = (x + v490); + x = (x + v491); + x = (x + v492); + x = (x + v493); + x = (x + v494); + x = (x + v495); + x = (x + v496); + x = (x + v497); + x = (x + v498); + x = (x + v499); + x = (x + v500); + x = (x + v501); + x = (x + v502); + x = (x + v503); + x = (x + v504); + x = (x + v505); + x = (x + v506); + x = (x + v507); + x = (x + v508); + x = (x + v509); + x = (x + v510); + x = (x + v511); + x = (x + v512); + x = (x + v513); + x = (x + v514); + x = (x + v515); + x = (x + v516); + x = (x + v517); + x = (x + v518); + x = (x + v519); + x = (x + v520); + x = (x + v521); + x = (x + v522); + x = (x + v523); + x = (x + v524); + x = (x + v525); + x = (x + v526); + x = (x + v527); + x = (x + v528); + x = (x + v529); + x = (x + v530); + x = (x + v531); + x = (x + v532); + x = (x + v533); + x = (x + v534); + x = (x + v535); + x = (x + v536); + x = (x + v537); + x = (x + v538); + x = (x + v539); + x = (x + v540); + x = (x + v541); + x = (x + v542); + x = (x + v543); + x = (x + v544); + x = (x + v545); + x = (x + v546); + x = (x + v547); + x = (x + v548); + x = (x + v549); + x = (x + v550); + x = (x + v551); + x = (x + v552); + x = (x + v553); + x = (x + v554); + x = (x + v555); + x = (x + v556); + x = (x + v557); + x = (x + v558); + x = (x + v559); + x = (x + v560); + x = (x + v561); + x = (x + v562); + x = (x + v563); + x = (x + v564); + x = (x + v565); + x = (x + v566); + x = (x + v567); + x = (x + v568); + x = (x + v569); + x = (x + v570); + x = (x + v571); + x = (x + v572); + x = (x + v573); + x = (x + v574); + x = (x + v575); + x = (x + v576); + x = (x + v577); + x = (x + v578); + x = (x + v579); + x = (x + v580); + x = (x + v581); + x = (x + v582); + x = (x + v583); + x = (x + v584); + x = (x + v585); + x = (x + v586); + x = (x + v587); + x = (x + v588); + x = (x + v589); + x = (x + v590); + x = (x + v591); + x = (x + v592); + x = (x + v593); + x = (x + v594); + x = (x + v595); + x = (x + v596); + x = (x + v597); + x = (x + v598); + x = (x + v599); + x = (x + v600); + x = (x + v601); + x = (x + v602); + x = (x + v603); + x = (x + v604); + x = (x + v605); + x = (x + v606); + x = (x + v607); + x = (x + v608); + x = (x + v609); + x = (x + v610); + x = (x + v611); + x = (x + v612); + x = (x + v613); + x = (x + v614); + x = (x + v615); + x = (x + v616); + x = (x + v617); + x = (x + v618); + x = (x + v619); + x = (x + v620); + x = (x + v621); + x = (x + v622); + x = (x + v623); + x = (x + v624); + x = (x + v625); + x = (x + v626); + x = (x + v627); + x = (x + v628); + x = (x + v629); + x = (x + v630); + x = (x + v631); + x = (x + v632); + x = (x + v633); + x = (x + v634); + x = (x + v635); + x = (x + v636); + x = (x + v637); + x = (x + v638); + x = (x + v639); + x = (x + v640); + x = (x + v641); + x = (x + v642); + x = (x + v643); + x = (x + v644); + x = (x + v645); + x = (x + v646); + x = (x + v647); + x = (x + v648); + x = (x + v649); + x = (x + v650); + x = (x + v651); + x = (x + v652); + x = (x + v653); + x = (x + v654); + x = (x + v655); + x = (x + v656); + x = (x + v657); + x = (x + v658); + x = (x + v659); + x = (x + v660); + x = (x + v661); + x = (x + v662); + x = (x + v663); + x = (x + v664); + x = (x + v665); + x = (x + v666); + x = (x + v667); + x = (x + v668); + x = (x + v669); + x = (x + v670); + x = (x + v671); + x = (x + v672); + x = (x + v673); + x = (x + v674); + x = (x + v675); + x = (x + v676); + x = (x + v677); + x = (x + v678); + x = (x + v679); + x = (x + v680); + x = (x + v681); + x = (x + v682); + x = (x + v683); + x = (x + v684); + x = (x + v685); + x = (x + v686); + x = (x + v687); + x = (x + v688); + x = (x + v689); + x = (x + v690); + x = (x + v691); + x = (x + v692); + x = (x + v693); + x = (x + v694); + x = (x + v695); + x = (x + v696); + x = (x + v697); + x = (x + v698); + x = (x + v699); + x = (x + v700); + x = (x + v701); + x = (x + v702); + x = (x + v703); + x = (x + v704); + x = (x + v705); + x = (x + v706); + x = (x + v707); + x = (x + v708); + x = (x + v709); + x = (x + v710); + x = (x + v711); + x = (x + v712); + x = (x + v713); + x = (x + v714); + x = (x + v715); + x = (x + v716); + x = (x + v717); + x = (x + v718); + x = (x + v719); + x = (x + v720); + x = (x + v721); + x = (x + v722); + x = (x + v723); + x = (x + v724); + x = (x + v725); + x = (x + v726); + x = (x + v727); + x = (x + v728); + x = (x + v729); + x = (x + v730); + x = (x + v731); + x = (x + v732); + x = (x + v733); + x = (x + v734); + x = (x + v735); + x = (x + v736); + x = (x + v737); + x = (x + v738); + x = (x + v739); + x = (x + v740); + x = (x + v741); + x = (x + v742); + x = (x + v743); + x = (x + v744); + x = (x + v745); + x = (x + v746); + x = (x + v747); + x = (x + v748); + x = (x + v749); + x = (x + v750); + x = (x + v751); + x = (x + v752); + x = (x + v753); + x = (x + v754); + x = (x + v755); + x = (x + v756); + x = (x + v757); + x = (x + v758); + x = (x + v759); + x = (x + v760); + x = (x + v761); + x = (x + v762); + x = (x + v763); + x = (x + v764); + x = (x + v765); + x = (x + v766); + x = (x + v767); + x = (x + v768); + x = (x + v769); + x = (x + v770); + x = (x + v771); + x = (x + v772); + x = (x + v773); + x = (x + v774); + x = (x + v775); + x = (x + v776); + x = (x + v777); + x = (x + v778); + x = (x + v779); + x = (x + v780); + x = (x + v781); + x = (x + v782); + x = (x + v783); + x = (x + v784); + x = (x + v785); + x = (x + v786); + x = (x + v787); + x = (x + v788); + x = (x + v789); + x = (x + v790); + x = (x + v791); + x = (x + v792); + x = (x + v793); + x = (x + v794); + x = (x + v795); + x = (x + v796); + x = (x + v797); + x = (x + v798); + x = (x + v799); + x = (x + v800); + x = (x + v801); + x = (x + v802); + x = (x + v803); + x = (x + v804); + x = (x + v805); + x = (x + v806); + x = (x + v807); + x = (x + v808); + x = (x + v809); + x = (x + v810); + x = (x + v811); + x = (x + v812); + x = (x + v813); + x = (x + v814); + x = (x + v815); + x = (x + v816); + x = (x + v817); + x = (x + v818); + x = (x + v819); + x = (x + v820); + x = (x + v821); + x = (x + v822); + x = (x + v823); + x = (x + v824); + x = (x + v825); + x = (x + v826); + x = (x + v827); + x = (x + v828); + x = (x + v829); + x = (x + v830); + x = (x + v831); + x = (x + v832); + x = (x + v833); + x = (x + v834); + x = (x + v835); + x = (x + v836); + x = (x + v837); + x = (x + v838); + x = (x + v839); + x = (x + v840); + x = (x + v841); + x = (x + v842); + x = (x + v843); + x = (x + v844); + x = (x + v845); + x = (x + v846); + x = (x + v847); + x = (x + v848); + x = (x + v849); + x = (x + v850); + x = (x + v851); + x = (x + v852); + x = (x + v853); + x = (x + v854); + x = (x + v855); + x = (x + v856); + x = (x + v857); + x = (x + v858); + x = (x + v859); + x = (x + v860); + x = (x + v861); + x = (x + v862); + x = (x + v863); + x = (x + v864); + x = (x + v865); + x = (x + v866); + x = (x + v867); + x = (x + v868); + x = (x + v869); + x = (x + v870); + x = (x + v871); + x = (x + v872); + x = (x + v873); + x = (x + v874); + x = (x + v875); + x = (x + v876); + x = (x + v877); + x = (x + v878); + x = (x + v879); + x = (x + v880); + x = (x + v881); + x = (x + v882); + x = (x + v883); + x = (x + v884); + x = (x + v885); + x = (x + v886); + x = (x + v887); + x = (x + v888); + x = (x + v889); + x = (x + v890); + x = (x + v891); + x = (x + v892); + x = (x + v893); + x = (x + v894); + x = (x + v895); + x = (x + v896); + x = (x + v897); + x = (x + v898); + x = (x + v899); + x = (x + v900); + x = (x + v901); + x = (x + v902); + x = (x + v903); + x = (x + v904); + x = (x + v905); + x = (x + v906); + x = (x + v907); + x = (x + v908); + x = (x + v909); + x = (x + v910); + x = (x + v911); + x = (x + v912); + x = (x + v913); + x = (x + v914); + x = (x + v915); + x = (x + v916); + x = (x + v917); + x = (x + v918); + x = (x + v919); + x = (x + v920); + x = (x + v921); + x = (x + v922); + x = (x + v923); + x = (x + v924); + x = (x + v925); + x = (x + v926); + x = (x + v927); + x = (x + v928); + x = (x + v929); + x = (x + v930); + x = (x + v931); + x = (x + v932); + x = (x + v933); + x = (x + v934); + x = (x + v935); + x = (x + v936); + x = (x + v937); + x = (x + v938); + x = (x + v939); + x = (x + v940); + x = (x + v941); + x = (x + v942); + x = (x + v943); + x = (x + v944); + x = (x + v945); + x = (x + v946); + x = (x + v947); + x = (x + v948); + x = (x + v949); + x = (x + v950); + x = (x + v951); + x = (x + v952); + x = (x + v953); + x = (x + v954); + x = (x + v955); + x = (x + v956); + x = (x + v957); + x = (x + v958); + x = (x + v959); + x = (x + v960); + x = (x + v961); + x = (x + v962); + x = (x + v963); + x = (x + v964); + x = (x + v965); + x = (x + v966); + x = (x + v967); + x = (x + v968); + x = (x + v969); + x = (x + v970); + x = (x + v971); + x = (x + v972); + x = (x + v973); + x = (x + v974); + x = (x + v975); + x = (x + v976); + x = (x + v977); + x = (x + v978); + x = (x + v979); + x = (x + v980); + x = (x + v981); + x = (x + v982); + x = (x + v983); + x = (x + v984); + x = (x + v985); + x = (x + v986); + x = (x + v987); + x = (x + v988); + x = (x + v989); + x = (x + v990); + x = (x + v991); + x = (x + v992); + x = (x + v993); + x = (x + v994); + x = (x + v995); + x = (x + v996); + x = (x + v997); + x = (x + v998); + x = (x + v999); + return x; +} + +struct tint_symbol { + uint value : SV_Target0; +}; + +uint main_inner() { + return foo(); +} + +tint_symbol main() { + const uint inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1520.spvasm.expected.hlsl b/test/tint/bug/tint/1520.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1520.spvasm.expected.hlsl rename to test/tint/bug/tint/1520.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1520.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/1520.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3e2d65fd8c --- /dev/null +++ b/test/tint/bug/tint/1520.spvasm.expected.fxc.hlsl @@ -0,0 +1,168 @@ +int4 value_or_one_if_zero_int4(int4 value) { + return value == int4(0, 0, 0, 0) ? int4(1, 1, 1, 1) : value; +} + +cbuffer cbuffer_x_4 : register(b0, space0) { + uint4 x_4[7]; +}; +static float4 sk_FragColor = float4(0.0f, 0.0f, 0.0f, 0.0f); +static bool sk_Clockwise = false; +static float4 vcolor_S0 = float4(0.0f, 0.0f, 0.0f, 0.0f); + +bool test_int_S1_c0_b() { + int unknown = 0; + bool ok = false; + int4 val = int4(0, 0, 0, 0); + bool x_40 = false; + bool x_54 = false; + bool x_65 = false; + bool x_41_phi = false; + bool x_55_phi = false; + bool x_66_phi = false; + const float x_26 = asfloat(x_4[1].x); + const int x_27 = int(x_26); + unknown = x_27; + ok = true; + x_41_phi = false; + if (true) { + 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 + (1).xxxx); + val = x_47; + const int4 x_48 = (x_47 - (1).xxxx); + val = x_48; + const int4 x_49 = (x_48 + (1).xxxx); + val = x_49; + const int4 x_50 = (x_49 - (1).xxxx); + val = x_50; + x_55_phi = false; + if (x_41) { + x_54 = all((x_50 == x_44)); + x_55_phi = x_54; + } + const bool x_55 = x_55_phi; + ok = x_55; + const int4 x_58 = (x_50 * (2).xxxx); + val = x_58; + const int4 x_59 = (x_58 / (2).xxxx); + val = x_59; + const int4 x_60 = (x_59 * (2).xxxx); + val = x_60; + const int4 x_61 = (x_60 / (2).xxxx); + val = x_61; + x_66_phi = false; + if (x_55) { + x_65 = all((x_61 == x_44)); + x_66_phi = x_65; + } + const bool x_66 = x_66_phi; + ok = x_66; + return x_66; +} + +void main_1() { + float4 outputColor_S0 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float4 output_S1 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float x_8_unknown = 0.0f; + bool x_9_ok = false; + float4 x_10_val = float4(0.0f, 0.0f, 0.0f, 0.0f); + float4 x_116 = float4(0.0f, 0.0f, 0.0f, 0.0f); + bool x_86 = false; + bool x_99 = false; + bool x_110 = false; + bool x_114 = false; + bool x_87_phi = false; + bool x_100_phi = false; + bool x_111_phi = false; + bool x_115_phi = false; + outputColor_S0 = vcolor_S0; + const float x_77 = asfloat(x_4[1].x); + x_8_unknown = x_77; + x_9_ok = true; + x_87_phi = false; + if (true) { + 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 + (1.0f).xxxx); + x_10_val = x_92; + const float4 x_93 = (x_92 - (1.0f).xxxx); + x_10_val = x_93; + const float4 x_94 = (x_93 + (1.0f).xxxx); + x_10_val = x_94; + const float4 x_95 = (x_94 - (1.0f).xxxx); + x_10_val = x_95; + x_100_phi = false; + if (x_87) { + x_99 = all((x_95 == x_89)); + x_100_phi = x_99; + } + const bool x_100 = x_100_phi; + x_9_ok = x_100; + const float4 x_103 = (x_95 * (2.0f).xxxx); + x_10_val = x_103; + const float4 x_104 = (x_103 / (2.0f).xxxx); + x_10_val = x_104; + const float4 x_105 = (x_104 * (2.0f).xxxx); + x_10_val = x_105; + const float4 x_106 = (x_105 / (2.0f).xxxx); + x_10_val = x_106; + x_111_phi = false; + if (x_100) { + x_110 = all((x_106 == x_89)); + x_111_phi = x_110; + } + const bool x_111 = x_111_phi; + x_9_ok = x_111; + x_115_phi = false; + if (x_111) { + x_114 = test_int_S1_c0_b(); + x_115_phi = x_114; + } + if (x_115_phi) { + const float4 x_122 = asfloat(x_4[3]); + x_116 = x_122; + } else { + const float4 x_124 = asfloat(x_4[2]); + x_116 = x_124; + } + const float4 x_125 = x_116; + output_S1 = x_125; + sk_FragColor = x_125; + return; +} + +struct main_out { + float4 sk_FragColor_1; +}; +struct tint_symbol_1 { + float4 vcolor_S0_param : TEXCOORD0; + bool sk_Clockwise_param : SV_IsFrontFace; +}; +struct tint_symbol_2 { + float4 sk_FragColor_1 : SV_Target0; +}; + +main_out main_inner(bool sk_Clockwise_param, float4 vcolor_S0_param) { + sk_Clockwise = sk_Clockwise_param; + vcolor_S0 = vcolor_S0_param; + main_1(); + const main_out tint_symbol_5 = {sk_FragColor}; + return tint_symbol_5; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.sk_Clockwise_param, tint_symbol.vcolor_S0_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.sk_FragColor_1 = inner_result.sk_FragColor_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/1540.wgsl.expected.hlsl b/test/tint/bug/tint/1540.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1540.wgsl.expected.hlsl rename to test/tint/bug/tint/1540.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1540.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1540.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..396172fd90 --- /dev/null +++ b/test/tint/bug/tint/1540.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +struct S { + bool e; +}; + +[numthreads(1, 1, 1)] +void main() { + bool b = false; + S v = {(true & b)}; + return; +} diff --git a/test/tint/bug/tint/1541.wgsl.expected.hlsl b/test/tint/bug/tint/1541.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1541.wgsl.expected.hlsl rename to test/tint/bug/tint/1541.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1541.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1541.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3eb2b64c3b --- /dev/null +++ b/test/tint/bug/tint/1541.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void main() { + bool v = (false ? true : (true & true)); + return; +} diff --git a/test/tint/bug/tint/1564.wgsl.expected.hlsl b/test/tint/bug/tint/1564.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1564.wgsl.expected.hlsl rename to test/tint/bug/tint/1564.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1564.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1564.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df3fb92e29 --- /dev/null +++ b/test/tint/bug/tint/1564.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void foo() { + const float b = 9.9999461e-41f; +} diff --git a/test/tint/bug/tint/1573.wgsl.expected.hlsl b/test/tint/bug/tint/1573.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1573.wgsl.expected.hlsl rename to test/tint/bug/tint/1573.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1573.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1573.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a19a5806e1 --- /dev/null +++ b/test/tint/bug/tint/1573.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +RWByteAddressBuffer a : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +[numthreads(16, 1, 1)] +void main() { + uint value = 42u; + const atomic_compare_exchange_weak_ret_type result = tint_atomicCompareExchangeWeak(a, 0u, 0u, value); + return; +} diff --git a/test/tint/bug/tint/1574.wgsl.expected.hlsl b/test/tint/bug/tint/1574.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/1574.wgsl.expected.hlsl rename to test/tint/bug/tint/1574.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/1574.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1574.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aad4961f4a --- /dev/null +++ b/test/tint/bug/tint/1574.wgsl.expected.fxc.hlsl @@ -0,0 +1,105 @@ +struct atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; +struct atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; +RWByteAddressBuffer a_u32 : register(u0, space0); +RWByteAddressBuffer a_i32 : register(u1, space0); +groupshared uint b_u32; +groupshared int b_i32; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +struct atomic_compare_exchange_weak_ret_type_1 { + int old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type_1 tint_atomicCompareExchangeWeak_1(RWByteAddressBuffer buffer, uint offset, int compare, int value) { + atomic_compare_exchange_weak_ret_type_1 result=(atomic_compare_exchange_weak_ret_type_1)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void main_inner(uint local_invocation_index) { + if ((local_invocation_index < 1u)) { + uint atomic_result = 0u; + InterlockedExchange(b_u32, 0u, atomic_result); + int atomic_result_1 = 0; + InterlockedExchange(b_i32, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + { + uint value = 42u; + const atomic_compare_exchange_weak_ret_type r1 = tint_atomicCompareExchangeWeak(a_u32, 0u, 0u, value); + const atomic_compare_exchange_weak_ret_type r2 = tint_atomicCompareExchangeWeak(a_u32, 0u, 0u, value); + const atomic_compare_exchange_weak_ret_type r3 = tint_atomicCompareExchangeWeak(a_u32, 0u, 0u, value); + } + { + int value = 42; + const atomic_compare_exchange_weak_ret_type_1 r1 = tint_atomicCompareExchangeWeak_1(a_i32, 0u, 0, value); + const atomic_compare_exchange_weak_ret_type_1 r2 = tint_atomicCompareExchangeWeak_1(a_i32, 0u, 0, value); + const atomic_compare_exchange_weak_ret_type_1 r3 = tint_atomicCompareExchangeWeak_1(a_i32, 0u, 0, value); + } + { + uint value = 42u; + atomic_compare_exchange_resultu32 atomic_result_2 = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value = 0u; + InterlockedCompareExchange(b_u32, atomic_compare_value, value, atomic_result_2.old_value); + atomic_result_2.exchanged = atomic_result_2.old_value == atomic_compare_value; + const atomic_compare_exchange_resultu32 r1 = atomic_result_2; + atomic_compare_exchange_resultu32 atomic_result_3 = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value_1 = 0u; + InterlockedCompareExchange(b_u32, atomic_compare_value_1, value, atomic_result_3.old_value); + atomic_result_3.exchanged = atomic_result_3.old_value == atomic_compare_value_1; + const atomic_compare_exchange_resultu32 r2 = atomic_result_3; + atomic_compare_exchange_resultu32 atomic_result_4 = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value_2 = 0u; + InterlockedCompareExchange(b_u32, atomic_compare_value_2, value, atomic_result_4.old_value); + atomic_result_4.exchanged = atomic_result_4.old_value == atomic_compare_value_2; + const atomic_compare_exchange_resultu32 r3 = atomic_result_4; + } + { + int value = 42; + atomic_compare_exchange_resulti32 atomic_result_5 = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value_3 = 0; + InterlockedCompareExchange(b_i32, atomic_compare_value_3, value, atomic_result_5.old_value); + atomic_result_5.exchanged = atomic_result_5.old_value == atomic_compare_value_3; + const atomic_compare_exchange_resulti32 r1 = atomic_result_5; + atomic_compare_exchange_resulti32 atomic_result_6 = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value_4 = 0; + InterlockedCompareExchange(b_i32, atomic_compare_value_4, value, atomic_result_6.old_value); + atomic_result_6.exchanged = atomic_result_6.old_value == atomic_compare_value_4; + const atomic_compare_exchange_resulti32 r2 = atomic_result_6; + atomic_compare_exchange_resulti32 atomic_result_7 = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value_5 = 0; + InterlockedCompareExchange(b_i32, atomic_compare_value_5, value, atomic_result_7.old_value); + atomic_result_7.exchanged = atomic_result_7.old_value == atomic_compare_value_5; + const atomic_compare_exchange_resulti32 r3 = atomic_result_7; + } +} + +[numthreads(16, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/bug/tint/219.spvasm.expected.hlsl b/test/tint/bug/tint/219.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/219.spvasm.expected.hlsl rename to test/tint/bug/tint/219.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/219.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/219.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..f8a2ad7099 --- /dev/null +++ b/test/tint/bug/tint/219.spvasm.expected.fxc.hlsl @@ -0,0 +1,16 @@ +float x_200(inout float2 x_201) { + const float x_212 = x_201.x; + return x_212; +} + +void main_1() { + float2 x_11 = float2(0.0f, 0.0f); + const float x_12 = x_200(x_11); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/bug/tint/221.wgsl.expected.hlsl b/test/tint/bug/tint/221.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/221.wgsl.expected.hlsl rename to test/tint/bug/tint/221.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/221.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/221.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04406bba52 --- /dev/null +++ b/test/tint/bug/tint/221.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +RWByteAddressBuffer b : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint i = 0u; + [loop] while (true) { + if ((i >= b.Load(0u))) { + break; + } + const uint p_save = i; + if (((i % 2u) == 0u)) { + { + b.Store((4u + (4u * p_save)), asuint((b.Load((4u + (4u * p_save))) * 2u))); + i = (i + 1u); + } + continue; + } + b.Store((4u + (4u * p_save)), asuint(0u)); + { + b.Store((4u + (4u * p_save)), asuint((b.Load((4u + (4u * p_save))) * 2u))); + i = (i + 1u); + } + } + return; +} diff --git a/test/tint/bug/tint/292.wgsl.expected.hlsl b/test/tint/bug/tint/292.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/292.wgsl.expected.hlsl rename to test/tint/bug/tint/292.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/292.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/292.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bb6e936f9d --- /dev/null +++ b/test/tint/bug/tint/292.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 main_inner() { + float3 light = float3(1.200000048f, 1.0f, 2.0f); + float3 negative_light = -(light); + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/tint/294.wgsl.expected.hlsl b/test/tint/bug/tint/294.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/294.wgsl.expected.hlsl rename to test/tint/bug/tint/294.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/294.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/294.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4843df71d --- /dev/null +++ b/test/tint/bug/tint/294.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +ByteAddressBuffer lights : register(t1, space0); diff --git a/test/tint/bug/tint/369.wgsl.expected.hlsl b/test/tint/bug/tint/369.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/369.wgsl.expected.hlsl rename to test/tint/bug/tint/369.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/369.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/369.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f7ba4cfc90 --- /dev/null +++ b/test/tint/bug/tint/369.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +ByteAddressBuffer SSBO : register(t0, space0); +cbuffer cbuffer_UBO : register(b0, space0) { + uint4 UBO[1]; +}; diff --git a/test/tint/bug/tint/403.wgsl.expected.hlsl b/test/tint/bug/tint/403.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/403.wgsl.expected.hlsl rename to test/tint/bug/tint/403.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/403.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/403.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..de76d9e16a --- /dev/null +++ b/test/tint/bug/tint/403.wgsl.expected.fxc.hlsl @@ -0,0 +1,48 @@ +cbuffer cbuffer_x_20 : register(b0, space0) { + uint4 x_20[1]; +}; +cbuffer cbuffer_x_26 : register(b0, space1) { + uint4 x_26[1]; +}; + +struct tint_symbol_1 { + uint gl_VertexIndex : SV_VertexID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float2x2 tint_symbol_3(uint4 buffer[1], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset / 4]; + const uint scalar_offset_1 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_1 / 4]; + return float2x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy))); +} + +float2x2 tint_symbol_5(uint4 buffer[1], uint offset) { + const uint scalar_offset_2 = ((offset + 0u)) / 4; + uint4 ubo_load_2 = buffer[scalar_offset_2 / 4]; + const uint scalar_offset_3 = ((offset + 8u)) / 4; + uint4 ubo_load_3 = buffer[scalar_offset_3 / 4]; + return float2x2(asfloat(((scalar_offset_2 & 2) ? ubo_load_2.zw : ubo_load_2.xy)), asfloat(((scalar_offset_3 & 2) ? ubo_load_3.zw : ubo_load_3.xy))); +} + +float4 main_inner(uint gl_VertexIndex) { + float2 indexable[3] = (float2[3])0; + 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), (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]))); + return float4(x_52.x, x_52.y, 0.0f, 1.0f); +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const float4 inner_result = main_inner(tint_symbol.gl_VertexIndex); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/tint/413.spvasm.expected.hlsl b/test/tint/bug/tint/413.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/413.spvasm.expected.hlsl rename to test/tint/bug/tint/413.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/413.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/413.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..309ad000ad --- /dev/null +++ b/test/tint/bug/tint/413.spvasm.expected.fxc.hlsl @@ -0,0 +1,18 @@ +Texture2D Src : register(t0, space0); +RWTexture2D Dst : register(u1, space0); + +void main_1() { + uint4 srcValue = uint4(0u, 0u, 0u, 0u); + const uint4 x_18 = Src.Load(int3(0, 0, 0)); + srcValue = x_18; + const uint x_22 = srcValue.x; + srcValue.x = (x_22 + asuint(1)); + Dst[(0).xx] = srcValue; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/bug/tint/453.wgsl.expected.hlsl b/test/tint/bug/tint/453.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/453.wgsl.expected.hlsl rename to test/tint/bug/tint/453.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/453.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/453.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e9260ee9e --- /dev/null +++ b/test/tint/bug/tint/453.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2D Src : register(t0, space0); +RWTexture2D Dst : register(u1, space0); + +[numthreads(1, 1, 1)] +void main() { + uint4 srcValue = uint4(0u, 0u, 0u, 0u); + const uint4 x_22 = Src.Load(int3(0, 0, 0)); + srcValue = x_22; + const uint x_24 = srcValue.x; + const uint x_25 = (x_24 + 1u); + Dst[(0).xx] = srcValue.xxxx; + return; +} diff --git a/test/tint/bug/tint/492.wgsl.expected.hlsl b/test/tint/bug/tint/492.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/492.wgsl.expected.hlsl rename to test/tint/bug/tint/492.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/492.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/492.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b33044d5b --- /dev/null +++ b/test/tint/bug/tint/492.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +RWByteAddressBuffer buf : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + buf.Store(0u, asuint(12)); + return; +} diff --git a/test/tint/bug/tint/534.wgsl.expected.hlsl b/test/tint/bug/tint/534.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/534.wgsl.expected.hlsl rename to test/tint/bug/tint/534.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/534.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/534.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..801fe6ed34 --- /dev/null +++ b/test/tint/bug/tint/534.wgsl.expected.fxc.hlsl @@ -0,0 +1,57 @@ +void set_uint4(inout uint4 vec, int idx, uint val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +Texture2D src : register(t0, space0); +Texture2D tint_symbol : register(t1, space0); +RWByteAddressBuffer output : register(u2, space0); +cbuffer cbuffer_uniforms : register(b3, space0) { + uint4 uniforms[1]; +}; + +uint ConvertToFp16FloatValue(float fp32) { + return 1u; +} + +struct tint_symbol_2 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +void main_inner(uint3 GlobalInvocationID) { + int2 tint_tmp; + src.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 size = tint_tmp; + int2 dstTexCoord = int2(GlobalInvocationID.xy); + int2 srcTexCoord = dstTexCoord; + if ((uniforms[0].x == 1u)) { + srcTexCoord.y = ((size.y - dstTexCoord.y) - 1); + } + float4 srcColor = src.Load(int3(srcTexCoord, 0)); + float4 dstColor = tint_symbol.Load(int3(dstTexCoord, 0)); + bool success = true; + uint4 srcColorBits = uint4(0u, 0u, 0u, 0u); + uint4 dstColorBits = uint4(dstColor); + { + [loop] for(uint i = 0u; (i < uniforms[0].w); i = (i + 1u)) { + const uint tint_symbol_3 = ConvertToFp16FloatValue(srcColor[i]); + set_uint4(srcColorBits, i, tint_symbol_3); + bool tint_tmp_1 = success; + if (tint_tmp_1) { + tint_tmp_1 = (srcColorBits[i] == dstColorBits[i]); + } + success = (tint_tmp_1); + } + } + uint outputIndex = ((GlobalInvocationID.y * uint(size.x)) + GlobalInvocationID.x); + if (success) { + output.Store((4u * outputIndex), asuint(1u)); + } else { + output.Store((4u * outputIndex), asuint(0u)); + } +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_2 tint_symbol_1) { + main_inner(tint_symbol_1.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/tint/744.wgsl.expected.hlsl b/test/tint/bug/tint/744.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/744.wgsl.expected.hlsl rename to test/tint/bug/tint/744.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/744.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/744.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7870d26585 --- /dev/null +++ b/test/tint/bug/tint/744.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +ByteAddressBuffer firstMatrix : register(t0, space0); +ByteAddressBuffer secondMatrix : register(t1, space0); +RWByteAddressBuffer resultMatrix : register(u2, space0); +cbuffer cbuffer_uniforms : register(b3, space0) { + uint4 uniforms[2]; +}; + +struct tint_symbol_1 { + uint3 global_id : SV_DispatchThreadID; +}; + +void main_inner(uint3 global_id) { + const uint2 resultCell = uint2(global_id.y, global_id.x); + const uint dimInner = uniforms[0].y; + const uint dimOutter = uniforms[1].y; + uint result = 0u; + { + [loop] for(uint i = 0u; (i < dimInner); i = (i + 1u)) { + const uint a = (i + (resultCell.x * dimInner)); + const uint b = (resultCell.y + (i * dimOutter)); + result = (result + (firstMatrix.Load((4u * a)) * secondMatrix.Load((4u * b)))); + } + } + const uint index = (resultCell.y + (resultCell.x * dimOutter)); + resultMatrix.Store((4u * index), asuint(result)); +} + +[numthreads(2, 2, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.global_id); + return; +} diff --git a/test/tint/bug/tint/749.spvasm.expected.hlsl b/test/tint/bug/tint/749.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/749.spvasm.expected.hlsl rename to test/tint/bug/tint/749.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..8605266c5b --- /dev/null +++ b/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl @@ -0,0 +1,1658 @@ +struct QuicksortObject { + int numbers[10]; +}; + +static QuicksortObject obj = (QuicksortObject)0; +static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_188 : register(b0, space0) { + uint4 x_188[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void swap_i1_i1_(inout int i, inout int j) { + int temp = 0; + const int x_932 = temp; + temp = 0; + temp = x_932; + const float3 x_523 = float3(3.0f, 2.0f, 3.0f); + const int x_933 = i; + i = 0; + i = x_933; + const int x_28 = i; + const int x_934 = j; + j = 0; + j = x_934; + const float3 x_524 = float3(x_523.y, x_523.x, x_523.y); + const int x_935 = temp; + temp = 0; + temp = x_935; + const int x_30_save = x_28; + const int x_936 = obj.numbers[x_30_save]; + { + int tint_symbol_1[10] = obj.numbers; + tint_symbol_1[x_30_save] = 0; + obj.numbers = tint_symbol_1; + } + { + int tint_symbol_3[10] = obj.numbers; + tint_symbol_3[x_30_save] = x_936; + obj.numbers = tint_symbol_3; + } + const int x_31 = obj.numbers[x_30_save]; + const int x_937 = temp; + temp = 0; + temp = x_937; + temp = x_31; + const int x_938 = j; + j = 0; + j = x_938; + const float3 x_525 = float3(x_523.z, 1.0f, x_523.y); + const int x_939 = i; + i = 0; + i = x_939; + const int x_32 = i; + const int x_940 = obj.numbers[x_30_save]; + { + int tint_symbol_5[10] = obj.numbers; + tint_symbol_5[x_30_save] = 0; + obj.numbers = tint_symbol_5; + } + { + int tint_symbol_7[10] = obj.numbers; + tint_symbol_7[x_30_save] = x_940; + obj.numbers = tint_symbol_7; + } + const int x_33 = j; + const int x_941 = i; + i = 0; + i = x_941; + const float3 x_526 = float3(x_525.x, x_525.z, x_525.z); + const int x_942 = obj.numbers[x_30_save]; + { + int tint_symbol_9[10] = obj.numbers; + tint_symbol_9[x_30_save] = 0; + obj.numbers = tint_symbol_9; + } + { + int tint_symbol_11[10] = obj.numbers; + tint_symbol_11[x_30_save] = x_942; + obj.numbers = tint_symbol_11; + } + const int x_34_save = x_33; + const int x_35 = obj.numbers[x_34_save]; + const QuicksortObject x_943 = obj; + const int tint_symbol_52[10] = (int[10])0; + const QuicksortObject tint_symbol_53 = {tint_symbol_52}; + obj = tint_symbol_53; + obj = x_943; + const float2 x_527 = float2(x_526.x, x_526.x); + const int x_36_save = x_32; + const float3 x_528 = float3(x_524.x, x_524.z, x_524.x); + { + int tint_symbol_13[10] = obj.numbers; + tint_symbol_13[x_36_save] = x_35; + obj.numbers = tint_symbol_13; + } + const QuicksortObject x_944 = obj; + const int tint_symbol_54[10] = (int[10])0; + const QuicksortObject tint_symbol_55 = {tint_symbol_54}; + obj = tint_symbol_55; + obj = x_944; + const float3 x_529 = float3(x_526.y, x_526.z, x_526.x); + const int x_945 = i; + i = 0; + i = x_945; + const int x_37 = j; + const int x_946 = temp; + temp = 0; + temp = x_946; + const float2 x_530 = float2(x_529.z, x_529.y); + const int x_947 = obj.numbers[x_34_save]; + { + int tint_symbol_15[10] = obj.numbers; + tint_symbol_15[x_34_save] = 0; + obj.numbers = tint_symbol_15; + } + { + int tint_symbol_17[10] = obj.numbers; + tint_symbol_17[x_34_save] = x_947; + obj.numbers = tint_symbol_17; + } + const int x_38 = temp; + const int x_948 = j; + j = 0; + j = x_948; + const float3 x_531 = float3(x_527.x, x_526.y, x_526.x); + const int x_949 = obj.numbers[x_36_save]; + { + int tint_symbol_19[10] = obj.numbers; + tint_symbol_19[x_36_save] = 0; + obj.numbers = tint_symbol_19; + } + { + int tint_symbol_21[10] = obj.numbers; + tint_symbol_21[x_36_save] = x_949; + obj.numbers = tint_symbol_21; + } + const QuicksortObject x_950 = obj; + const int tint_symbol_56[10] = (int[10])0; + const QuicksortObject tint_symbol_57 = {tint_symbol_56}; + obj = tint_symbol_57; + obj = x_950; + const float3 x_532 = float3(x_528.x, x_528.y, x_528.x); + const int x_951 = obj.numbers[x_34_save]; + { + int tint_symbol_23[10] = obj.numbers; + tint_symbol_23[x_34_save] = 0; + obj.numbers = tint_symbol_23; + } + { + int tint_symbol_25[10] = obj.numbers; + tint_symbol_25[x_34_save] = x_951; + obj.numbers = tint_symbol_25; + } + { + int tint_symbol_27[10] = obj.numbers; + tint_symbol_27[x_37] = x_38; + obj.numbers = tint_symbol_27; + } + return; +} + +int performPartition_i1_i1_(inout int l, inout int h) { + int param_3 = 0; + int i_1 = 0; + int j_1 = 0; + int param_2 = 0; + int param_1 = 0; + int param = 0; + int pivot = 0; + float2 x_537 = float2(0.0f, 0.0f); + float3 x_538 = float3(0.0f, 0.0f, 0.0f); + const int x_952 = h; + h = 0; + h = x_952; + const int x_41 = h; + const int x_953 = l; + l = 0; + l = x_953; + const int x_42_save = x_41; + const int x_954 = obj.numbers[x_42_save]; + { + int tint_symbol_29[10] = obj.numbers; + tint_symbol_29[x_42_save] = 0; + obj.numbers = tint_symbol_29; + } + { + int tint_symbol_31[10] = obj.numbers; + tint_symbol_31[x_42_save] = x_954; + obj.numbers = tint_symbol_31; + } + const int x_43 = obj.numbers[x_42_save]; + const int x_955 = param_3; + param_3 = 0; + param_3 = x_955; + const float3 x_534 = float3(3.0f, 1.0f, 3.0f); + const int x_956 = param_1; + param_1 = 0; + param_1 = x_956; + pivot = x_43; + const int x_45 = l; + const int x_957 = h; + h = 0; + h = x_957; + const int x_958 = j_1; + j_1 = 0; + j_1 = x_958; + const float3 x_535 = float3(x_534.y, x_534.z, x_534.y); + const int x_959 = l; + l = 0; + l = x_959; + i_1 = (x_45 - asint(1u)); + const int x_49 = l; + const float3 x_536 = float3(x_534.x, x_534.z, x_535.x); + j_1 = 10; + const QuicksortObject x_960 = obj; + const int tint_symbol_58[10] = (int[10])0; + const QuicksortObject tint_symbol_59 = {tint_symbol_58}; + obj = tint_symbol_59; + obj = x_960; + [loop] while (true) { + const int x_961 = pivot; + pivot = 0; + pivot = x_961; + const int x_962 = param_1; + param_1 = 0; + param_1 = x_962; + const int x_55 = j_1; + const int x_963 = pivot; + pivot = 0; + pivot = x_963; + x_537 = float2(2.0f, 3.0f); + const QuicksortObject x_964 = obj; + const int tint_symbol_60[10] = (int[10])0; + const QuicksortObject tint_symbol_61 = {tint_symbol_60}; + obj = tint_symbol_61; + obj = x_964; + const int x_56 = h; + const int x_965 = h; + h = 0; + h = x_965; + const int x_966 = param; + param = 0; + param = x_966; + const int x_967 = j_1; + j_1 = 0; + j_1 = x_967; + x_538 = float3(x_534.x, x_537.y, x_534.z); + const int x_968 = param; + param = 0; + param = x_968; + if ((x_55 <= (x_56 - asint(1u)))) { + } else { + break; + } + const int x_60 = j_1; + const int x_969 = obj.numbers[x_42_save]; + { + int tint_symbol_33[10] = obj.numbers; + tint_symbol_33[x_42_save] = 0; + obj.numbers = tint_symbol_33; + } + { + int tint_symbol_35[10] = obj.numbers; + tint_symbol_35[x_42_save] = x_969; + obj.numbers = tint_symbol_35; + } + const int x_61_save = x_60; + const int x_970 = h; + h = 0; + h = x_970; + const float3 x_539 = float3(x_537.x, x_535.z, x_537.x); + const int x_971 = param_1; + param_1 = 0; + param_1 = x_971; + const int x_62 = obj.numbers[x_61_save]; + const QuicksortObject x_972 = obj; + const int tint_symbol_62[10] = (int[10])0; + const QuicksortObject tint_symbol_63 = {tint_symbol_62}; + obj = tint_symbol_63; + obj = x_972; + const int x_63 = pivot; + const float2 x_540 = float2(2.0f, x_534.z); + const int x_973 = i_1; + i_1 = 0; + i_1 = x_973; + const int x_974 = l; + l = 0; + l = x_974; + const float3 x_541 = float3(x_534.y, x_534.x, x_534.y); + const int x_975 = pivot; + pivot = 0; + pivot = x_975; + if ((x_62 <= x_63)) { + const float3 x_542 = float3(x_541.z, x_541.x, x_541.x); + const int x_976 = param_3; + param_3 = 0; + param_3 = x_976; + const int x_67 = i_1; + const int x_977 = pivot; + pivot = 0; + pivot = x_977; + const float2 x_543 = float2(x_539.x, x_541.y); + const int x_978 = i_1; + i_1 = 0; + i_1 = x_978; + const int x_979 = param; + param = 0; + param = x_979; + i_1 = (x_67 + asint(1u)); + const int x_980 = l; + l = 0; + l = x_980; + const float3 x_544 = float3(3.0f, 2.0f, x_540.x); + const int x_70 = i_1; + const float2 x_545 = float2(x_537.y, x_538.x); + const int x_981 = param; + param = 0; + param = x_981; + param = x_70; + const int x_982 = param; + param = 0; + param = x_982; + const float2 x_546 = float2(x_545.x, x_545.x); + const int x_983 = i_1; + i_1 = 0; + i_1 = x_983; + param_1 = j_1; + const int x_984 = param_3; + param_3 = 0; + param_3 = x_984; + swap_i1_i1_(param, param_1); + const int x_985 = param_1; + param_1 = 0; + param_1 = x_985; + } + const QuicksortObject x_986 = obj; + const int tint_symbol_64[10] = (int[10])0; + const QuicksortObject tint_symbol_65 = {tint_symbol_64}; + obj = tint_symbol_65; + obj = x_986; + { + const int x_987 = h; + h = 0; + h = x_987; + const int x_74 = j_1; + const int x_988 = h; + h = 0; + h = x_988; + const float3 x_547 = float3(x_539.x, x_541.z, x_541.z); + const int x_989 = obj.numbers[x_61_save]; + { + int tint_symbol_37[10] = obj.numbers; + tint_symbol_37[x_61_save] = 0; + obj.numbers = tint_symbol_37; + } + { + int tint_symbol_39[10] = obj.numbers; + tint_symbol_39[x_61_save] = x_989; + obj.numbers = tint_symbol_39; + } + const int x_990 = param; + param = 0; + param = x_990; + j_1 = (1 + x_74); + const int x_991 = param_1; + param_1 = 0; + param_1 = x_991; + const float3 x_548 = float3(x_541.y, x_541.z, x_541.x); + const int x_992 = obj.numbers[x_61_save]; + { + int tint_symbol_41[10] = obj.numbers; + tint_symbol_41[x_61_save] = 0; + obj.numbers = tint_symbol_41; + } + { + int tint_symbol_43[10] = obj.numbers; + tint_symbol_43[x_61_save] = x_992; + obj.numbers = tint_symbol_43; + } + } + } + const int x_76 = i_1; + const int x_993 = obj.numbers[x_42_save]; + { + int tint_symbol_45[10] = obj.numbers; + tint_symbol_45[x_42_save] = 0; + obj.numbers = tint_symbol_45; + } + { + int tint_symbol_47[10] = obj.numbers; + tint_symbol_47[x_42_save] = x_993; + obj.numbers = tint_symbol_47; + } + const float2 x_549 = float2(x_534.x, x_534.y); + const QuicksortObject x_994 = obj; + const int tint_symbol_66[10] = (int[10])0; + const QuicksortObject tint_symbol_67 = {tint_symbol_66}; + obj = tint_symbol_67; + obj = x_994; + const int x_995 = h; + h = 0; + h = x_995; + i_1 = (1 + x_76); + const int x_996 = param_1; + param_1 = 0; + param_1 = x_996; + const int x_79 = i_1; + const int x_997 = j_1; + j_1 = 0; + j_1 = x_997; + const float2 x_550 = float2(x_534.x, x_534.x); + const int x_998 = param_1; + param_1 = 0; + param_1 = x_998; + param_2 = x_79; + const float2 x_551 = float2(x_534.y, x_536.x); + const int x_999 = pivot; + pivot = 0; + pivot = x_999; + const int x_81 = h; + const float2 x_552 = float2(x_550.x, x_549.y); + const int x_1000 = h; + h = 0; + h = x_1000; + param_3 = x_81; + const int x_1001 = i_1; + i_1 = 0; + i_1 = x_1001; + const float2 x_553 = float2(x_549.y, x_552.x); + const int x_1002 = h; + h = 0; + h = x_1002; + swap_i1_i1_(param_2, param_3); + const int x_1003 = l; + l = 0; + l = x_1003; + const float2 x_554 = float2(x_536.z, 2.0f); + const int x_1004 = param_1; + param_1 = 0; + param_1 = x_1004; + const int x_83 = i_1; + const int x_1005 = param; + param = 0; + param = x_1005; + const float2 x_555 = float2(x_534.y, x_534.x); + const int x_1006 = j_1; + j_1 = 0; + j_1 = x_1006; + return x_83; +} + +void quicksort_() { + int param_4 = 0; + int h_1 = 0; + int p = 0; + int l_1 = 0; + int top = 0; + int stack[10] = (int[10])0; + int param_5 = 0; + l_1 = 0; + const int x_1007 = param_5; + param_5 = 0; + param_5 = x_1007; + h_1 = 9; + const int x_1008[10] = stack; + const int tint_symbol_68[10] = (int[10])0; + stack = tint_symbol_68; + stack = x_1008; + const float2 x_556 = (2.0f).xx; + const int x_1009 = param_5; + param_5 = 0; + param_5 = x_1009; + top = -1; + const int x_1010 = p; + p = 0; + p = x_1010; + const int x_93 = top; + const float2 x_557 = (1.0f).xx; + const int x_1011 = p; + p = 0; + p = x_1011; + const int x_94 = (x_93 + asint(1u)); + const int x_1012 = top; + top = 0; + top = x_1012; + const float2 x_558 = float2(x_556.y, x_557.y); + const int x_1013 = param_4; + param_4 = 0; + param_4 = x_1013; + top = x_94; + const int x_1014 = h_1; + h_1 = 0; + h_1 = x_1014; + const float3 x_559 = float3(x_557.y, x_557.x, x_557.x); + const int x_1015 = param_4; + param_4 = 0; + param_4 = x_1015; + const int x_95 = l_1; + const QuicksortObject x_1016 = obj; + const int tint_symbol_69[10] = (int[10])0; + const QuicksortObject tint_symbol_70 = {tint_symbol_69}; + obj = tint_symbol_70; + obj = x_1016; + const float3 x_560 = float3(x_559.y, x_559.x, x_557.x); + const int x_96_save = x_94; + const int x_1017[10] = stack; + const int tint_symbol_71[10] = (int[10])0; + stack = tint_symbol_71; + stack = x_1017; + const float3 x_561 = float3(x_556.y, x_556.y, x_556.y); + const int x_1018 = l_1; + l_1 = 0; + l_1 = 0; + stack[x_96_save] = x_95; + const int x_1019 = param_5; + param_5 = 0; + param_5 = x_1019; + const int x_97 = top; + const int x_1020 = param_4; + param_4 = 0; + param_4 = x_1020; + const float3 x_562 = float3(3.0f, x_558.y, 2.0f); + const int x_1021 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1021; + const int x_98 = (x_97 + 1); + const int x_1022 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1022; + const float3 x_563 = float3(x_559.x, x_559.z, x_556.y); + top = x_98; + const int x_1023 = param_4; + param_4 = 0; + param_4 = x_1023; + const int x_99 = h_1; + const int x_1024 = param_4; + param_4 = 0; + param_4 = x_1024; + const float3 x_564 = float3(x_558.x, x_561.x, x_558.y); + const int x_1025 = l_1; + l_1 = 0; + l_1 = x_1025; + const int x_100_save = x_98; + const int x_1026 = param_5; + param_5 = 0; + param_5 = x_1026; + const float2 x_565 = float2(x_564.z, x_564.z); + const int x_1027 = p; + p = 0; + p = x_1027; + stack[x_100_save] = x_99; + [loop] while (true) { + const float3 x_566 = float3(x_563.x, x_563.x, x_563.x); + const int x_1028 = h_1; + h_1 = 0; + h_1 = x_1028; + const int x_1029[10] = stack; + const int tint_symbol_72[10] = (int[10])0; + stack = tint_symbol_72; + stack = x_1029; + const int x_106 = top; + const int x_1030[10] = stack; + const int tint_symbol_73[10] = (int[10])0; + stack = tint_symbol_73; + stack = x_1030; + const float2 x_567 = float2(x_558.x, x_564.z); + const int x_1031 = param_4; + param_4 = 0; + param_4 = x_1031; + if ((x_106 >= asint(0u))) { + } else { + break; + } + const QuicksortObject x_1032 = obj; + const int tint_symbol_74[10] = (int[10])0; + const QuicksortObject tint_symbol_75 = {tint_symbol_74}; + obj = tint_symbol_75; + obj = x_1032; + const float3 x_568 = float3(x_559.y, x_559.x, x_563.y); + const int x_1033 = param_4; + param_4 = 0; + param_4 = x_1033; + const int x_108 = top; + const float3 x_569 = float3(x_565.x, x_567.y, x_565.x); + const int x_1034 = h_1; + h_1 = 0; + h_1 = x_1034; + const float2 x_570 = float2(x_556.x, x_556.x); + const int x_1035 = p; + p = 0; + p = x_1035; + top = (x_108 - asint(1u)); + const int x_1036 = p; + p = 0; + p = x_1036; + const int x_110_save = x_108; + const int x_1037 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1037; + const int x_111 = stack[x_110_save]; + const int x_1038[10] = stack; + const int tint_symbol_76[10] = (int[10])0; + stack = tint_symbol_76; + stack = x_1038; + const float3 x_571 = float3(x_559.y, x_559.x, x_564.y); + const int x_1039 = l_1; + l_1 = 0; + l_1 = x_1039; + h_1 = x_111; + const int x_1040[10] = stack; + const int tint_symbol_77[10] = (int[10])0; + stack = tint_symbol_77; + stack = x_1040; + const float2 x_572 = float2(x_562.y, x_561.y); + const int x_1041 = p; + p = 0; + p = x_1041; + const int x_112 = top; + const int x_1042 = param_4; + param_4 = 0; + param_4 = x_1042; + const int x_1043 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1043; + const float2 x_573 = float2(2.0f, 3.0f); + top = (x_112 - 1); + const int x_1044 = param_5; + param_5 = 0; + param_5 = x_1044; + const float3 x_574 = float3(x_570.y, x_565.x, x_570.y); + const int x_1045 = h_1; + h_1 = 0; + h_1 = x_1045; + const int x_114_save = x_112; + const float2 x_575 = float2(x_564.y, x_564.z); + const int x_1046 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1046; + const int x_115 = stack[x_114_save]; + const int x_1047 = p; + p = 0; + p = x_1047; + const float3 x_576 = float3(x_573.y, x_573.y, x_565.x); + const int x_1048 = param_5; + param_5 = 0; + param_5 = x_1048; + l_1 = x_115; + const int x_1049 = top; + top = 0; + top = x_1049; + param_4 = l_1; + const int x_1050 = stack[x_110_save]; + stack[x_110_save] = 0; + stack[x_110_save] = x_1050; + const float2 x_577 = float2(x_569.y, x_569.z); + const int x_120 = h_1; + const float2 x_578 = float2(x_558.x, 2.0f); + param_5 = x_120; + const int x_1051 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1051; + const int x_121 = performPartition_i1_i1_(param_4, param_5); + const float2 x_579 = float2(x_567.x, x_568.x); + const int x_1052 = param_5; + param_5 = 0; + param_5 = x_1052; + p = x_121; + const int x_1053 = param_4; + param_4 = 0; + param_4 = x_1053; + const int x_122 = p; + const int x_1054 = h_1; + h_1 = 0; + h_1 = x_1054; + const float2 x_580 = float2(x_568.y, x_568.y); + const int x_1055 = l_1; + l_1 = 0; + l_1 = x_1055; + const int x_1056 = h_1; + h_1 = 0; + h_1 = x_1056; + const int x_124 = l_1; + const int x_1057 = stack[x_110_save]; + stack[x_110_save] = 0; + stack[x_110_save] = x_1057; + const int x_1058 = h_1; + h_1 = 0; + h_1 = x_1058; + const float2 x_582 = float2(x_567.y, x_573.x); + const int x_1059 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1059; + if (((x_122 - asint(1u)) > x_124)) { + const int x_1060 = param_4; + param_4 = 0; + param_4 = x_1060; + const int x_128 = top; + const float2 x_583 = float2(x_571.y, x_556.y); + const int x_1061 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1061; + const int x_1062[10] = stack; + const int tint_symbol_78[10] = (int[10])0; + stack = tint_symbol_78; + stack = x_1062; + const float2 x_584 = float2(x_569.z, x_569.y); + const float3 x_585 = float3(x_580.y, x_577.x, x_577.x); + const int x_130 = l_1; + const int x_1063 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1063; + const float2 x_586 = float2(x_564.x, x_585.x); + const int x_1064 = param_5; + param_5 = 0; + param_5 = x_1064; + const int x_131_save = (1 + x_128); + const int x_1065 = stack[x_110_save]; + stack[x_110_save] = 0; + stack[x_110_save] = x_1065; + const float3 x_587 = float3(x_566.y, x_566.y, x_563.x); + const int x_1066 = param_5; + param_5 = 0; + param_5 = x_1066; + stack[x_131_save] = x_130; + const int x_132 = top; + const int x_1067 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1067; + const float2 x_588 = float2(x_575.y, x_575.x); + const int x_1068 = stack[x_131_save]; + stack[x_131_save] = 0; + stack[x_131_save] = x_1068; + const int x_133 = asint((1u + asuint(x_132))); + const int x_1069 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1069; + const float3 x_589 = float3(x_576.z, x_588.y, x_576.z); + const int x_1070 = h_1; + h_1 = 0; + h_1 = x_1070; + top = x_133; + const int x_1071[10] = stack; + const int tint_symbol_79[10] = (int[10])0; + stack = tint_symbol_79; + stack = x_1071; + const int x_134 = p; + const float2 x_590 = float2(x_576.x, x_573.y); + const int x_1072 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1072; + const int x_136_save = x_133; + const int x_1073 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1073; + stack[x_136_save] = (x_134 - asint(1u)); + const int x_1074 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1074; + const float2 x_591 = float2(x_569.z, x_569.y); + const int x_1075 = stack[x_136_save]; + stack[x_136_save] = 0; + stack[x_136_save] = x_1075; + } + const int x_1076 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1076; + const float2 x_592 = float2(1.0f, 2.0f); + const QuicksortObject x_1077 = obj; + const int tint_symbol_80[10] = (int[10])0; + const QuicksortObject tint_symbol_81 = {tint_symbol_80}; + obj = tint_symbol_81; + obj = x_1077; + const int x_137 = p; + const int x_1078 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1078; + const float3 x_593 = float3(x_571.z, x_556.x, x_556.y); + const int x_1079 = p; + p = 0; + p = x_1079; + const float3 x_594 = float3(x_563.z, x_563.x, x_575.x); + const int x_1080 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1080; + const int x_139 = h_1; + const int x_1081 = top; + top = 0; + top = x_1081; + const float3 x_595 = float3(x_560.z, x_568.x, x_560.x); + const int x_1082 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1082; + const int x_1083 = p; + p = 0; + p = x_1083; + if ((asint((1u + asuint(x_137))) < x_139)) { + const int x_1084 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1084; + const float2 x_596 = float2(x_592.y, x_582.x); + const int x_1085 = l_1; + l_1 = 0; + l_1 = x_1085; + const int x_143 = top; + const int x_1086 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1086; + const float3 x_597 = float3(x_562.y, x_560.y, x_560.y); + const int x_144 = (x_143 + 1); + const int x_1087 = param_5; + param_5 = 0; + param_5 = x_1087; + top = x_144; + const int x_1088 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1088; + const int x_145 = p; + const int x_1089 = param_5; + param_5 = 0; + param_5 = x_1089; + const float3 x_599 = float3(x_560.z, x_560.x, x_568.x); + const int x_1090 = p; + p = 0; + p = x_1090; + const float3 x_600 = float3(x_556.x, x_580.x, x_580.x); + const int x_1091 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1091; + const int x_147_save = x_144; + const int x_1092 = stack[x_110_save]; + stack[x_110_save] = 0; + stack[x_110_save] = x_1092; + const float2 x_601 = float2(x_563.x, x_563.y); + stack[x_147_save] = asint((1u + asuint(x_145))); + const int x_1093[10] = stack; + const int tint_symbol_82[10] = (int[10])0; + stack = tint_symbol_82; + stack = x_1093; + const int x_148 = top; + const int x_1094 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1094; + const float2 x_602 = float2(x_565.y, x_599.y); + const int x_1095[10] = stack; + const int tint_symbol_83[10] = (int[10])0; + stack = tint_symbol_83; + stack = x_1095; + const int x_149 = (x_148 + asint(1u)); + const int x_1096 = stack[x_147_save]; + stack[x_147_save] = 0; + stack[x_147_save] = x_1096; + top = x_149; + const int x_1097 = param_4; + param_4 = 0; + param_4 = x_1097; + const int x_150 = h_1; + const int x_1098 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1098; + const int x_1099 = stack[x_96_save]; + stack[x_96_save] = 0; + stack[x_96_save] = x_1099; + stack[x_149] = x_150; + const int x_1100 = stack[x_114_save]; + stack[x_114_save] = 0; + stack[x_114_save] = x_1100; + const float3 x_603 = float3(x_568.y, x_564.x, x_564.x); + const int x_1101 = l_1; + l_1 = 0; + l_1 = x_1101; + } + const int x_1102 = stack[x_100_save]; + stack[x_100_save] = 0; + stack[x_100_save] = x_1102; + { + const int x_1103 = l_1; + l_1 = 0; + l_1 = x_1103; + const float2 x_604 = float2(x_563.z, x_564.x); + const QuicksortObject x_1104 = obj; + const int tint_symbol_84[10] = (int[10])0; + const QuicksortObject tint_symbol_85 = {tint_symbol_84}; + obj = tint_symbol_85; + obj = x_1104; + } + } + const int x_1105 = h_1; + h_1 = 0; + h_1 = x_1105; + return; +} + +void main_1() { + float3 color = float3(0.0f, 0.0f, 0.0f); + int i_2 = 0; + float2 uv = float2(0.0f, 0.0f); + const float2 x_717 = uv; + uv = (0.0f).xx; + uv = x_717; + i_2 = 0; + const QuicksortObject x_721 = obj; + const int tint_symbol_86[10] = (int[10])0; + const QuicksortObject tint_symbol_87 = {tint_symbol_86}; + obj = tint_symbol_87; + obj = x_721; + if (true) { + const QuicksortObject x_722 = obj; + const int tint_symbol_88[10] = (int[10])0; + const QuicksortObject tint_symbol_89 = {tint_symbol_88}; + obj = tint_symbol_89; + obj = x_722; + const float2 x_431 = (1.0f).xx; + const int x_158 = i_2; + const float2 x_723 = uv; + uv = (0.0f).xx; + uv = x_723; + const float3 x_725 = color; + color = (0.0f).xxx; + color = x_725; + const float2 x_432 = float2(x_431.y, x_431.y); + const QuicksortObject x_726 = obj; + const int tint_symbol_90[10] = (int[10])0; + const QuicksortObject tint_symbol_91 = {tint_symbol_90}; + obj = tint_symbol_91; + obj = x_726; + } + const QuicksortObject x_756 = obj; + const int tint_symbol_92[10] = (int[10])0; + const QuicksortObject tint_symbol_93 = {tint_symbol_92}; + obj = tint_symbol_93; + obj = x_756; + const float2 x_446 = (0.0f).xx; + const int x_757 = i_2; + i_2 = 0; + i_2 = x_757; + quicksort_(); + const QuicksortObject x_758 = obj; + const int tint_symbol_94[10] = (int[10])0; + const QuicksortObject tint_symbol_95 = {tint_symbol_94}; + obj = tint_symbol_95; + obj = x_758; + const float4 x_184 = gl_FragCoord; + const float2 x_759 = uv; + uv = (0.0f).xx; + uv = x_759; + const float2 x_447 = (0.0f).xx; + const float2 x_760 = uv; + 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); + const QuicksortObject x_761 = obj; + const int tint_symbol_96[10] = (int[10])0; + const QuicksortObject tint_symbol_97 = {tint_symbol_96}; + obj = tint_symbol_97; + obj = x_761; + const float2 x_762 = uv; + uv = (0.0f).xx; + uv = x_762; + const float2 x_191 = asfloat(x_188[0].xy); + const QuicksortObject x_763 = obj; + const int tint_symbol_98[10] = (int[10])0; + const QuicksortObject tint_symbol_99 = {tint_symbol_98}; + obj = tint_symbol_99; + obj = x_763; + const float3 x_449 = float3(x_184.y, 3.0f, x_184.w); + const float3 x_764 = color; + color = (0.0f).xxx; + color = x_764; + const float2 x_192 = (x_185 / x_191); + const QuicksortObject x_765 = obj; + const int tint_symbol_100[10] = (int[10])0; + const QuicksortObject tint_symbol_101 = {tint_symbol_100}; + obj = tint_symbol_101; + obj = x_765; + const float2 x_450 = float2(x_447.x, x_185.y); + const float3 x_766 = color; + color = (0.0f).xxx; + const float3 x_767 = color; + 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 = (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; + const int tint_symbol_102[10] = (int[10])0; + const QuicksortObject tint_symbol_103 = {tint_symbol_102}; + obj = tint_symbol_103; + obj = x_769; + const int x_770 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_770; + const int x_201 = obj.numbers[0u]; + const QuicksortObject x_771 = obj; + const int tint_symbol_104[10] = (int[10])0; + const QuicksortObject tint_symbol_105 = {tint_symbol_104}; + obj = tint_symbol_105; + obj = x_771; + const int x_772 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_772; + const float x_206 = color.x; + const float x_773 = color.x; + color.x = 0.0f; + color.x = x_773; + const float2 x_452 = float2(3.0f, 2.0f); + const int x_774 = i_2; + i_2 = 0; + i_2 = x_774; + const QuicksortObject x_775 = obj; + const int tint_symbol_106[10] = (int[10])0; + const QuicksortObject tint_symbol_107 = {tint_symbol_106}; + obj = tint_symbol_107; + obj = x_775; + 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 = (0.0f).xx; + uv = x_776; + const float2 x_777 = uv; + uv = (0.0f).xx; + uv = x_777; + const float2 x_454 = float2(x_184.y, x_184.y); + const float x_210 = uv.x; + const float2 x_455 = float2(x_192.y, x_192.x); + const float x_778 = uv.x; + uv.x = 0.0f; + uv.x = x_778; + const QuicksortObject x_779 = obj; + const int tint_symbol_108[10] = (int[10])0; + const QuicksortObject tint_symbol_109 = {tint_symbol_108}; + obj = tint_symbol_109; + obj = x_779; + if ((x_210 > 0.25f)) { + const int x_780 = i_2; + i_2 = 0; + i_2 = x_780; + const int x_781 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_781; + const float3 x_456 = float3(0.0f, x_448.y, x_448.y); + const float x_782 = uv.x; + uv.x = 0.0f; + uv.x = x_782; + const int x_216 = obj.numbers[1]; + const QuicksortObject x_783 = obj; + const int tint_symbol_110[10] = (int[10])0; + const QuicksortObject tint_symbol_111 = {tint_symbol_110}; + obj = tint_symbol_111; + obj = x_783; + const float2 x_457 = float2(x_454.x, x_454.x); + const float2 x_784 = uv; + uv = (0.0f).xx; + uv = x_784; + const QuicksortObject x_785 = obj; + const int tint_symbol_112[10] = (int[10])0; + const QuicksortObject tint_symbol_113 = {tint_symbol_112}; + obj = tint_symbol_113; + obj = x_785; + const float2 x_458 = float2(3.0f, 0.0f); + const int x_786 = i_2; + i_2 = 0; + i_2 = x_786; + const float x_219 = color[0]; + const float x_787 = color[0]; + color[0] = 0.0f; + color[0] = x_787; + const float3 x_788 = color; + color = (0.0f).xxx; + color = x_788; + const float3 x_789 = color; + 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]; + color[0] = 0.0f; + color[0] = x_790; + color.x = (float(x_216) + x_219); + const int x_791 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_791; + } + const float x_792 = uv.x; + uv.x = 0.0f; + uv.x = x_792; + const float x_793 = uv.x; + uv.x = 0.0f; + uv.x = x_793; + const float x_223 = uv.x; + const float x_794 = uv.x; + uv.x = 0.0f; + uv.x = x_794; + const float3 x_460 = float3(x_453.z, x_453.y, x_453.y); + const float2 x_795 = uv; + 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 = (0.0f).xx; + const float x_797 = uv.x; + uv.x = 0.0f; + uv.x = x_797; + if ((x_223 > 0.5f)) { + const float x_798 = uv.x; + uv.x = 0.0f; + uv.x = x_798; + const float2 x_462 = float2(x_446.x, x_446.x); + const float x_799 = color.x; + color.x = 0.0f; + color.x = x_799; + const float x_800 = color.x; + color.x = 0.0f; + color.x = x_800; + const float3 x_463 = float3(x_453.x, x_453.z, x_461.y); + const float x_801 = color.x; + color.x = 0.0f; + color.x = x_801; + const int x_230 = obj.numbers[2u]; + const float x_802 = uv.x; + uv.x = 0.0f; + uv.x = x_802; + const float x_803 = color.x; + color.x = 0.0f; + color.x = x_803; + const int x_804 = obj.numbers[2u]; + obj.numbers[2u] = 0; + obj.numbers[2u] = x_804; + const float2 x_464 = float2(x_450.y, x_191.x); + const float x_805 = color.y; + color.y = 0.0f; + color.y = x_805; + const float x_234 = color.y; + const int x_806 = obj.numbers[2u]; + obj.numbers[2u] = 0; + obj.numbers[2u] = x_806; + const float2 x_465 = float2(x_463.x, x_185.x); + const float x_807 = color.x; + color.x = 0.0f; + color.x = x_807; + const int x_808 = i_2; + i_2 = 0; + i_2 = x_808; + const float2 x_466 = float2(x_455.y, 0.0f); + const int x_809 = i_2; + i_2 = 0; + i_2 = x_809; + color.y = (float(x_230) + x_234); + const float x_810 = uv.x; + uv.x = 0.0f; + uv.x = x_810; + } + const int x_811 = i_2; + i_2 = 0; + i_2 = x_811; + const float2 x_467 = float2(x_191.x, x_191.x); + const float x_812 = uv.x; + uv.x = 0.0f; + uv.x = x_812; + const float x_238 = uv[0]; + const float3 x_813 = color; + color = (0.0f).xxx; + color = x_813; + const float x_814 = color.x; + color.x = 0.0f; + color.x = x_814; + if ((x_238 > 0.75f)) { + const float x_815 = color.x; + color.x = 0.0f; + color.x = x_815; + const int x_245 = obj.numbers[3]; + const float x_816 = color.x; + color.x = 0.0f; + color.x = x_816; + const QuicksortObject x_817 = obj; + const int tint_symbol_114[10] = (int[10])0; + const QuicksortObject tint_symbol_115 = {tint_symbol_114}; + obj = tint_symbol_115; + obj = x_817; + const float3 x_468 = float3(x_467.x, x_467.x, x_467.x); + const float x_818 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_818; + const float x_819 = uv.x; + uv.x = 0.0f; + uv.x = x_819; + const float x_249 = color.z; + const float3 x_820 = color; + 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; + color.z = 0.0f; + color.z = x_821; + const int x_822 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_822; + const float2 x_470 = (0.0f).xx; + 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 = (0.0f).xx; + uv = x_824; + const float2 x_471 = float2(x_470.y, x_470.y); + } + const float x_825 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_825; + const float3 x_472 = float3(x_454.x, x_454.y, x_454.y); + const int x_254 = obj.numbers[4]; + const float x_826 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_826; + const float3 x_827 = color; + 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]; + obj.numbers[4] = 0; + obj.numbers[4] = x_828; + const float2 x_474 = float2(x_191.x, x_184.z); + const float x_829 = uv.x; + uv.x = 0.0f; + uv.x = x_829; + const float x_257 = color.y; + const float x_830 = color.y; + color.y = 0.0f; + color.y = x_830; + const float2 x_475 = float2(x_467.x, x_450.x); + const float x_831 = uv.x; + uv.x = 0.0f; + uv.x = x_831; + const float x_832 = color.x; + color.x = 0.0f; + 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(0.0f, x_472.x, 0.0f); + const float x_833 = uv.x; + uv.x = 0.0f; + uv.x = x_833; + const float x_834 = color.x; + color.x = 0.0f; + color.x = x_834; + const float2 x_478 = float2(x_472.x, x_472.y); + const float x_835 = uv.y; + uv.y = 0.0f; + uv.y = x_835; + const float x_261 = uv.y; + const int x_836 = i_2; + i_2 = 0; + i_2 = x_836; + const float3 x_479 = float3(0.0f, x_454.y, 0.0f); + 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, 0.0f); + 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 = (0.0f).xxx; + color = x_840; + const int x_267 = obj.numbers[5u]; + const float x_841 = color.x; + color.x = 0.0f; + color.x = x_841; + const int x_842 = i_2; + i_2 = 0; + i_2 = x_842; + const int x_843 = i_2; + i_2 = 0; + i_2 = x_843; + const float x_270 = color.x; + const float x_844 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_844; + const float3 x_482 = float3(x_455.x, x_475.y, x_455.y); + const QuicksortObject x_845 = obj; + const int tint_symbol_116[10] = (int[10])0; + const QuicksortObject tint_symbol_117 = {tint_symbol_116}; + obj = tint_symbol_117; + obj = x_845; + const float x_846 = uv.y; + uv.y = 0.0f; + uv.y = x_846; + const int x_847 = i_2; + i_2 = 0; + i_2 = x_847; + const float3 x_483 = float3(x_184.w, x_184.w, x_192.x); + const float x_848 = uv.x; + uv.x = 0.0f; + uv.x = x_848; + color.x = (float(x_267) + x_270); + const float3 x_484 = float3(x_454.y, x_450.x, x_454.y); + const float x_849 = uv.x; + uv.x = 0.0f; + uv.x = x_849; + } + const float x_850 = color.x; + color.x = 0.0f; + color.x = x_850; + const float3 x_485 = float3(x_467.x, x_450.y, x_450.x); + const float x_851 = uv.y; + uv.y = 0.0f; + uv.y = x_851; + const int x_852 = obj.numbers[4]; + obj.numbers[4] = 0; + obj.numbers[4] = x_852; + const float x_274 = uv.y; + const int x_853 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_853; + if ((x_274 > 0.5f)) { + const float x_854 = uv.x; + uv.x = 0.0f; + uv.x = x_854; + const float2 x_486 = float2(x_480.y, x_455.y); + const float x_855 = color.y; + color.y = 0.0f; + color.y = x_855; + const float2 x_487 = float2(x_449.z, x_449.y); + const float x_856 = uv.y; + uv.y = 0.0f; + uv.y = x_856; + const int x_280 = obj.numbers[6u]; + const float x_857 = uv.y; + uv.y = 0.0f; + uv.y = x_857; + const int x_858 = i_2; + i_2 = 0; + i_2 = x_858; + const int x_859 = obj.numbers[4]; + obj.numbers[4] = 0; + obj.numbers[4] = x_859; + const float2 x_488 = float2(x_473.z, x_473.y); + const float x_283 = color.y; + const float2 x_860 = uv; + uv = (0.0f).xx; + uv = x_860; + const float x_861 = color.x; + color.x = 0.0f; + color.x = x_861; + const float2 x_489 = float2(x_475.y, x_475.x); + const int x_862 = obj.numbers[6u]; + obj.numbers[6u] = 0; + obj.numbers[6u] = x_862; + const int x_863 = obj.numbers[6u]; + obj.numbers[6u] = 0; + obj.numbers[6u] = x_863; + const float2 x_490 = float2(x_480.z, x_480.z); + const QuicksortObject x_864 = obj; + const int tint_symbol_118[10] = (int[10])0; + const QuicksortObject tint_symbol_119 = {tint_symbol_118}; + obj = tint_symbol_119; + obj = x_864; + color.y = (float(x_280) + x_283); + const float x_865 = color.x; + color.x = 0.0f; + color.x = x_865; + const float2 x_491 = float2(2.0f, x_454.x); + const float x_866 = color.y; + color.y = 0.0f; + color.y = x_866; + } + const float2 x_492 = float2(x_455.y, x_455.y); + const float x_867 = color.x; + color.x = 0.0f; + color.x = x_867; + const float x_287 = uv.y; + const QuicksortObject x_868 = obj; + const int tint_symbol_120[10] = (int[10])0; + const QuicksortObject tint_symbol_121 = {tint_symbol_120}; + obj = tint_symbol_121; + obj = x_868; + const float2 x_493 = float2(x_475.x, x_475.y); + const float x_869 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_869; + const float x_870 = color.y; + color.y = 0.0f; + color.y = x_870; + const float3 x_494 = float3(x_191.x, x_191.y, x_191.y); + const int x_871 = obj.numbers[4]; + obj.numbers[4] = 0; + obj.numbers[4] = x_871; + if ((x_287 > 0.75f)) { + const float3 x_872 = color; + 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 = (0.0f).xxx; + color = x_874; + const int x_293 = obj.numbers[7]; + const float x_875 = uv.x; + uv.x = 0.0f; + uv.x = x_875; + const float3 x_496 = float3(x_475.x, x_467.y, x_467.x); + const float x_876 = color.y; + color.y = 0.0f; + color.y = x_876; + const float2 x_497 = float2(x_477.x, x_461.y); + const int x_877 = obj.numbers[0u]; + obj.numbers[0u] = 0; + obj.numbers[0u] = x_877; + const float x_878 = color.y; + color.y = 0.0f; + color.y = x_878; + const float3 x_498 = float3(x_478.x, x_478.y, x_478.x); + const float x_879 = color.x; + color.x = 0.0f; + color.x = x_879; + const float x_296 = color.z; + const float x_880 = uv.y; + uv.y = 0.0f; + uv.y = x_880; + const float2 x_499 = float2(x_184.x, x_184.y); + const float x_881 = uv.x; + uv.x = 0.0f; + uv.x = x_881; + const float x_882 = uv.y; + uv.y = 0.0f; + uv.y = x_882; + const float x_883 = uv.y; + uv.y = 0.0f; + uv.y = x_883; + const float3 x_500 = float3(x_499.y, x_499.y, x_494.z); + const float x_884 = color.z; + color.z = 0.0f; + color.z = x_884; + color.z = (float(x_293) + x_296); + const float x_885 = color.y; + color.y = 0.0f; + color.y = x_885; + const float2 x_501 = float2(x_453.x, x_453.z); + const float x_886 = color.x; + color.x = 0.0f; + color.x = x_886; + } + const int x_887 = i_2; + i_2 = 0; + i_2 = x_887; + const float2 x_502 = float2(x_451.y, x_192.y); + const float2 x_888 = uv; + uv = (0.0f).xx; + uv = x_888; + const int x_301 = obj.numbers[8]; + const int x_889 = i_2; + i_2 = 0; + i_2 = x_889; + const float2 x_503 = float2(x_185.x, x_451.z); + const int x_890 = obj.numbers[8]; + obj.numbers[8] = 0; + obj.numbers[8] = x_890; + const float x_891 = color.y; + color.y = 0.0f; + color.y = x_891; + const float2 x_504 = float2(x_453.y, 0.0f); + const float x_892 = color.x; + color.x = 0.0f; + color.x = x_892; + const float3 x_505 = float3(x_504.x, x_504.y, x_504.x); + const float x_893 = color.z; + color.z = 0.0f; + color.z = x_893; + const float x_304 = color.z; + const float x_894 = color.x; + color.x = 0.0f; + color.x = x_894; + const float2 x_506 = float2(x_493.x, x_492.x); + const int x_895 = obj.numbers[4]; + obj.numbers[4] = 0; + obj.numbers[4] = x_895; + const float x_896 = uv.y; + uv.y = 0.0f; + uv.y = x_896; + const float2 x_507 = float2(x_461.x, x_447.x); + const float x_897 = color.y; + color.y = 0.0f; + color.y = x_897; + color.z = (x_304 + float(x_301)); + const float2 x_898 = uv; + uv = (0.0f).xx; + uv = x_898; + const float x_899 = uv.x; + uv.x = 0.0f; + uv.x = x_899; + const float3 x_508 = float3(x_461.y, x_461.x, x_506.y); + const float x_900 = uv.x; + uv.x = 0.0f; + uv.x = x_900; + const float x_308 = uv.x; + const float x_901 = color.y; + color.y = 0.0f; + color.y = x_901; + const float3 x_509 = float3(x_503.y, x_503.x, x_448.z); + const float x_902 = uv.y; + uv.y = 0.0f; + uv.y = x_902; + const float x_310 = uv.y; + const float x_903 = uv.y; + uv.y = 0.0f; + uv.y = x_903; + const float x_904 = color.z; + color.z = 0.0f; + color.z = x_904; + const float3 x_510 = float3(2.0f, x_485.y, x_485.z); + const float x_905 = color.z; + color.z = 0.0f; + color.z = x_905; + const int x_906 = i_2; + i_2 = 0; + i_2 = x_906; + const float2 x_511 = float2(x_485.z, x_485.y); + const float3 x_907 = color; + color = (0.0f).xxx; + color = x_907; + const float x_908 = uv.y; + uv.y = 0.0f; + uv.y = x_908; + const float3 x_512 = float3(x_455.y, x_455.y, x_455.y); + const int x_909 = obj.numbers[4]; + obj.numbers[4] = 0; + obj.numbers[4] = x_909; + if ((abs((x_308 - x_310)) < 0.25f)) { + const float x_910 = uv.x; + uv.x = 0.0f; + uv.x = x_910; + const QuicksortObject x_911 = obj; + const int tint_symbol_122[10] = (int[10])0; + const QuicksortObject tint_symbol_123 = {tint_symbol_122}; + obj = tint_symbol_123; + obj = x_911; + const float3 x_513 = float3(x_505.z, x_505.x, x_448.x); + const int x_912 = obj.numbers[8]; + obj.numbers[8] = 0; + obj.numbers[8] = x_912; + const int x_317 = obj.numbers[9u]; + const float3 x_514 = float3(x_474.y, x_474.y, x_474.y); + const float x_913 = uv.y; + uv.y = 0.0f; + uv.y = x_913; + const float x_320 = color.x; + const float x_914 = uv.y; + uv.y = 0.0f; + uv.y = x_914; + const float2 x_515 = float2(x_502.x, x_502.y); + const float x_915 = color.x; + color.x = 0.0f; + color.x = x_915; + const float3 x_916 = color; + color = (0.0f).xxx; + color = x_916; + const float2 x_516 = float2(x_452.x, x_452.x); + const float2 x_917 = uv; + 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 = (0.0f).xxx; + color.x = (float(x_317) + x_320); + const float x_919 = color.x; + color.x = 0.0f; + color.x = x_919; + const float3 x_518 = float3(x_480.y, x_508.x, x_480.x); + const float x_920 = color.x; + color.x = 0.0f; + color.x = x_920; + } + const float x_921 = uv.y; + uv.y = 0.0f; + uv.y = x_921; + const float3 x_325 = color; + const float x_922 = uv[0]; + uv[0] = 0.0f; + uv[0] = x_922; + const float3 x_519 = float3(x_447.x, x_446.x, x_446.y); + const float3 x_326 = normalize(x_325); + const float x_923 = uv.x; + uv.x = 0.0f; + uv.x = x_923; + const QuicksortObject x_924 = obj; + const int tint_symbol_124[10] = (int[10])0; + const QuicksortObject tint_symbol_125 = {tint_symbol_124}; + obj = tint_symbol_125; + obj = x_924; + const QuicksortObject x_925 = obj; + const int tint_symbol_126[10] = (int[10])0; + const QuicksortObject tint_symbol_127 = {tint_symbol_126}; + obj = tint_symbol_127; + obj = x_925; + const float x_926 = color.y; + color.y = 0.0f; + color.y = x_926; + const float2 x_520 = float2(x_506.y, x_519.y); + const float x_927 = color.y; + color.y = 0.0f; + color.y = x_927; + const float4 x_330 = float4(x_326.x, x_326.y, x_326.z, 1.0f); + const float x_928 = uv.y; + uv.y = 0.0f; + uv.y = x_928; + const float3 x_521 = float3(2.0f, 2.0f, x_520.y); + const float x_929 = uv.x; + uv.x = 0.0f; + uv.x = x_929; + x_GLF_color = x_330; + const QuicksortObject x_930 = obj; + const int tint_symbol_128[10] = (int[10])0; + const QuicksortObject tint_symbol_129 = {tint_symbol_128}; + obj = tint_symbol_129; + obj = x_930; + const float3 x_522 = float3(x_330.w, x_330.y, x_493.x); + const float x_931 = color.x; + color.x = 0.0f; + color.x = x_931; + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol_49 { + float4 gl_FragCoord_param : SV_Position; +}; +struct tint_symbol_50 { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + const main_out tint_symbol_130 = {x_GLF_color}; + return tint_symbol_130; +} + +tint_symbol_50 main(tint_symbol_49 tint_symbol_48) { + const main_out inner_result = main_inner(tint_symbol_48.gl_FragCoord_param); + tint_symbol_50 wrapper_result = (tint_symbol_50)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/757.wgsl.expected.hlsl b/test/tint/bug/tint/757.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/757.wgsl.expected.hlsl rename to test/tint/bug/tint/757.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/757.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/757.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d144aff8e9 --- /dev/null +++ b/test/tint/bug/tint/757.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +cbuffer cbuffer_constants : register(b0, space0) { + uint4 constants[1]; +}; +Texture2DArray myTexture : register(t1, space0); + +RWByteAddressBuffer result : register(u3, space0); + +struct tint_symbol_1 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +void main_inner(uint3 GlobalInvocationID) { + uint flatIndex = ((((2u * 2u) * GlobalInvocationID.z) + (2u * GlobalInvocationID.y)) + GlobalInvocationID.x); + flatIndex = (flatIndex * 1u); + float4 texel = myTexture.Load(int4(int3(int2(GlobalInvocationID.xy), 0), 0)); + { + [loop] for(uint i = 0u; (i < 1u); i = (i + 1u)) { + result.Store((4u * (flatIndex + i)), asuint(texel.r)); + } + } +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/tint/764.wgsl.expected.hlsl b/test/tint/bug/tint/764.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/764.wgsl.expected.hlsl rename to test/tint/bug/tint/764.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/764.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/764.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b67a7dcfec --- /dev/null +++ b/test/tint/bug/tint/764.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + const float4x4 m = float4x4((1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx); + const float4 v1 = m[0]; + const float a = v1[0]; +} diff --git a/test/tint/bug/tint/782.wgsl.expected.hlsl b/test/tint/bug/tint/782.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/782.wgsl.expected.hlsl rename to test/tint/bug/tint/782.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/782.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/782.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59bb8da9d2 --- /dev/null +++ b/test/tint/bug/tint/782.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void foo() { + int tint_symbol[2] = (int[2])0; + int implict[2] = (int[2])0; + implict = tint_symbol; +} diff --git a/test/tint/bug/tint/804.spv.expected.hlsl b/test/tint/bug/tint/804.spv.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/804.spv.expected.hlsl rename to test/tint/bug/tint/804.spv.expected.dxc.hlsl diff --git a/test/tint/bug/tint/804.spv.expected.fxc.hlsl b/test/tint/bug/tint/804.spv.expected.fxc.hlsl new file mode 100644 index 0000000000..146a132ad3 --- /dev/null +++ b/test/tint/bug/tint/804.spv.expected.fxc.hlsl @@ -0,0 +1,19 @@ +SKIP: FAILED + + +struct buf0 { + resolution : vec2, +}; + +struct S { + field0 : u32, + field1 : u32, +}; + +@group(0) @binding(0) var x_75 : buf0; + +var gl_FragCoord : vec4; + +var x_GLF_color : vec4; + +error: extended arithmetic is not finalized for WGSL: https://github.com/gpuweb/gpuweb/issues/1565: %712 = OpISubBorrow %710 %107 %470 diff --git a/test/tint/bug/tint/824.wgsl.expected.hlsl b/test/tint/bug/tint/824.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/824.wgsl.expected.hlsl rename to test/tint/bug/tint/824.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/824.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/824.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d565814d44 --- /dev/null +++ b/test/tint/bug/tint/824.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +struct Output { + float4 Position; + float4 color; +}; +struct tint_symbol_1 { + uint VertexIndex : SV_VertexID; + uint InstanceIndex : SV_InstanceID; +}; +struct tint_symbol_2 { + float4 color : TEXCOORD0; + float4 Position : SV_Position; +}; + +Output main_inner(uint VertexIndex, uint InstanceIndex) { + 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), (1.0f).xxxx}; + output.color = colors[InstanceIndex]; + return output; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const Output inner_result = main_inner(tint_symbol.VertexIndex, tint_symbol.InstanceIndex); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.Position = inner_result.Position; + wrapper_result.color = inner_result.color; + return wrapper_result; +} diff --git a/test/tint/bug/tint/825.wgsl.expected.hlsl b/test/tint/bug/tint/825.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/825.wgsl.expected.hlsl rename to test/tint/bug/tint/825.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/825.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/825.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f38475dc0a --- /dev/null +++ b/test/tint/bug/tint/825.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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]; +} diff --git a/test/tint/bug/tint/827.wgsl.expected.hlsl b/test/tint/bug/tint/827.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/827.wgsl.expected.hlsl rename to test/tint/bug/tint/827.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/827.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/827.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1c9fa5b8b --- /dev/null +++ b/test/tint/bug/tint/827.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +Texture2D tex : register(t0, space0); +RWByteAddressBuffer result : register(u1, space0); + +struct tint_symbol_1 { + uint3 GlobalInvocationId : SV_DispatchThreadID; +}; + +void main_inner(uint3 GlobalInvocationId) { + result.Store((4u * ((GlobalInvocationId.y * 128u) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x)); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.GlobalInvocationId); + return; +} diff --git a/test/tint/bug/tint/870.spvasm.expected.hlsl b/test/tint/bug/tint/870.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/870.spvasm.expected.hlsl rename to test/tint/bug/tint/870.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/870.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/870.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..69b21b914e --- /dev/null +++ b/test/tint/bug/tint/870.spvasm.expected.fxc.hlsl @@ -0,0 +1,29 @@ +ByteAddressBuffer sspp962805860buildInformation : register(t2, space0); + +typedef int tint_symbol_ret[6]; +tint_symbol_ret tint_symbol(ByteAddressBuffer buffer, uint offset) { + int arr[6] = (int[6])0; + { + [loop] for(uint i = 0u; (i < 6u); i = (i + 1u)) { + arr[i] = asint(buffer.Load((offset + (i * 4u)))); + } + } + return arr; +} + +void main_1() { + int orientation[6] = (int[6])0; + const int x_23[6] = tint_symbol(sspp962805860buildInformation, 36u); + orientation[0] = x_23[0u]; + orientation[1] = x_23[1u]; + orientation[2] = x_23[2u]; + orientation[3] = x_23[3u]; + orientation[4] = x_23[4u]; + orientation[5] = x_23[5u]; + return; +} + +void main() { + main_1(); + return; +} diff --git a/test/tint/bug/tint/913.wgsl.expected.hlsl b/test/tint/bug/tint/913.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/913.wgsl.expected.hlsl rename to test/tint/bug/tint/913.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/913.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/913.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2c8eb01dac --- /dev/null +++ b/test/tint/bug/tint/913.wgsl.expected.fxc.hlsl @@ -0,0 +1,93 @@ +Texture2D src : register(t0, space0); +Texture2D tint_symbol : register(t1, space0); +RWByteAddressBuffer output : register(u2, space0); +cbuffer cbuffer_uniforms : register(b3, space0) { + uint4 uniforms[2]; +}; + +bool aboutEqual(float value, float expect) { + return (abs((value - expect)) < 0.001f); +} + +struct tint_symbol_2 { + uint3 GlobalInvocationID : SV_DispatchThreadID; +}; + +void main_inner(uint3 GlobalInvocationID) { + int2 tint_tmp; + src.GetDimensions(tint_tmp.x, tint_tmp.y); + const int2 srcSize = tint_tmp; + int2 tint_tmp_1; + tint_symbol.GetDimensions(tint_tmp_1.x, tint_tmp_1.y); + const int2 dstSize = tint_tmp_1; + const uint2 dstTexCoord = uint2(GlobalInvocationID.xy); + const float4 nonCoveredColor = float4(0.0f, 1.0f, 0.0f, 1.0f); + bool success = true; + bool tint_tmp_4 = (dstTexCoord.x < uniforms[1].x); + if (!tint_tmp_4) { + tint_tmp_4 = (dstTexCoord.y < uniforms[1].y); + } + bool tint_tmp_3 = (tint_tmp_4); + if (!tint_tmp_3) { + tint_tmp_3 = (dstTexCoord.x >= (uniforms[1].x + uniforms[1].z)); + } + bool tint_tmp_2 = (tint_tmp_3); + if (!tint_tmp_2) { + tint_tmp_2 = (dstTexCoord.y >= (uniforms[1].y + uniforms[1].w)); + } + 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)); + } + success = (tint_tmp_5); + } else { + uint2 srcTexCoord = ((dstTexCoord - uniforms[1].xy) + uniforms[0].zw); + if ((uniforms[0].x == 1u)) { + srcTexCoord.y = ((uint(srcSize.y) - srcTexCoord.y) - 1u); + } + const float4 srcColor = src.Load(int3(int2(srcTexCoord), 0)); + const float4 dstColor = tint_symbol.Load(int3(int2(dstTexCoord), 0)); + if ((uniforms[0].y == 2u)) { + bool tint_symbol_4 = success; + if (tint_symbol_4) { + tint_symbol_4 = aboutEqual(dstColor.r, srcColor.r); + } + bool tint_symbol_3 = tint_symbol_4; + if (tint_symbol_3) { + tint_symbol_3 = aboutEqual(dstColor.g, srcColor.g); + } + success = tint_symbol_3; + } else { + bool tint_symbol_8 = success; + if (tint_symbol_8) { + tint_symbol_8 = aboutEqual(dstColor.r, srcColor.r); + } + bool tint_symbol_7 = tint_symbol_8; + if (tint_symbol_7) { + tint_symbol_7 = aboutEqual(dstColor.g, srcColor.g); + } + bool tint_symbol_6 = tint_symbol_7; + if (tint_symbol_6) { + tint_symbol_6 = aboutEqual(dstColor.b, srcColor.b); + } + bool tint_symbol_5 = tint_symbol_6; + if (tint_symbol_5) { + tint_symbol_5 = aboutEqual(dstColor.a, srcColor.a); + } + success = tint_symbol_5; + } + } + const uint outputIndex = ((GlobalInvocationID.y * uint(dstSize.x)) + GlobalInvocationID.x); + if (success) { + output.Store((4u * outputIndex), asuint(1u)); + } else { + output.Store((4u * outputIndex), asuint(0u)); + } +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_2 tint_symbol_1) { + main_inner(tint_symbol_1.GlobalInvocationID); + return; +} diff --git a/test/tint/bug/tint/914.wgsl.expected.hlsl b/test/tint/bug/tint/914.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/914.wgsl.expected.hlsl rename to test/tint/bug/tint/914.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/914.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/914.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a9ca8f839a --- /dev/null +++ b/test/tint/bug/tint/914.wgsl.expected.fxc.hlsl @@ -0,0 +1,145 @@ +ByteAddressBuffer firstMatrix : register(t0, space0); +ByteAddressBuffer secondMatrix : register(t1, space0); +RWByteAddressBuffer resultMatrix : register(u2, space0); +cbuffer cbuffer_uniforms : register(b3, space0) { + uint4 uniforms[1]; +}; + +float mm_readA(uint row, uint col) { + bool tint_tmp = (row < uniforms[0].x); + if (tint_tmp) { + tint_tmp = (col < uniforms[0].y); + } + if ((tint_tmp)) { + const float result = asfloat(firstMatrix.Load((4u * ((row * uniforms[0].y) + col)))); + return result; + } + return 0.0f; +} + +float mm_readB(uint row, uint col) { + bool tint_tmp_1 = (row < uniforms[0].y); + if (tint_tmp_1) { + tint_tmp_1 = (col < uniforms[0].z); + } + if ((tint_tmp_1)) { + const float result = asfloat(secondMatrix.Load((4u * ((row * uniforms[0].z) + col)))); + return result; + } + return 0.0f; +} + +void mm_write(uint row, uint col, float value) { + bool tint_tmp_2 = (row < uniforms[0].x); + if (tint_tmp_2) { + tint_tmp_2 = (col < uniforms[0].z); + } + if ((tint_tmp_2)) { + const uint index = (col + (row * uniforms[0].z)); + resultMatrix.Store((4u * index), asuint(value)); + } +} + +groupshared float mm_Asub[64][64]; +groupshared float mm_Bsub[64][64]; + +struct tint_symbol_1 { + uint3 local_id : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 global_id : SV_DispatchThreadID; +}; + +void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 256u)) { + const uint i = (idx / 64u); + const uint i_1 = (idx % 64u); + mm_Asub[i][i_1] = 0.0f; + mm_Bsub[i][i_1] = 0.0f; + } + } + GroupMemoryBarrierWithGroupSync(); + 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 < (4u * 4u)); index = (index + 1u)) { + acc[index] = 0.0f; + } + } + const uint ColPerThreadA = (64u / 16u); + const uint tileColA = (local_id.x * ColPerThreadA); + 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 < 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 * 64u) + inputCol)); + mm_Asub[inputRow][inputCol] = tint_symbol_2; + } + } + } + } + { + [loop] for(uint innerRow = 0u; (innerRow < RowPerThreadB); innerRow = (innerRow + 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 * 64u) + inputRow), (globalCol + innerCol)); + mm_Bsub[innerCol][inputCol] = tint_symbol_3; + } + } + } + } + GroupMemoryBarrierWithGroupSync(); + { + [loop] for(uint k = 0u; (k < 64u); k = (k + 1u)) { + { + [loop] for(uint inner = 0u; (inner < 4u); inner = (inner + 1u)) { + BCached[inner] = mm_Bsub[k][(tileCol + inner)]; + } + } + { + [loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { + ACached = mm_Asub[(tileRow + innerRow)][k]; + { + [loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + const uint index = ((innerRow * 4u) + innerCol); + acc[index] = (acc[index] + (ACached * BCached[innerCol])); + } + } + } + } + } + } + GroupMemoryBarrierWithGroupSync(); + } + } + { + [loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { + { + [loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + const uint index = ((innerRow * 4u) + innerCol); + mm_write((globalRow + innerRow), (globalCol + innerCol), acc[index]); + } + } + } + } +} + +[numthreads(16, 16, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_id, tint_symbol.global_id, tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/bug/tint/922.wgsl.expected.hlsl b/test/tint/bug/tint/922.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/922.wgsl.expected.hlsl rename to test/tint/bug/tint/922.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/922.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/922.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3cf5a3686 --- /dev/null +++ b/test/tint/bug/tint/922.wgsl.expected.fxc.hlsl @@ -0,0 +1,249 @@ +struct Mat4x4_ { + float4 mx; + float4 my; + float4 mz; + float4 mw; +}; +struct Mat4x3_ { + float4 mx; + float4 my; + float4 mz; +}; +struct Mat4x2_ { + float4 mx; + float4 my; +}; +struct VertexOutput { + float4 v_Color; + float2 v_TexCoord; + float4 member; +}; + +cbuffer cbuffer_global : register(b0, space0) { + uint4 global[4]; +}; +cbuffer cbuffer_global1 : register(b1, space0) { + uint4 global1[3]; +}; +cbuffer cbuffer_global2 : register(b2, space0) { + uint4 global2[96]; +}; +static float3 a_Position1 = float3(0.0f, 0.0f, 0.0f); +static float2 a_UV1 = float2(0.0f, 0.0f); +static float4 a_Color1 = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float3 a_Normal1 = float3(0.0f, 0.0f, 0.0f); +static float a_PosMtxIdx1 = 0.0f; +static float4 v_Color = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float2 v_TexCoord = float2(0.0f, 0.0f); +static float4 gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); + +float3 Mat4x3GetCol0_(Mat4x3_ m) { + Mat4x3_ m1 = (Mat4x3_)0; + m1 = m; + return float3(m1.mx.x, m1.my.x, m1.mz.x); +} + +float3 Mat4x3GetCol1_(Mat4x3_ m2) { + Mat4x3_ m3 = (Mat4x3_)0; + m3 = m2; + return float3(m3.mx.y, m3.my.y, m3.mz.y); +} + +float3 Mat4x3GetCol2_(Mat4x3_ m4) { + Mat4x3_ m5 = (Mat4x3_)0; + m5 = m4; + return float3(m5.mx.z, m5.my.z, m5.mz.z); +} + +float3 Mat4x3GetCol3_(Mat4x3_ m6) { + Mat4x3_ m7 = (Mat4x3_)0; + m7 = m6; + return float3(m7.mx.w, m7.my.w, m7.mz.w); +} + +float4 Mul(Mat4x4_ m8, float4 v) { + Mat4x4_ m9 = (Mat4x4_)0; + float4 v1 = float4(0.0f, 0.0f, 0.0f, 0.0f); + m9 = m8; + v1 = v; + return float4(dot(m9.mx, v1), dot(m9.my, v1), dot(m9.mz, v1), dot(m9.mw, v1)); +} + +float3 Mul1(Mat4x3_ m10, float4 v2) { + Mat4x3_ m11 = (Mat4x3_)0; + float4 v3 = float4(0.0f, 0.0f, 0.0f, 0.0f); + m11 = m10; + v3 = v2; + return float3(dot(m11.mx, v3), dot(m11.my, v3), dot(m11.mz, v3)); +} + +float2 Mul2(Mat4x2_ m12, float4 v4) { + Mat4x2_ m13 = (Mat4x2_)0; + float4 v5 = float4(0.0f, 0.0f, 0.0f, 0.0f); + m13 = m12; + v5 = v4; + return float2(dot(m13.mx, v5), dot(m13.my, v5)); +} + +float4 Mul3(float3 v6, Mat4x3_ m14) { + float3 v7 = float3(0.0f, 0.0f, 0.0f); + Mat4x3_ m15 = (Mat4x3_)0; + v7 = v6; + m15 = m14; + const float3 x_e6 = Mat4x3GetCol0_(m15); + const float3 x_e7 = v7; + const float3 x_e11 = Mat4x3GetCol1_(m15); + const float3 x_e12 = v7; + const float3 x_e16 = Mat4x3GetCol2_(m15); + const float3 x_e17 = v7; + const float3 x_e21 = Mat4x3GetCol3_(m15); + return float4(dot(x_e6, x_e7), dot(x_e11, x_e12), dot(x_e16, x_e17), dot(x_e21, v7)); +} + +Mat4x4_ x_Mat4x4_(float n) { + float n1 = 0.0f; + Mat4x4_ o = (Mat4x4_)0; + n1 = n; + o.mx = float4(n1, 0.0f, 0.0f, 0.0f); + o.my = float4(0.0f, n1, 0.0f, 0.0f); + o.mz = float4(0.0f, 0.0f, n1, 0.0f); + o.mw = float4(0.0f, 0.0f, 0.0f, n1); + return o; +} + +Mat4x4_ x_Mat4x4_1(Mat4x3_ m16) { + Mat4x3_ m17 = (Mat4x3_)0; + Mat4x4_ o1 = (Mat4x4_)0; + m17 = m16; + const Mat4x4_ x_e4 = x_Mat4x4_(1.0f); + o1 = x_e4; + o1.mx = m17.mx; + o1.my = m17.my; + o1.mz = m17.mz; + return o1; +} + +Mat4x4_ x_Mat4x4_2(Mat4x2_ m18) { + Mat4x2_ m19 = (Mat4x2_)0; + Mat4x4_ o2 = (Mat4x4_)0; + m19 = m18; + const Mat4x4_ x_e4 = x_Mat4x4_(1.0f); + o2 = x_e4; + o2.mx = m19.mx; + o2.my = m19.my; + return o2; +} + +Mat4x3_ x_Mat4x3_(float n2) { + float n3 = 0.0f; + Mat4x3_ o3 = (Mat4x3_)0; + n3 = n2; + o3.mx = float4(n3, 0.0f, 0.0f, 0.0f); + o3.my = float4(0.0f, n3, 0.0f, 0.0f); + o3.mz = float4(0.0f, 0.0f, n3, 0.0f); + return o3; +} + +Mat4x3_ x_Mat4x3_1(Mat4x4_ m20) { + Mat4x4_ m21 = (Mat4x4_)0; + Mat4x3_ o4 = (Mat4x3_)0; + m21 = m20; + o4.mx = m21.mx; + o4.my = m21.my; + o4.mz = m21.mz; + return o4; +} + +Mat4x3_ tint_symbol_3(uint4 buffer[96], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const Mat4x3_ tint_symbol_9 = {asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])}; + return tint_symbol_9; +} + +Mat4x4_ tint_symbol_5(uint4 buffer[4], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 16u)) / 4; + const uint scalar_offset_5 = ((offset + 32u)) / 4; + const uint scalar_offset_6 = ((offset + 48u)) / 4; + const Mat4x4_ tint_symbol_10 = {asfloat(buffer[scalar_offset_3 / 4]), asfloat(buffer[scalar_offset_4 / 4]), asfloat(buffer[scalar_offset_5 / 4]), asfloat(buffer[scalar_offset_6 / 4])}; + return tint_symbol_10; +} + +Mat4x2_ tint_symbol_8(uint4 buffer[3], uint offset) { + const uint scalar_offset_7 = ((offset + 0u)) / 4; + const uint scalar_offset_8 = ((offset + 16u)) / 4; + const Mat4x2_ tint_symbol_11 = {asfloat(buffer[scalar_offset_7 / 4]), asfloat(buffer[scalar_offset_8 / 4])}; + return tint_symbol_11; +} + +void main1() { + Mat4x3_ t_PosMtx = (Mat4x3_)0; + float2 t_TexSpaceCoord = float2(0.0f, 0.0f); + const Mat4x3_ x_e18 = tint_symbol_3(global2, (48u * uint(int(a_PosMtxIdx1)))); + t_PosMtx = x_e18; + const Mat4x4_ x_e24 = x_Mat4x4_1(t_PosMtx); + const float3 x_e25 = a_Position1; + const Mat4x4_ x_e30 = x_Mat4x4_1(t_PosMtx); + const float4 x_e34 = Mul(x_e30, float4(a_Position1, 1.0f)); + const Mat4x4_ x_e35 = tint_symbol_5(global, 0u); + const Mat4x4_ x_e38 = x_Mat4x4_1(t_PosMtx); + const float3 x_e39 = a_Position1; + const Mat4x4_ x_e44 = x_Mat4x4_1(t_PosMtx); + const float4 x_e48 = Mul(x_e44, float4(a_Position1, 1.0f)); + const float4 x_e49 = Mul(x_e35, x_e48); + gl_Position = x_e49; + v_Color = a_Color1; + const float4 x_e52 = asfloat(global1[2]); + if ((x_e52.x == 2.0f)) { + { + const float3 x_e59 = a_Normal1; + 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; + } + } else { + { + const float2 x_e73 = a_UV1; + 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; + } + } +} + +struct tint_symbol_1 { + float3 a_Position : TEXCOORD0; + float2 a_UV : TEXCOORD1; + float4 a_Color : TEXCOORD2; + float3 a_Normal : TEXCOORD3; + float a_PosMtxIdx : TEXCOORD4; +}; +struct tint_symbol_2 { + float4 v_Color : TEXCOORD0; + float2 v_TexCoord : TEXCOORD1; + float4 member : SV_Position; +}; + +VertexOutput main_inner(float3 a_Position, float2 a_UV, float4 a_Color, float3 a_Normal, float a_PosMtxIdx) { + a_Position1 = a_Position; + a_UV1 = a_UV; + a_Color1 = a_Color; + a_Normal1 = a_Normal; + a_PosMtxIdx1 = a_PosMtxIdx; + main1(); + const VertexOutput tint_symbol_12 = {v_Color, v_TexCoord, gl_Position}; + return tint_symbol_12; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const VertexOutput inner_result = main_inner(tint_symbol.a_Position, tint_symbol.a_UV, tint_symbol.a_Color, tint_symbol.a_Normal, tint_symbol.a_PosMtxIdx); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.v_Color = inner_result.v_Color; + wrapper_result.v_TexCoord = inner_result.v_TexCoord; + wrapper_result.member = inner_result.member; + return wrapper_result; +} diff --git a/test/tint/bug/tint/926.wgsl.expected.hlsl b/test/tint/bug/tint/926.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/926.wgsl.expected.hlsl rename to test/tint/bug/tint/926.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/926.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/926.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f5ed4b6d4a --- /dev/null +++ b/test/tint/bug/tint/926.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer drawOut : register(u5, space0); +static uint cubeVerts = 0u; + +struct tint_symbol_1 { + uint3 global_id : SV_DispatchThreadID; +}; + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void computeMain_inner(uint3 global_id) { + const uint firstVertex = tint_atomicAdd(drawOut, 0u, cubeVerts); +} + +[numthreads(1, 1, 1)] +void computeMain(tint_symbol_1 tint_symbol) { + computeMain_inner(tint_symbol.global_id); + return; +} diff --git a/test/tint/bug/tint/942.wgsl.expected.hlsl b/test/tint/bug/tint/942.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/942.wgsl.expected.hlsl rename to test/tint/bug/tint/942.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/942.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/942.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26a04416f9 --- /dev/null +++ b/test/tint/bug/tint/942.wgsl.expected.fxc.hlsl @@ -0,0 +1,84 @@ +SamplerState samp : register(s0, space0); +cbuffer cbuffer_params : register(b1, space0) { + uint4 params[1]; +}; +Texture2D inputTex : register(t1, space1); +RWTexture2D outputTex : register(u2, space1); + +cbuffer cbuffer_flip : register(b3, space1) { + uint4 flip[1]; +}; +groupshared float3 tile[4][256]; + +struct tint_symbol_1 { + uint3 LocalInvocationID : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 WorkGroupID : SV_GroupID; +}; + +void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocation_index) { + { + [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] = (0.0f).xxx; + } + } + GroupMemoryBarrierWithGroupSync(); + const uint filterOffset = ((params[0].x - 1u) / 2u); + int3 tint_tmp; + inputTex.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + const int2 dims = tint_tmp.xy; + const int2 baseIndex = (int2(((WorkGroupID.xy * uint2(params[0].y, 4u)) + (LocalInvocationID.xy * uint2(4u, 1u)))) - int2(int(filterOffset), 0)); + { + [loop] for(uint r = 0u; (r < 4u); r = (r + 1u)) { + { + [loop] for(uint c = 0u; (c < 4u); c = (c + 1u)) { + int2 loadIndex = (baseIndex + int2(int(c), int(r))); + if ((flip[0].x != 0u)) { + loadIndex = loadIndex.yx; + } + tile[r][((4u * LocalInvocationID.x) + c)] = inputTex.SampleLevel(samp, ((float2(loadIndex) + (0.25f).xx) / float2(dims)), 0.0f).rgb; + } + } + } + } + GroupMemoryBarrierWithGroupSync(); + { + [loop] for(uint r = 0u; (r < 4u); r = (r + 1u)) { + { + [loop] for(uint c = 0u; (c < 4u); c = (c + 1u)) { + int2 writeIndex = (baseIndex + int2(int(c), int(r))); + if ((flip[0].x != 0u)) { + writeIndex = writeIndex.yx; + } + const uint center = ((4u * LocalInvocationID.x) + c); + bool tint_tmp_2 = (center >= filterOffset); + if (tint_tmp_2) { + tint_tmp_2 = (center < (256u - filterOffset)); + } + bool tint_tmp_1 = (tint_tmp_2); + if (tint_tmp_1) { + tint_tmp_1 = all((writeIndex < dims)); + } + if ((tint_tmp_1)) { + float3 acc = (0.0f).xxx; + { + [loop] for(uint f = 0u; (f < params[0].x); f = (f + 1u)) { + uint i = ((center + f) - filterOffset); + acc = (acc + ((1.0f / float(params[0].x)) * tile[r][i])); + } + } + outputTex[writeIndex] = float4(acc, 1.0f); + } + } + } + } + } +} + +[numthreads(64, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.WorkGroupID, tint_symbol.LocalInvocationID, tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/bug/tint/943.spvasm.expected.hlsl b/test/tint/bug/tint/943.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/943.spvasm.expected.hlsl rename to test/tint/bug/tint/943.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/943.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/943.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ae58a78045 --- /dev/null +++ b/test/tint/bug/tint/943.spvasm.expected.fxc.hlsl @@ -0,0 +1,374 @@ +warning: parameter 'dimInner' of 'mm_matMul_i1_i1_i1_' must be uniform +note: 'workgroupBarrier' must only be called from uniform control flow +note: reading from module-scope private variable 'dimInner_1' may result in a non-uniform value +static int dimAOuter_1 = 0; +cbuffer cbuffer_x_48 : register(b3, space0) { + uint4 x_48[5]; +}; +static int dimInner_1 = 0; +static int dimBOuter_1 = 0; +RWByteAddressBuffer x_54 : register(u0, space0); +static uint3 gl_LocalInvocationID = uint3(0u, 0u, 0u); +static uint3 gl_GlobalInvocationID = uint3(0u, 0u, 0u); +groupshared float mm_Asub[64][64]; +groupshared float mm_Bsub[64][1]; +ByteAddressBuffer x_165 : register(t1, space0); +static int batch = 0; +ByteAddressBuffer x_185 : register(t2, space0); + +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 >= (0).xx)); + x_88_phi = x_81; + if (x_81) { + const int2 x_84 = coord; + const int2 x_85 = shape; + x_87 = all((x_84 < x_85)); + x_88_phi = x_87; + } + return x_88_phi; +} + +float mm_readA_i1_i1_(inout int row, inout int col) { + int batchASize = 0; + int2 param_10 = int2(0, 0); + int2 param_11 = int2(0, 0); + float x_430 = 0.0f; + const int x_417 = asint(x_48[1].y); + const int x_419 = asint(x_48[1].z); + batchASize = (x_417 * x_419); + const int x_421 = row; + const int x_422 = col; + const int x_424 = dimAOuter_1; + const int x_425 = dimInner_1; + param_10 = int2(x_421, x_422); + param_11 = int2(x_424, x_425); + const bool x_429 = coordsInBounds_vi2_vi2_(param_10, param_11); + if (x_429) { + const int x_438 = batch; + const int x_439 = batchASize; + const int x_441 = row; + const int x_442 = dimInner_1; + const int x_445 = col; + const float x_448 = asfloat(x_165.Load((4u * uint((((x_438 * x_439) + (x_441 * x_442)) + x_445))))); + x_430 = x_448; + } else { + x_430 = 0.0f; + } + return x_430; +} + +float mm_readB_i1_i1_(inout int row_1, inout int col_1) { + int batchBSize = 0; + int2 param_12 = int2(0, 0); + int2 param_13 = int2(0, 0); + float x_468 = 0.0f; + const int x_455 = asint(x_48[2].y); + const int x_457 = asint(x_48[2].z); + batchBSize = (x_455 * x_457); + const int x_459 = row_1; + const int x_460 = col_1; + const int x_462 = dimInner_1; + const int x_463 = dimBOuter_1; + param_12 = int2(x_459, x_460); + param_13 = int2(x_462, x_463); + const bool x_467 = coordsInBounds_vi2_vi2_(param_12, param_13); + if (x_467) { + const int x_475 = batch; + const int x_476 = batchBSize; + const int x_478 = row_1; + const int x_479 = dimBOuter_1; + const int x_482 = col_1; + const float x_485 = asfloat(x_185.Load((4u * uint((((x_475 * x_476) + (x_478 * x_479)) + x_482))))); + x_468 = x_485; + } else { + x_468 = 0.0f; + } + return x_468; +} + +int getOutputFlatIndex_vi3_(inout int3 coords) { + const int3 x_99 = coords; + const int x_105 = asint(x_48[4].x); + const int x_107 = asint(x_48[4].y); + return int(dot(float3(x_99), float3(int3(x_105, x_107, 1)))); +} + +void setOutput_i1_f1_(inout int flatIndex, inout float value) { + const int x_95 = flatIndex; + const float x_96 = value; + x_54.Store((4u * uint(x_95)), asuint(x_96)); + return; +} + +void setOutput_i1_i1_i1_f1_(inout int d0, inout int d1, inout int d2, inout float value_1) { + int flatIndex_1 = 0; + int3 param = int3(0, 0, 0); + int param_1 = 0; + float param_2 = 0.0f; + const int x_115 = d0; + const int x_116 = d1; + const int x_117 = d2; + param = int3(x_115, x_116, x_117); + const int x_120 = getOutputFlatIndex_vi3_(param); + flatIndex_1 = x_120; + param_1 = flatIndex_1; + const float x_124 = value_1; + param_2 = x_124; + setOutput_i1_f1_(param_1, param_2); + return; +} + +void mm_write_i1_i1_f1_(inout int row_2, inout int col_2, inout float value_2) { + int3 outCoord = int3(0, 0, 0); + int param_14 = 0; + int param_15 = 0; + int param_16 = 0; + float param_17 = 0.0f; + const int x_491 = batch; + const int x_492 = row_2; + const int x_493 = col_2; + outCoord = int3(x_491, x_492, x_493); + param_14 = batch; + const int x_498 = row_2; + param_15 = x_498; + const int x_500 = col_2; + param_16 = x_500; + const float x_502 = value_2; + param_17 = x_502; + setOutput_i1_i1_i1_f1_(param_14, param_15, param_16, param_17); + return; +} + +void mm_matMul_i1_i1_i1_(inout int dimAOuter, inout int dimInner, inout int dimBOuter) { + int tileRow = 0; + int tileCol = 0; + int globalRow = 0; + int globalCol = 0; + int numTiles = 0; + int innerRow = 0; + int innerCol = 0; + float acc[1][1] = (float[1][1])0; + int tileColA = 0; + int tileRowB = 0; + int t = 0; + int innerRow_1 = 0; + int innerCol_1 = 0; + int inputRow = 0; + int inputCol = 0; + int param_3 = 0; + int param_4 = 0; + int innerRow_2 = 0; + int innerCol_2 = 0; + int inputRow_1 = 0; + int inputCol_1 = 0; + int param_5 = 0; + int param_6 = 0; + int k = 0; + int inner = 0; + float BCached[1] = (float[1])0; + int innerRow_3 = 0; + float ACached = 0.0f; + int innerCol_3 = 0; + int innerRow_4 = 0; + int innerCol_4 = 0; + int param_7 = 0; + int param_8 = 0; + float param_9 = 0.0f; + const uint x_132 = gl_LocalInvocationID.y; + tileRow = (asint(x_132) * 1); + const uint x_137 = gl_LocalInvocationID.x; + tileCol = (asint(x_137) * 1); + const uint x_143 = gl_GlobalInvocationID.y; + globalRow = (asint(x_143) * 1); + const uint x_148 = gl_GlobalInvocationID.x; + globalCol = (asint(x_148) * 1); + const int x_152 = dimInner; + numTiles = (((x_152 - 1) / 64) + 1); + innerRow = 0; + { + [loop] for(; (innerRow < 1); innerRow = (innerRow + 1)) { + innerCol = 0; + { + [loop] for(; (innerCol < 1); innerCol = (innerCol + 1)) { + acc[innerRow][innerCol] = 0.0f; + } + } + } + } + const uint x_187 = gl_LocalInvocationID.x; + tileColA = (asint(x_187) * 64); + const uint x_192 = gl_LocalInvocationID.y; + tileRowB = (asint(x_192) * 1); + t = 0; + { + [loop] for(; (t < numTiles); t = (t + 1)) { + innerRow_1 = 0; + { + [loop] for(; (innerRow_1 < 1); innerRow_1 = (innerRow_1 + 1)) { + innerCol_1 = 0; + { + [loop] for(; (innerCol_1 < 64); innerCol_1 = (innerCol_1 + 1)) { + inputRow = (tileRow + innerRow_1); + inputCol = (tileColA + innerCol_1); + const int x_233 = inputRow; + const int x_234 = inputCol; + const int x_238 = t; + const int x_240 = inputCol; + param_3 = (globalRow + innerRow_1); + param_4 = ((x_238 * 64) + x_240); + const float x_244 = mm_readA_i1_i1_(param_3, param_4); + mm_Asub[x_233][x_234] = x_244; + } + } + } + } + innerRow_2 = 0; + { + [loop] for(; (innerRow_2 < 1); innerRow_2 = (innerRow_2 + 1)) { + innerCol_2 = 0; + { + [loop] for(; (innerCol_2 < 1); innerCol_2 = (innerCol_2 + 1)) { + inputRow_1 = (tileRowB + innerRow_2); + inputCol_1 = (tileCol + innerCol_2); + const int x_278 = inputRow_1; + const int x_279 = inputCol_1; + const int x_284 = globalCol; + const int x_285 = innerCol_2; + param_5 = ((t * 64) + inputRow_1); + param_6 = (x_284 + x_285); + const float x_289 = mm_readB_i1_i1_(param_5, param_6); + mm_Bsub[x_278][x_279] = x_289; + } + } + } + } + GroupMemoryBarrierWithGroupSync(); + k = 0; + { + [loop] for(; (k < 64); k = (k + 1)) { + inner = 0; + { + [loop] for(; (inner < 1); inner = (inner + 1)) { + const int x_314 = inner; + const float x_320 = mm_Bsub[k][(tileCol + inner)]; + BCached[x_314] = x_320; + } + } + innerRow_3 = 0; + { + [loop] for(; (innerRow_3 < 1); innerRow_3 = (innerRow_3 + 1)) { + const float x_338 = mm_Asub[(tileRow + innerRow_3)][k]; + ACached = x_338; + innerCol_3 = 0; + { + [loop] for(; (innerCol_3 < 1); innerCol_3 = (innerCol_3 + 1)) { + const int x_347 = innerRow_3; + const int x_348 = innerCol_3; + const float x_349 = ACached; + const float x_352 = BCached[innerCol_3]; + const float x_355 = acc[x_347][x_348]; + acc[x_347][x_348] = (x_355 + (x_349 * x_352)); + } + } + } + } + } + } + GroupMemoryBarrierWithGroupSync(); + } + } + innerRow_4 = 0; + { + [loop] for(; (innerRow_4 < 1); innerRow_4 = (innerRow_4 + 1)) { + innerCol_4 = 0; + [loop] while (true) { + bool x_393 = false; + bool x_394_phi = false; + if ((innerCol_4 < 1)) { + } else { + break; + } + const int x_382 = globalCol; + const int x_383 = innerCol_4; + const int x_385 = dimBOuter; + const bool x_386 = ((x_382 + x_383) < x_385); + x_394_phi = x_386; + if (x_386) { + const int x_389 = globalRow; + const int x_390 = innerRow_4; + const int x_392 = dimAOuter; + x_393 = ((x_389 + x_390) < x_392); + x_394_phi = x_393; + } + if (x_394_phi) { + const int x_400 = globalCol; + const int x_401 = innerCol_4; + const int x_403 = innerRow_4; + const int x_404 = innerCol_4; + param_7 = (globalRow + innerRow_4); + param_8 = (x_400 + x_401); + const float x_409 = acc[x_403][x_404]; + param_9 = x_409; + mm_write_i1_i1_f1_(param_7, param_8, param_9); + } + { + innerCol_4 = (innerCol_4 + 1); + } + } + } + } + return; +} + +void main_1() { + int param_18 = 0; + int param_19 = 0; + int param_20 = 0; + const int x_67 = asint(x_48[1].y); + dimAOuter_1 = x_67; + const int x_71 = asint(x_48[1].z); + dimInner_1 = x_71; + const int x_75 = asint(x_48[2].z); + dimBOuter_1 = x_75; + const uint x_505 = gl_GlobalInvocationID.z; + batch = asint(x_505); + param_18 = dimAOuter_1; + param_19 = dimInner_1; + param_20 = dimBOuter_1; + mm_matMul_i1_i1_i1_(param_18, param_19, param_20); + return; +} + +struct tint_symbol_1 { + uint3 gl_LocalInvocationID_param : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 gl_GlobalInvocationID_param : SV_DispatchThreadID; +}; + +void main_inner(uint3 gl_LocalInvocationID_param, uint3 gl_GlobalInvocationID_param, uint local_invocation_index) { + { + const uint i_1 = local_invocation_index; + const uint i_2 = (local_invocation_index % 1u); + mm_Bsub[i_1][i_2] = 0.0f; + } + { + [loop] for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 64u)) { + const uint i = (idx / 64u); + const uint i_1 = (idx % 64u); + mm_Asub[i][i_1] = 0.0f; + } + } + GroupMemoryBarrierWithGroupSync(); + gl_LocalInvocationID = gl_LocalInvocationID_param; + gl_GlobalInvocationID = gl_GlobalInvocationID_param; + main_1(); +} + +[numthreads(1, 64, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.gl_LocalInvocationID_param, tint_symbol.gl_GlobalInvocationID_param, tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/bug/tint/948.wgsl.expected.hlsl b/test/tint/bug/tint/948.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/948.wgsl.expected.hlsl rename to test/tint/bug/tint/948.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/948.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/948.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1864ff118b --- /dev/null +++ b/test/tint/bug/tint/948.wgsl.expected.fxc.hlsl @@ -0,0 +1,196 @@ +bug/tint/948.wgsl:146:33 warning: 'textureSampleBias' must only be called from uniform control flow + let x_217 : vec4 = textureSampleBias(animationMapTexture, animationMapSampler, vec2(((x_208 + 0.5) / x_211), (0.125 * x_214)), 0.0); + ^^^^^^^^^^^^^^^^^ + +bug/tint/948.wgsl:138:9 note: control flow depends on non-uniform value + if ((x_197 > x_198)) { + ^^ + +bug/tint/948.wgsl:137:27 note: reading from module-scope private variable 'mt' may result in a non-uniform value + let x_198 : f32 = mt; + ^^ + +cbuffer cbuffer_x_20 : register(b9, space2) { + uint4 x_20[8]; +}; +Texture2D frameMapTexture : register(t3, space2); +SamplerState frameMapSampler : register(s2, space2); +static float2 tUV = float2(0.0f, 0.0f); +Texture2D tileMapsTexture0 : register(t5, space2); +SamplerState tileMapsSampler : register(s4, space2); +Texture2D tileMapsTexture1 : register(t6, space2); +Texture2D animationMapTexture : register(t8, space2); +SamplerState animationMapSampler : register(s7, space2); +static float mt = 0.0f; +Texture2D spriteSheetTexture : register(t1, space2); +SamplerState spriteSheetSampler : register(s0, space2); +static float4 glFragColor = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float2 tileID_1 = float2(0.0f, 0.0f); +static float2 levelUnits = float2(0.0f, 0.0f); +static float2 stageUnits_1 = float2(0.0f, 0.0f); +static float3 vPosition = float3(0.0f, 0.0f, 0.0f); +static float2 vUV = float2(0.0f, 0.0f); + +float4x4 getFrameData_f1_(inout float frameID) { + float fX = 0.0f; + const float x_15 = frameID; + const float x_25 = asfloat(x_20[6].w); + fX = (x_15 / x_25); + 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), (0.0f).xxxx); +} + +void main_1() { + float4 color = float4(0.0f, 0.0f, 0.0f, 0.0f); + float2 tileUV = float2(0.0f, 0.0f); + float2 tileID = float2(0.0f, 0.0f); + float2 sheetUnits = float2(0.0f, 0.0f); + float spriteUnits = 0.0f; + float2 stageUnits = float2(0.0f, 0.0f); + int i = 0; + float frameID_1 = 0.0f; + float4 animationData = float4(0.0f, 0.0f, 0.0f, 0.0f); + float f = 0.0f; + float4x4 frameData = 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 param = 0.0f; + float2 frameSize = float2(0.0f, 0.0f); + float2 offset_1 = float2(0.0f, 0.0f); + float2 ratio = float2(0.0f, 0.0f); + 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 = (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 = ((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 = ((1.0f).xx / x_111); + i = 0; + { + [loop] for(; (i < 2); i = (i + 1)) { + switch(i) { + 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 + (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 + (0.5f).xx) / x_140), 0.0f); + frameID_1 = x_142.x; + break; + } + default: { + break; + } + } + const float x_166 = frameID_1; + const float x_169 = asfloat(x_20[6].w); + const float4 x_172 = animationMapTexture.SampleBias(animationMapSampler, float2(((x_166 + 0.5f) / x_169), 0.0f), 0.0f); + animationData = x_172; + const float x_174 = animationData.y; + if ((x_174 > 0.0f)) { + const float x_181 = asfloat(x_20[0].x); + const float x_184 = animationData.z; + mt = ((x_181 * x_184) % 1.0f); + f = 0.0f; + { + [loop] for(; (f < 8.0f); f = (f + 1.0f)) { + const float x_197 = animationData.y; + if ((x_197 > mt)) { + const float x_203 = animationData.x; + frameID_1 = x_203; + break; + } + const float x_208 = frameID_1; + const float x_211 = asfloat(x_20[6].w); + const float4 x_217 = animationMapTexture.SampleBias(animationMapSampler, float2(((x_208 + 0.5f) / x_211), (0.125f * f)), 0.0f); + animationData = x_217; + } + } + } + param = (frameID_1 + 0.5f); + const float4x4 x_225 = getFrameData_f1_(param); + frameData = x_225; + const float4 x_228 = frameData[0]; + const float2 x_231 = asfloat(x_20[6].xy); + frameSize = (float2(x_228.w, x_228.z) / x_231); + const float4 x_235 = frameData[0]; + offset_1 = (float2(x_235.x, x_235.y) * sheetUnits); + const float4 x_241 = frameData[2]; + const float4 x_244 = frameData[0]; + ratio = (float2(x_241.x, x_241.y) / float2(x_244.w, x_244.z)); + const float x_248 = frameData[2].z; + if ((x_248 == 1.0f)) { + const float2 x_252 = tileUV; + tileUV = float2(x_252.y, x_252.x); + } + if ((i == 0)) { + const float4 x_268 = spriteSheetTexture.Sample(spriteSheetSampler, ((tileUV * frameSize) + offset_1)); + color = x_268; + } else { + const float4 x_279 = spriteSheetTexture.Sample(spriteSheetSampler, ((tileUV * frameSize) + offset_1)); + nc = x_279; + const float x_283 = color.w; + const float x_285 = nc.w; + alpha = min((x_283 + x_285), 1.0f); + const float4 x_290 = color; + const float4 x_292 = nc; + const float x_295 = nc.w; + mixed = lerp(float3(x_290.x, x_290.y, x_290.z), float3(x_292.x, x_292.y, x_292.z), float3(x_295, x_295, x_295)); + const float3 x_298 = mixed; + color = float4(x_298.x, x_298.y, x_298.z, alpha); + } + } + } + const float3 x_310 = asfloat(x_20[7].xyz); + const float4 x_311 = color; + const float3 x_313 = (float3(x_311.x, x_311.y, x_311.z) * x_310); + color = float4(x_313.x, x_313.y, x_313.z, color.w); + glFragColor = color; + return; +} + +struct main_out { + float4 glFragColor_1; +}; +struct tint_symbol_1 { + float3 vPosition_param : TEXCOORD0; + float2 vUV_param : TEXCOORD1; + float2 tUV_param : TEXCOORD2; + float2 stageUnits_1_param : TEXCOORD3; + float2 levelUnits_param : TEXCOORD4; + float2 tileID_1_param : TEXCOORD5; +}; +struct tint_symbol_2 { + float4 glFragColor_1 : SV_Target0; +}; + +main_out main_inner(float2 tUV_param, float2 tileID_1_param, float2 levelUnits_param, float2 stageUnits_1_param, float3 vPosition_param, float2 vUV_param) { + tUV = tUV_param; + tileID_1 = tileID_1_param; + levelUnits = levelUnits_param; + stageUnits_1 = stageUnits_1_param; + vPosition = vPosition_param; + vUV = vUV_param; + main_1(); + const main_out tint_symbol_6 = {glFragColor}; + return tint_symbol_6; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.tUV_param, tint_symbol.tileID_1_param, tint_symbol.levelUnits_param, tint_symbol.stageUnits_1_param, tint_symbol.vPosition_param, tint_symbol.vUV_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.glFragColor_1 = inner_result.glFragColor_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/949.wgsl.expected.hlsl b/test/tint/bug/tint/949.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/949.wgsl.expected.hlsl rename to test/tint/bug/tint/949.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/949.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/949.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e29a611252 --- /dev/null +++ b/test/tint/bug/tint/949.wgsl.expected.fxc.hlsl @@ -0,0 +1,355 @@ +bug/tint/949.wgsl:326:29 warning: 'textureSample' must only be called from uniform control flow + let x_397 : vec4 = textureSample(TextureSamplerTexture, TextureSamplerSampler, (x_394 + x_395)); + ^^^^^^^^^^^^^ + +bug/tint/949.wgsl:330:5 note: control flow depends on non-uniform value + if ((x_400 > x_401)) { + ^^ + +bug/tint/949.wgsl:308:27 note: reading from module-scope private variable 'v_output2' may result in a non-uniform value + let x_366 : vec4 = v_output2; + ^^^^^^^^^ + +struct lightingInfo { + float3 diffuse; + float3 specular; +}; + +static float u_Float = 0.0f; +static float3 u_Color = float3(0.0f, 0.0f, 0.0f); +Texture2D TextureSamplerTexture : register(t1, space2); +SamplerState TextureSamplerSampler : register(s0, space2); +static float2 vMainuv = float2(0.0f, 0.0f); +cbuffer cbuffer_x_269 : register(b6, space2) { + uint4 x_269[11]; +}; +static float4 v_output1 = float4(0.0f, 0.0f, 0.0f, 0.0f); +static bool gl_FrontFacing = false; +static float2 v_uv = float2(0.0f, 0.0f); +static float4 v_output2 = float4(0.0f, 0.0f, 0.0f, 0.0f); +Texture2D TextureSampler1Texture : register(t3, space2); +SamplerState TextureSampler1Sampler : register(s2, space2); +cbuffer cbuffer_light0 : register(b5, space0) { + uint4 light0[6]; +}; +static float4 glFragColor = float4(0.0f, 0.0f, 0.0f, 0.0f); +SamplerState bumpSamplerSampler : register(s4, space2); +Texture2D bumpSamplerTexture : register(t5, space2); + +float3x3 cotangent_frame_vf3_vf3_vf2_vf2_(inout float3 normal_1, inout float3 p, inout float2 uv, inout float2 tangentSpaceParams) { + float3 dp1 = float3(0.0f, 0.0f, 0.0f); + float3 dp2 = float3(0.0f, 0.0f, 0.0f); + float2 duv1 = float2(0.0f, 0.0f); + float2 duv2 = float2(0.0f, 0.0f); + float3 dp2perp = float3(0.0f, 0.0f, 0.0f); + float3 dp1perp = float3(0.0f, 0.0f, 0.0f); + float3 tangent = float3(0.0f, 0.0f, 0.0f); + float3 bitangent = float3(0.0f, 0.0f, 0.0f); + float invmax = 0.0f; + const float3 x_133 = p; + dp1 = ddx(x_133); + const float3 x_136 = p; + dp2 = ddy(x_136); + const float2 x_139 = uv; + duv1 = ddx(x_139); + const float2 x_142 = uv; + duv2 = ddy(x_142); + const float3 x_145 = dp2; + const float3 x_146 = normal_1; + dp2perp = cross(x_145, x_146); + const float3 x_149 = normal_1; + dp1perp = cross(x_149, dp1); + const float3 x_153 = dp2perp; + const float x_155 = duv1.x; + const float3 x_157 = dp1perp; + const float x_159 = duv2.x; + tangent = ((x_153 * x_155) + (x_157 * x_159)); + const float3 x_163 = dp2perp; + const float x_165 = duv1.y; + const float3 x_167 = dp1perp; + const float x_169 = duv2.y; + bitangent = ((x_163 * x_165) + (x_167 * x_169)); + const float x_173 = tangentSpaceParams.x; + tangent = (tangent * x_173); + const float x_177 = tangentSpaceParams.y; + bitangent = (bitangent * x_177); + invmax = rsqrt(max(dot(tangent, tangent), dot(bitangent, bitangent))); + const float3 x_191 = (tangent * invmax); + const float3 x_194 = (bitangent * invmax); + const float3 x_195 = normal_1; + return float3x3(float3(x_191.x, x_191.y, x_191.z), float3(x_194.x, x_194.y, x_194.z), float3(x_195.x, x_195.y, x_195.z)); +} + +float3x3 transposeMat3_mf33_(inout float3x3 inMatrix) { + float3 i0 = float3(0.0f, 0.0f, 0.0f); + float3 i1 = float3(0.0f, 0.0f, 0.0f); + float3 i2 = float3(0.0f, 0.0f, 0.0f); + float3x3 outMatrix = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + const float3 x_60 = inMatrix[0]; + i0 = x_60; + const float3 x_64 = inMatrix[1]; + i1 = x_64; + const float3 x_68 = inMatrix[2]; + i2 = x_68; + const float x_73 = i0.x; + const float x_75 = i1.x; + const float x_77 = i2.x; + const float3 x_78 = float3(x_73, x_75, x_77); + const float x_81 = i0.y; + const float x_83 = i1.y; + const float x_85 = i2.y; + const float3 x_86 = float3(x_81, x_83, x_85); + const float x_89 = i0.z; + const float x_91 = i1.z; + const float x_93 = i2.z; + const float3 x_94 = float3(x_89, x_91, x_93); + outMatrix = float3x3(float3(x_78.x, x_78.y, x_78.z), float3(x_86.x, x_86.y, x_86.z), float3(x_94.x, x_94.y, x_94.z)); + return outMatrix; +} + +float3 perturbNormalBase_mf33_vf3_f1_(inout float3x3 cotangentFrame, inout float3 normal, inout float scale) { + const float3x3 x_113 = cotangentFrame; + const float3 x_114 = normal; + return normalize(mul(x_114, x_113)); +} + +float3 perturbNormal_mf33_vf3_f1_(inout float3x3 cotangentFrame_1, inout float3 textureSample, inout float scale_1) { + float3x3 param = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3 param_1 = float3(0.0f, 0.0f, 0.0f); + float param_2 = 0.0f; + const float3 x_119 = textureSample; + const float3x3 x_125 = cotangentFrame_1; + param = x_125; + 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); + return x_129; +} + +lightingInfo computeHemisphericLighting_vf3_vf3_vf4_vf3_vf3_vf3_f1_(inout float3 viewDirectionW, inout float3 vNormal, inout float4 lightData, inout float3 diffuseColor, inout float3 specularColor, inout float3 groundColor, inout float glossiness) { + float ndl = 0.0f; + lightingInfo result = (lightingInfo)0; + float3 angleW = float3(0.0f, 0.0f, 0.0f); + float specComp = 0.0f; + const float3 x_212 = vNormal; + const float4 x_213 = lightData; + ndl = ((dot(x_212, float3(x_213.x, x_213.y, x_213.z)) * 0.5f) + 0.5f); + const float3 x_220 = groundColor; + const float3 x_221 = diffuseColor; + const float x_222 = ndl; + result.diffuse = lerp(x_220, x_221, float3(x_222, x_222, x_222)); + const float3 x_227 = viewDirectionW; + const float4 x_228 = lightData; + angleW = normalize((x_227 + float3(x_228.x, x_228.y, x_228.z))); + const float3 x_233 = vNormal; + specComp = max(0.0f, dot(x_233, angleW)); + const float x_237 = specComp; + const float x_238 = glossiness; + specComp = pow(x_237, max(1.0f, x_238)); + const float x_241 = specComp; + const float3 x_242 = specularColor; + result.specular = (x_242 * x_241); + return result; +} + +void main_1() { + float4 tempTextureRead = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 rgb = float3(0.0f, 0.0f, 0.0f); + float3 output5 = float3(0.0f, 0.0f, 0.0f); + float4 output4 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float2 uvOffset = float2(0.0f, 0.0f); + float normalScale = 0.0f; + float2 TBNUV = float2(0.0f, 0.0f); + float2 x_299 = float2(0.0f, 0.0f); + float3x3 TBN = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3 param_3 = float3(0.0f, 0.0f, 0.0f); + float3 param_4 = float3(0.0f, 0.0f, 0.0f); + float2 param_5 = float2(0.0f, 0.0f); + float2 param_6 = float2(0.0f, 0.0f); + float3x3 invTBN = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x3 param_7 = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float parallaxLimit = 0.0f; + float2 vOffsetDir = float2(0.0f, 0.0f); + float2 vMaxOffset = float2(0.0f, 0.0f); + float numSamples = 0.0f; + float stepSize = 0.0f; + float currRayHeight = 0.0f; + float2 vCurrOffset = float2(0.0f, 0.0f); + float2 vLastOffset = float2(0.0f, 0.0f); + float lastSampledHeight = 0.0f; + float currSampledHeight = 0.0f; + int i = 0; + float delta1 = 0.0f; + float delta2 = 0.0f; + float ratio = 0.0f; + float2 parallaxOcclusion_0 = float2(0.0f, 0.0f); + float3x3 param_8 = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3 param_9 = float3(0.0f, 0.0f, 0.0f); + float param_10 = 0.0f; + float2 output6 = float2(0.0f, 0.0f); + float4 tempTextureRead1 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 rgb1 = float3(0.0f, 0.0f, 0.0f); + float3 viewDirectionW_1 = float3(0.0f, 0.0f, 0.0f); + float shadow = 0.0f; + float glossiness_1 = 0.0f; + float3 diffuseBase = float3(0.0f, 0.0f, 0.0f); + float3 specularBase = float3(0.0f, 0.0f, 0.0f); + float3 normalW = float3(0.0f, 0.0f, 0.0f); + lightingInfo info = (lightingInfo)0; + float3 param_11 = float3(0.0f, 0.0f, 0.0f); + float3 param_12 = float3(0.0f, 0.0f, 0.0f); + float4 param_13 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 param_14 = float3(0.0f, 0.0f, 0.0f); + float3 param_15 = float3(0.0f, 0.0f, 0.0f); + float3 param_16 = float3(0.0f, 0.0f, 0.0f); + float param_17 = 0.0f; + float3 diffuseOutput = float3(0.0f, 0.0f, 0.0f); + float3 specularOutput = float3(0.0f, 0.0f, 0.0f); + float3 output3 = float3(0.0f, 0.0f, 0.0f); + u_Float = 100.0f; + u_Color = (0.5f).xxx; + const float4 x_262 = TextureSamplerTexture.Sample(TextureSamplerSampler, vMainuv); + tempTextureRead = x_262; + const float4 x_264 = tempTextureRead; + const float x_273 = asfloat(x_269[10].x); + rgb = (float3(x_264.x, x_264.y, x_264.z) * x_273); + 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 = (0.0f).xxxx; + uvOffset = (0.0f).xx; + const float x_292 = asfloat(x_269[8].x); + normalScale = (1.0f / x_292); + if (gl_FrontFacing) { + x_299 = v_uv; + } else { + x_299 = -(v_uv); + } + TBNUV = x_299; + const float4 x_310 = v_output2; + param_3 = (float3(x_310.x, x_310.y, x_310.z) * normalScale); + const float4 x_317 = v_output1; + param_4 = float3(x_317.x, x_317.y, x_317.z); + param_5 = TBNUV; + const float2 x_324 = asfloat(x_269[10].zw); + param_6 = x_324; + const float3x3 x_325 = cotangent_frame_vf3_vf3_vf2_vf2_(param_3, param_4, param_5, param_6); + TBN = x_325; + param_7 = TBN; + const float3x3 x_329 = transposeMat3_mf33_(param_7); + invTBN = x_329; + const float3 x_334 = mul(-(output5), invTBN); + parallaxLimit = (length(float2(x_334.x, x_334.y)) / mul(-(output5), invTBN).z); + const float x_345 = asfloat(x_269[9].w); + parallaxLimit = (parallaxLimit * x_345); + const float3 x_352 = mul(-(output5), invTBN); + vOffsetDir = normalize(float2(x_352.x, x_352.y)); + vMaxOffset = (vOffsetDir * parallaxLimit); + const float4 x_366 = v_output2; + 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 = (0.0f).xx; + vLastOffset = (0.0f).xx; + lastSampledHeight = 1.0f; + currSampledHeight = 1.0f; + i = 0; + { + [loop] for(; (i < 15); i = (i + 1)) { + const float4 x_397 = TextureSamplerTexture.Sample(TextureSamplerSampler, (v_uv + vCurrOffset)); + currSampledHeight = x_397.w; + if ((currSampledHeight > currRayHeight)) { + delta1 = (currSampledHeight - currRayHeight); + delta2 = ((currRayHeight + stepSize) - lastSampledHeight); + ratio = (delta1 / (delta1 + delta2)); + vCurrOffset = ((vLastOffset * ratio) + (vCurrOffset * (1.0f - ratio))); + break; + } else { + currRayHeight = (currRayHeight - stepSize); + vLastOffset = vCurrOffset; + vCurrOffset = (vCurrOffset + (vMaxOffset * stepSize)); + lastSampledHeight = currSampledHeight; + } + } + } + parallaxOcclusion_0 = vCurrOffset; + uvOffset = parallaxOcclusion_0; + const float4 x_452 = TextureSamplerTexture.Sample(TextureSamplerSampler, (v_uv + uvOffset)); + const float x_454 = asfloat(x_269[8].x); + param_8 = TBN; + param_9 = float3(x_452.x, x_452.y, x_452.z); + param_10 = (1.0f / x_454); + const float3 x_461 = perturbNormal_mf33_vf3_f1_(param_8, param_9, param_10); + output4 = float4(x_461.x, x_461.y, x_461.z, output4.w); + output6 = (v_uv + uvOffset); + const float4 x_475 = TextureSampler1Texture.Sample(TextureSampler1Sampler, output6); + tempTextureRead1 = x_475; + const float4 x_477 = tempTextureRead1; + rgb1 = float3(x_477.x, x_477.y, x_477.z); + const float3 x_481 = asfloat(x_269[9].xyz); + const float4 x_482 = v_output1; + 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 = (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; + param_12 = normalW; + const float4 x_507 = asfloat(light0[0]); + param_13 = x_507; + const float4 x_510 = asfloat(light0[1]); + param_14 = float3(x_510.x, x_510.y, x_510.z); + const float4 x_514 = asfloat(light0[2]); + param_15 = float3(x_514.x, x_514.y, x_514.z); + const float3 x_518 = asfloat(light0[3].xyz); + param_16 = x_518; + param_17 = glossiness_1; + const lightingInfo x_521 = computeHemisphericLighting_vf3_vf3_vf4_vf3_vf3_vf3_f1_(param_11, param_12, param_13, param_14, param_15, param_16, param_17); + info = x_521; + shadow = 1.0f; + const float3 x_523 = info.diffuse; + diffuseBase = (diffuseBase + (x_523 * shadow)); + const float3 x_529 = info.specular; + specularBase = (specularBase + (x_529 * shadow)); + diffuseOutput = (diffuseBase * rgb1); + specularOutput = (specularBase * u_Color); + output3 = (diffuseOutput + specularOutput); + const float3 x_548 = output3; + glFragColor = float4(x_548.x, x_548.y, x_548.z, 1.0f); + return; +} + +struct main_out { + float4 glFragColor_1; +}; +struct tint_symbol_1 { + float4 v_output1_param : TEXCOORD0; + float2 vMainuv_param : TEXCOORD1; + float4 v_output2_param : TEXCOORD2; + float2 v_uv_param : TEXCOORD3; + bool gl_FrontFacing_param : SV_IsFrontFace; +}; +struct tint_symbol_2 { + float4 glFragColor_1 : SV_Target0; +}; + +main_out main_inner(float2 vMainuv_param, float4 v_output1_param, bool gl_FrontFacing_param, float2 v_uv_param, float4 v_output2_param) { + vMainuv = vMainuv_param; + v_output1 = v_output1_param; + gl_FrontFacing = gl_FrontFacing_param; + v_uv = v_uv_param; + v_output2 = v_output2_param; + main_1(); + const main_out tint_symbol_8 = {glFragColor}; + return tint_symbol_8; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.vMainuv_param, tint_symbol.v_output1_param, tint_symbol.gl_FrontFacing_param, tint_symbol.v_uv_param, tint_symbol.v_output2_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.glFragColor_1 = inner_result.glFragColor_1; + return wrapper_result; +} diff --git a/test/tint/bug/tint/951.spvasm.expected.hlsl b/test/tint/bug/tint/951.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/951.spvasm.expected.hlsl rename to test/tint/bug/tint/951.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/951.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/951.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..7f73b88595 --- /dev/null +++ b/test/tint/bug/tint/951.spvasm.expected.fxc.hlsl @@ -0,0 +1,65 @@ +RWByteAddressBuffer x_16 : register(u0, space0); +ByteAddressBuffer x_20 : register(t1, space0); +static uint3 gl_GlobalInvocationID = uint3(0u, 0u, 0u); +cbuffer cbuffer_x_24 : register(b2, space0) { + uint4 x_24[2]; +}; + +float getAAtOutCoords_() { + const uint x_42 = gl_GlobalInvocationID.x; + const float x_44 = asfloat(x_20.Load((4u * x_42))); + return x_44; +} + +float unaryOperation_f1_(inout float a) { + const float x_47 = a; + if ((x_47 < 0.0f)) { + return asfloat(0x7f800000u); + } + const float x_55 = a; + return log(x_55); +} + +void setOutput_i1_f1_(inout int flatIndex, inout float value) { + const int x_27 = flatIndex; + const float x_28 = value; + x_16.Store((4u * uint(x_27)), asuint(x_28)); + return; +} + +void main_1() { + int index = 0; + float a_1 = 0.0f; + float param = 0.0f; + int param_1 = 0; + float param_2 = 0.0f; + const uint x_61 = gl_GlobalInvocationID.x; + index = asint(x_61); + const int x_63 = index; + const int x_70 = asint(x_24[1].x); + if ((x_63 < x_70)) { + const float x_75 = getAAtOutCoords_(); + a_1 = x_75; + param = a_1; + const float x_78 = unaryOperation_f1_(param); + param_1 = index; + param_2 = x_78; + setOutput_i1_f1_(param_1, param_2); + } + return; +} + +struct tint_symbol_1 { + uint3 gl_GlobalInvocationID_param : SV_DispatchThreadID; +}; + +void main_inner(uint3 gl_GlobalInvocationID_param) { + gl_GlobalInvocationID = gl_GlobalInvocationID_param; + main_1(); +} + +[numthreads(128, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.gl_GlobalInvocationID_param); + return; +} diff --git a/test/tint/bug/tint/959.wgsl.expected.hlsl b/test/tint/bug/tint/959.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/959.wgsl.expected.hlsl rename to test/tint/bug/tint/959.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/959.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/959.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c09714e84 --- /dev/null +++ b/test/tint/bug/tint/959.wgsl.expected.fxc.hlsl @@ -0,0 +1,68 @@ +ByteAddressBuffer b0 : register(t0, space0); +ByteAddressBuffer b1 : register(t0, space1); +ByteAddressBuffer b2 : register(t0, space2); +ByteAddressBuffer b3 : register(t0, space3); +ByteAddressBuffer b4 : register(t0, space4); +ByteAddressBuffer b5 : register(t0, space5); +ByteAddressBuffer b6 : register(t0, space6); +ByteAddressBuffer b7 : register(t0, space7); +cbuffer cbuffer_b8 : register(b1, space9) { + uint4 b8[1]; +}; +cbuffer cbuffer_b9 : register(b1, space8) { + uint4 b9[1]; +}; +cbuffer cbuffer_b10 : register(b1, space10) { + uint4 b10[1]; +}; +cbuffer cbuffer_b11 : register(b1, space11) { + uint4 b11[1]; +}; +cbuffer cbuffer_b12 : register(b1, space12) { + uint4 b12[1]; +}; +cbuffer cbuffer_b13 : register(b1, space13) { + uint4 b13[1]; +}; +cbuffer cbuffer_b14 : register(b1, space14) { + uint4 b14[1]; +}; +cbuffer cbuffer_b15 : register(b1, space15) { + uint4 b15[1]; +}; +Texture2D t0 : register(t1, space0); +Texture2D t1 : register(t1, space1); +Texture2D t2 : register(t1, space2); +Texture2D t3 : register(t1, space3); +Texture2D t4 : register(t1, space4); +Texture2D t5 : register(t1, space5); +Texture2D t6 : register(t1, space6); +Texture2D t7 : register(t1, space7); +Texture2D t8 : register(t200, space8); +Texture2D t9 : register(t200, space9); +Texture2D t10 : register(t200, space10); +Texture2D t11 : register(t200, space11); +Texture2D t12 : register(t200, space12); +Texture2D t13 : register(t200, space13); +Texture2D t14 : register(t200, space14); +Texture2D t15 : register(t200, space15); +SamplerState s0 : register(s200, space0); +SamplerState s1 : register(s200, space1); +SamplerState s2 : register(s200, space2); +SamplerState s3 : register(s200, space3); +SamplerState s4 : register(s200, space4); +SamplerState s5 : register(s200, space5); +SamplerState s6 : register(s200, space6); +SamplerState s7 : register(s200, space7); +SamplerComparisonState s8 : register(s300, space8); +SamplerComparisonState s9 : register(s300, space9); +SamplerComparisonState s10 : register(s300, space10); +SamplerComparisonState s11 : register(s300, space11); +SamplerComparisonState s12 : register(s300, space12); +SamplerComparisonState s13 : register(s300, space13); +SamplerComparisonState s14 : register(s300, space14); +SamplerComparisonState s15 : register(s300, space15); + +void main() { + return; +} diff --git a/test/tint/bug/tint/977.spvasm.expected.hlsl b/test/tint/bug/tint/977.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/977.spvasm.expected.hlsl rename to test/tint/bug/tint/977.spvasm.expected.dxc.hlsl diff --git a/test/tint/bug/tint/977.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/977.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a3d4ec9e36 --- /dev/null +++ b/test/tint/bug/tint/977.spvasm.expected.fxc.hlsl @@ -0,0 +1,58 @@ +static uint3 gl_GlobalInvocationID = uint3(0u, 0u, 0u); +RWByteAddressBuffer resultMatrix : register(u2, space0); +ByteAddressBuffer firstMatrix : register(t0, space0); +ByteAddressBuffer secondMatrix : register(t1, space0); +cbuffer cbuffer_x_46 : register(b3, space0) { + uint4 x_46[1]; +}; + +float binaryOperation_f1_f1_(inout float a, inout float b) { + float x_26 = 0.0f; + const float x_13 = b; + if ((x_13 == 0.0f)) { + return 1.0f; + } + const float x_21 = b; + if (!((round((x_21 - (2.0f * floor((x_21 / 2.0f))))) == 1.0f))) { + const float x_29 = a; + const float x_31 = b; + x_26 = pow(abs(x_29), x_31); + } else { + const float x_34 = a; + const float x_36 = a; + const float x_38 = b; + x_26 = (sign(x_34) * pow(abs(x_36), x_38)); + } + return x_26; +} + +void main_1() { + int index = 0; + int a_1 = 0; + float param = 0.0f; + float param_1 = 0.0f; + const uint x_54 = gl_GlobalInvocationID.x; + index = asint(x_54); + a_1 = -10; + const int x_63 = index; + param = -4.0f; + param_1 = -3.0f; + const float x_68 = binaryOperation_f1_f1_(param, param_1); + resultMatrix.Store((4u * uint(x_63)), asuint(x_68)); + return; +} + +struct tint_symbol_1 { + uint3 gl_GlobalInvocationID_param : SV_DispatchThreadID; +}; + +void main_inner(uint3 gl_GlobalInvocationID_param) { + gl_GlobalInvocationID = gl_GlobalInvocationID_param; + main_1(); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.gl_GlobalInvocationID_param); + return; +} diff --git a/test/tint/bug/tint/978.wgsl.expected.hlsl b/test/tint/bug/tint/978.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/978.wgsl.expected.hlsl rename to test/tint/bug/tint/978.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/978.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/978.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a869da4e74 --- /dev/null +++ b/test/tint/bug/tint/978.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct FragmentInput { + float2 vUv; +}; +struct FragmentOutput { + float4 color; +}; + +Texture2D depthMap : register(t5, space1); +SamplerState texSampler : register(s3, space1); + +struct tint_symbol_2 { + float2 vUv : TEXCOORD2; +}; +struct tint_symbol_3 { + float4 color : SV_Target0; +}; + +FragmentOutput main_inner(FragmentInput fIn) { + const float tint_symbol = depthMap.Sample(texSampler, fIn.vUv).x; + const float3 color = float3(tint_symbol, tint_symbol, tint_symbol); + FragmentOutput fOut = (FragmentOutput)0; + fOut.color = float4(color, 1.0f); + return fOut; +} + +tint_symbol_3 main(tint_symbol_2 tint_symbol_1) { + const FragmentInput tint_symbol_4 = {tint_symbol_1.vUv}; + const FragmentOutput inner_result = main_inner(tint_symbol_4); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.color = inner_result.color; + return wrapper_result; +} diff --git a/test/tint/bug/tint/980.wgsl.expected.hlsl b/test/tint/bug/tint/980.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/980.wgsl.expected.hlsl rename to test/tint/bug/tint/980.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/980.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/980.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bcec5f7aaa --- /dev/null +++ b/test/tint/bug/tint/980.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +float3 Bad(uint index, float3 rd) { + float3 normal = (0.0f).xxx; + set_float3(normal, index, -(sign(rd[index]))); + return normalize(normal); +} + +RWByteAddressBuffer io : register(u0, space0); + +struct tint_symbol_1 { + uint idx : SV_GroupIndex; +}; + +void main_inner(uint idx) { + const float3 tint_symbol_2 = Bad(io.Load(12u), asfloat(io.Load3(0u))); + io.Store3(0u, asuint(tint_symbol_2)); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.idx); + return; +} diff --git a/test/tint/bug/tint/990.wgsl.expected.hlsl b/test/tint/bug/tint/990.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/990.wgsl.expected.hlsl rename to test/tint/bug/tint/990.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/990.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/990.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43e268e7ba --- /dev/null +++ b/test/tint/bug/tint/990.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 0; + { + [loop] for(; false; ) { + } + } +} diff --git a/test/tint/bug/tint/992.wgsl.expected.hlsl b/test/tint/bug/tint/992.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/992.wgsl.expected.hlsl rename to test/tint/bug/tint/992.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/992.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/992.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7aace922e0 --- /dev/null +++ b/test/tint/bug/tint/992.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 frag_main_inner() { + float b = 0.0f; + float3 v = float3((b).xxx); + return float4(v, 1.0f); +} + +tint_symbol frag_main() { + const float4 inner_result = frag_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/bug/tint/993.wgsl.expected.hlsl b/test/tint/bug/tint/993.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/993.wgsl.expected.hlsl rename to test/tint/bug/tint/993.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/993.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/993.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ec8aed1a5 --- /dev/null +++ b/test/tint/bug/tint/993.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +cbuffer cbuffer_constants : register(b0, space1) { + uint4 constants[1]; +}; + +RWByteAddressBuffer result : register(u1, space1); + +RWByteAddressBuffer s : register(u0, space0); + +int tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +int runTest() { + return tint_atomicLoad(s, (4u * (0u + uint(constants[0].x)))); +} + +[numthreads(1, 1, 1)] +void main() { + const int tint_symbol = runTest(); + const uint tint_symbol_1 = uint(tint_symbol); + result.Store(0u, asuint(tint_symbol_1)); + return; +} diff --git a/test/tint/bug/tint/998.wgsl.expected.hlsl b/test/tint/bug/tint/998.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/bug/tint/998.wgsl.expected.hlsl rename to test/tint/bug/tint/998.wgsl.expected.dxc.hlsl diff --git a/test/tint/bug/tint/998.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/998.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a197d251a0 --- /dev/null +++ b/test/tint/bug/tint/998.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +cbuffer cbuffer_constants : register(b0, space1) { + uint4 constants[1]; +}; + +RWByteAddressBuffer result : register(u1, space1); + +struct S { + uint data[3]; +}; + +static S s = (S)0; + +[numthreads(1, 1, 1)] +void main() { + { + uint tint_symbol_1[3] = s.data; + tint_symbol_1[constants[0].x] = 0u; + s.data = tint_symbol_1; + } + return; +} diff --git a/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/arrayLength/simple.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/simple.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/deprecated.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/deprecated.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.fxc.hlsl b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1a3d5f3c7 --- /dev/null +++ b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = ((tint_symbol_1 - 0u) / 4u); + const uint l1 = tint_symbol_2; + const uint l2 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/simple.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/via_let.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/simple.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/simple.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/simple.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.hlsl b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.hlsl rename to test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/arrayLength/via_let.wgsl.expected.dxc.hlsl b/test/tint/builtins/arrayLength/via_let.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9e16082831 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let.wgsl.expected.dxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = ((tint_symbol_1 - 0u) / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let.wgsl.expected.fxc.hlsl b/test/tint/builtins/arrayLength/via_let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9e16082831 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = ((tint_symbol_1 - 0u) / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.dxc.hlsl b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9e16082831 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.dxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = ((tint_symbol_1 - 0u) / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.fxc.hlsl b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9e16082831 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = ((tint_symbol_1 - 0u) / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.dxc.hlsl b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d5cdca5b40 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.dxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = (tint_symbol_1 / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.fxc.hlsl b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d5cdca5b40 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = (tint_symbol_1 / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.dxc.hlsl b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d5cdca5b40 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.dxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = (tint_symbol_1 / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.fxc.hlsl b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d5cdca5b40 --- /dev/null +++ b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +ByteAddressBuffer G : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + uint tint_symbol_1 = 0u; + G.GetDimensions(tint_symbol_1); + const uint tint_symbol_2 = (tint_symbol_1 / 4u); + const uint l1 = tint_symbol_2; + return; +} diff --git a/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/arrays.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/arrays.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/array.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/array/array.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/array.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/array/array.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/array.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/array/array.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..76ff7252cb --- /dev/null +++ b/test/tint/builtins/atomicStore/array/array.spvasm.expected.fxc.hlsl @@ -0,0 +1,45 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint wg[4]; + +void compute_main_inner(uint local_invocation_index) { + uint idx = 0u; + idx = local_invocation_index; + { + [loop] for(; !(!((idx < 4u))); idx = (idx + 1u)) { + uint atomic_result = 0u; + InterlockedExchange(wg[idx], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[1], 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + [loop] for(uint idx_1 = local_invocation_index_1_param; (idx_1 < 4u); idx_1 = (idx_1 + 1u)) { + const uint i = idx_1; + uint atomic_result_2 = 0u; + InterlockedExchange(wg[i], 0u, atomic_result_2); + } + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/array/array.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/array/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/array/array.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/array/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/array/array.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/array/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d2ff575cd5 --- /dev/null +++ b/test/tint/builtins/atomicStore/array/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +groupshared uint wg[4]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { + const uint i = idx; + uint atomic_result = 0u; + InterlockedExchange(wg[i], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[1], 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..16f5d2e59f --- /dev/null +++ b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.dxc.hlsl @@ -0,0 +1,47 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint wg[3][2][1]; + +void compute_main_inner(uint local_invocation_index) { + uint idx = 0u; + idx = local_invocation_index; + { + [loop] for(; !(!((idx < 6u))); idx = (idx + 1u)) { + uint atomic_result = 0u; + InterlockedExchange(wg[(idx / 2u)][(idx % 2u)][(idx % 1u)], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[2][1][0], 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + [loop] for(uint idx_1 = local_invocation_index_1_param; (idx_1 < 6u); idx_1 = (idx_1 + 1u)) { + const uint i = (idx_1 / 2u); + const uint i_1 = (idx_1 % 2u); + const uint i_2 = (idx_1 % 1u); + uint atomic_result_2 = 0u; + InterlockedExchange(wg[i][i_1][i_2], 0u, atomic_result_2); + } + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..16f5d2e59f --- /dev/null +++ b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.fxc.hlsl @@ -0,0 +1,47 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint wg[3][2][1]; + +void compute_main_inner(uint local_invocation_index) { + uint idx = 0u; + idx = local_invocation_index; + { + [loop] for(; !(!((idx < 6u))); idx = (idx + 1u)) { + uint atomic_result = 0u; + InterlockedExchange(wg[(idx / 2u)][(idx % 2u)][(idx % 1u)], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[2][1][0], 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + [loop] for(uint idx_1 = local_invocation_index_1_param; (idx_1 < 6u); idx_1 = (idx_1 + 1u)) { + const uint i = (idx_1 / 2u); + const uint i_1 = (idx_1 % 2u); + const uint i_2 = (idx_1 % 1u); + uint atomic_result_2 = 0u; + InterlockedExchange(wg[i][i_1][i_2], 0u, atomic_result_2); + } + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.dxc.hlsl b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6f993d5073 --- /dev/null +++ b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.dxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint wg[3][2][1]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 6u); idx = (idx + 1u)) { + const uint i = (idx / 2u); + const uint i_1 = (idx % 2u); + const uint i_2 = (idx % 1u); + uint atomic_result = 0u; + InterlockedExchange(wg[i][i_1][i_2], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[2][1][0], 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f993d5073 --- /dev/null +++ b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint wg[3][2][1]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 6u); idx = (idx + 1u)) { + const uint i = (idx / 2u); + const uint i_1 = (idx % 2u); + const uint i_2 = (idx % 1u); + uint atomic_result = 0u; + InterlockedExchange(wg[i][i_1][i_2], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[2][1][0], 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9d31dd1592 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.fxc.hlsl @@ -0,0 +1,56 @@ +struct S_atomic { + int x; + uint a; + uint y; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S_atomic wg[10]; + +void compute_main_inner(uint local_invocation_index) { + uint idx = 0u; + idx = local_invocation_index; + { + [loop] for(; !(!((idx < 10u))); idx = (idx + 1u)) { + const uint x_28 = idx; + wg[x_28].x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg[x_28].a, 0u, atomic_result); + wg[x_28].y = 0u; + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[4].a, 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + [loop] for(uint idx_1 = local_invocation_index_1_param; (idx_1 < 10u); idx_1 = (idx_1 + 1u)) { + const uint i = idx_1; + wg[i].x = 0; + uint atomic_result_2 = 0u; + InterlockedExchange(wg[i].a, 0u, atomic_result_2); + wg[i].y = 0u; + } + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4642386bf0 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct S { + int x; + uint a; + uint y; +}; + +groupshared S wg[10]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 10u); idx = (idx + 1u)) { + const uint i = idx; + wg[i].x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg[i].a, 0u, atomic_result); + wg[i].y = 0u; + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg[4].a, 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..cb340f21e8 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.fxc.hlsl @@ -0,0 +1,50 @@ +struct S_atomic { + int x; + uint a; + uint b; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S_atomic wg; + +void compute_main_inner(uint local_invocation_index) { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.b, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_2); + uint atomic_result_3 = 0u; + InterlockedExchange(wg.b, 2u, atomic_result_3); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + wg.x = 0; + uint atomic_result_4 = 0u; + InterlockedExchange(wg.a, 0u, atomic_result_4); + uint atomic_result_5 = 0u; + InterlockedExchange(wg.b, 0u, atomic_result_5); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35b428feee --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct S { + int x; + uint a; + uint b; +}; + +groupshared S wg; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.b, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_2); + uint atomic_result_3 = 0u; + InterlockedExchange(wg.b, 2u, atomic_result_3); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/nested.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/nested.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4449c42258 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.fxc.hlsl @@ -0,0 +1,73 @@ +struct S0_atomic { + int x; + uint a; + int y; + int z; +}; +struct S1_atomic { + int x; + S0_atomic a; + int y; + int z; +}; +struct S2_atomic { + int x; + int y; + int z; + S1_atomic a; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S2_atomic wg; + +void compute_main_inner(uint local_invocation_index) { + wg.x = 0; + wg.y = 0; + wg.z = 0; + wg.a.x = 0; + wg.a.a.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a.a.a, 0u, atomic_result); + wg.a.a.y = 0; + wg.a.a.z = 0; + wg.a.y = 0; + wg.a.z = 0; + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a.a.a, 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + wg.x = 0; + wg.y = 0; + wg.z = 0; + wg.a.x = 0; + wg.a.a.x = 0; + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a.a.a, 0u, atomic_result_2); + wg.a.a.y = 0; + wg.a.a.z = 0; + wg.a.y = 0; + wg.a.z = 0; + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/nested.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/nested.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ceb2ff2de --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.fxc.hlsl @@ -0,0 +1,49 @@ +struct S0 { + int x; + uint a; + int y; + int z; +}; +struct S1 { + int x; + S0 a; + int y; + int z; +}; +struct S2 { + int x; + int y; + int z; + S1 a; +}; + +groupshared S2 wg; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + wg.x = 0; + wg.y = 0; + wg.z = 0; + wg.a.x = 0; + wg.a.a.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a.a.a, 0u, atomic_result); + wg.a.a.y = 0; + wg.a.a.z = 0; + wg.a.y = 0; + wg.a.z = 0; + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a.a.a, 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.hlsl b/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.hlsl rename to test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..beb2810121 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.fxc.hlsl @@ -0,0 +1,57 @@ +struct S_atomic { + int x; + uint a[10]; + uint y; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S_atomic wg; + +void compute_main_inner(uint local_invocation_index) { + uint idx = 0u; + wg.x = 0; + wg.y = 0u; + idx = local_invocation_index; + { + [loop] for(; !(!((idx < 10u))); idx = (idx + 1u)) { + uint atomic_result = 0u; + InterlockedExchange(wg.a[idx], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a[4], 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + wg.x = 0; + wg.y = 0u; + } + { + [loop] for(uint idx_1 = local_invocation_index_1_param; (idx_1 < 10u); idx_1 = (idx_1 + 1u)) { + const uint i = idx_1; + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a[i], 0u, atomic_result_2); + } + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.hlsl b/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.hlsl rename to test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..855c198a0f --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +struct S { + int x; + uint a[10]; + uint y; +}; + +groupshared S wg; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + wg.x = 0; + wg.y = 0u; + } + { + [loop] for(uint idx = local_invocation_index; (idx < 10u); idx = (idx + 1u)) { + const uint i = idx; + uint atomic_result = 0u; + InterlockedExchange(wg.a[i], 0u, atomic_result); + } + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a[4], 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..403d1fb811 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.dxc.hlsl @@ -0,0 +1,46 @@ +struct S_atomic { + int x; + uint a; + uint y; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S_atomic wg; + +void compute_main_inner(uint local_invocation_index) { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + wg.y = 0u; + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + wg.x = 0; + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a, 0u, atomic_result_2); + wg.y = 0u; + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..403d1fb811 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +struct S_atomic { + int x; + uint a; + uint y; +}; + +static uint local_invocation_index_1 = 0u; +groupshared S_atomic wg; + +void compute_main_inner(uint local_invocation_index) { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + wg.y = 0u; + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_1); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + wg.x = 0; + uint atomic_result_2 = 0u; + InterlockedExchange(wg.a, 0u, atomic_result_2); + wg.y = 0u; + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.dxc.hlsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fb93daa369 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.dxc.hlsl @@ -0,0 +1,29 @@ +struct S { + int x; + uint a; + uint y; +}; + +groupshared S wg; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + wg.y = 0u; + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.fxc.hlsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fb93daa369 --- /dev/null +++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +struct S { + int x; + uint a; + uint y; +}; + +groupshared S wg; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + wg.x = 0; + uint atomic_result = 0u; + InterlockedExchange(wg.a, 0u, atomic_result); + wg.y = 0u; + } + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_1 = 0u; + InterlockedExchange(wg.a, 1u, atomic_result_1); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..0cc23ee686 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_152966() { + int res = 0; + const int x_9 = tint_atomicAnd(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAnd_152966(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAnd_152966(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..897165d2a2 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_85a8d9() { + uint res = 0u; + const uint x_9 = tint_atomicAnd(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAnd_85a8d9(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAnd_85a8d9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..2e8671392c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAnd_45a819() { + int res = 0; + int atomic_result = 0; + InterlockedAnd(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAnd_45a819(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..fb9b51677b --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAnd_34edd3() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedAnd(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAnd_34edd3(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..d818bce03f --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,50 @@ +struct x__atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; + +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + int old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, int compare, int value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_1bd40a() { + x__atomic_compare_exchange_resulti32 res = (x__atomic_compare_exchange_resulti32)0; + const atomic_compare_exchange_weak_ret_type tint_symbol = tint_atomicCompareExchangeWeak(sb_rw, 0u, 1, 1); + const int old_value_1 = tint_symbol.old_value; + const int x_19 = old_value_1; + const x__atomic_compare_exchange_resulti32 tint_symbol_1 = {x_19, (x_19 == 1)}; + res = tint_symbol_1; + return; +} + +void fragment_main_1() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5d1bfd65dd --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,50 @@ +struct x__atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; + +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_63d8e6() { + x__atomic_compare_exchange_resultu32 res = (x__atomic_compare_exchange_resultu32)0; + const atomic_compare_exchange_weak_ret_type tint_symbol = tint_atomicCompareExchangeWeak(sb_rw, 0u, 1u, 1u); + const uint old_value_1 = tint_symbol.old_value; + const uint x_17 = old_value_1; + const x__atomic_compare_exchange_resultu32 tint_symbol_1 = {x_17, (x_17 == 1u)}; + res = tint_symbol_1; + return; +} + +void fragment_main_1() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..dae580e222 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,58 @@ +struct atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; +struct x__atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; + +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicCompareExchangeWeak_e88938() { + x__atomic_compare_exchange_resulti32 res = (x__atomic_compare_exchange_resulti32)0; + atomic_compare_exchange_resulti32 atomic_result = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value = 1; + InterlockedCompareExchange(arg_0, atomic_compare_value, 1, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + const atomic_compare_exchange_resulti32 tint_symbol_2 = atomic_result; + const int old_value_1 = tint_symbol_2.old_value; + const int x_18 = old_value_1; + const x__atomic_compare_exchange_resulti32 tint_symbol_3 = {x_18, (x_18 == 1)}; + res = tint_symbol_3; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_e88938(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b4fbb77cee --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,58 @@ +struct atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; +struct x__atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; + +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicCompareExchangeWeak_83580d() { + x__atomic_compare_exchange_resultu32 res = (x__atomic_compare_exchange_resultu32)0; + atomic_compare_exchange_resultu32 atomic_result = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value = 1u; + InterlockedCompareExchange(arg_0, atomic_compare_value, 1u, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + const atomic_compare_exchange_resultu32 tint_symbol_2 = atomic_result; + const uint old_value_1 = tint_symbol_2.old_value; + const uint x_17 = old_value_1; + const x__atomic_compare_exchange_resultu32 tint_symbol_3 = {x_17, (x_17 == 1u)}; + res = tint_symbol_3; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_83580d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..deffe11da8 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_f2e22f() { + int res = 0; + const int x_9 = tint_atomicExchange(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicExchange_f2e22f(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicExchange_f2e22f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..7b20c963fd --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_d59712() { + uint res = 0u; + const uint x_9 = tint_atomicExchange(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicExchange_d59712(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicExchange_d59712(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b994cfefdb --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicExchange_e114ba() { + int res = 0; + int atomic_result = 0; + InterlockedExchange(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicExchange_e114ba(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..926f18e3bd --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicExchange_0a5dca() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedExchange(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicExchange_0a5dca(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4fd3948e88 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMax(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_92aa72() { + int res = 0; + const int x_9 = tint_atomicMax(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicMax_92aa72(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMax_92aa72(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9934904856 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMax(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_51b9be() { + uint res = 0u; + const uint x_9 = tint_atomicMax(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicMax_51b9be(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMax_51b9be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..bdcfb2a5e7 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicMax_a89cc3() { + int res = 0; + int atomic_result = 0; + InterlockedMax(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMax_a89cc3(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9c405cb1d5 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicMax_beccfc() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedMax(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMax_beccfc(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..efe6471b38 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMin(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_8e38dc() { + int res = 0; + const int x_9 = tint_atomicMin(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicMin_8e38dc(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMin_8e38dc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1bb4ca033e --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMin(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_c67a74() { + uint res = 0u; + const uint x_9 = tint_atomicMin(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicMin_c67a74(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMin_c67a74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..72197d7811 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicMin_278235() { + int res = 0; + int atomic_result = 0; + InterlockedMin(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMin_278235(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..f91f02a22c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicMin_69d383() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedMin(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMin_69d383(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..f9e84d9887 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicOr(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_8d96a0() { + int res = 0; + const int x_9 = tint_atomicOr(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicOr_8d96a0(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicOr_8d96a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b0ac7e6e1c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicOr(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_5e95d4() { + uint res = 0u; + const uint x_9 = tint_atomicOr(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicOr_5e95d4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicOr_5e95d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9f15c6c6ef --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicOr_d09248() { + int res = 0; + int atomic_result = 0; + InterlockedOr(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicOr_d09248(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..22393c18c5 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicOr_5e3d61() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedOr(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicOr_5e3d61(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5ef62c96de --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,33 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, int value) { + int ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_d1e9a6() { + tint_atomicStore(sb_rw, 0u, 1); + return; +} + +void fragment_main_1() { + atomicStore_d1e9a6(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicStore_d1e9a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..259c472a39 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,33 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, uint value) { + uint ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_cdc29e() { + tint_atomicStore(sb_rw, 0u, 1u); + return; +} + +void fragment_main_1() { + atomicStore_cdc29e(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicStore_cdc29e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..c2dbd19e89 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,41 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicStore_8bea94() { + int atomic_result = 0; + InterlockedExchange(arg_0, 1, atomic_result); + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicStore_8bea94(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..309c7dfb36 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,41 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicStore_726882() { + uint atomic_result = 0u; + InterlockedExchange(arg_0, 1u, atomic_result); + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicStore_726882(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3624845ca0 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_051100() { + int res = 0; + const int x_9 = tint_atomicSub(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicSub_051100(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicSub_051100(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1bcbe098b8 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_15bfc9() { + uint res = 0u; + const uint x_9 = tint_atomicSub(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicSub_15bfc9(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicSub_15bfc9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..75a1b4a688 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicSub_77883a() { + int res = 0; + int atomic_result = 0; + InterlockedAdd(arg_0, -1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicSub_77883a(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e6f8372332 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicSub_0d26c2() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, -1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicSub_0d26c2(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..605a4d7cdb --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicXor(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_c1b78c() { + int res = 0; + const int x_9 = tint_atomicXor(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicXor_c1b78c(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicXor_c1b78c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3c2aad77ac --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicXor(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_54510e() { + uint res = 0u; + const uint x_9 = tint_atomicXor(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicXor_54510e(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicXor_54510e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5ffbd31c46 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicXor_75dc95() { + int res = 0; + int atomic_result = 0; + InterlockedXor(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicXor_75dc95(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..8296d8674e --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicXor_c8e6be() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedXor(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicXor_c8e6be(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ab2b1ee161 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int res = 0; + const int x_9 = tint_atomicSub(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..6f0bb19b4c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint res = 0u; + const uint x_9 = tint_atomicSub(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..09f225c0a7 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int res = 0; + int atomic_result = 0; + InterlockedAdd(arg_0, -1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..33bfa081d7 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, -1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..358487bedc --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int res = 0; + const int x_9 = tint_atomicAdd(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..358487bedc --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int res = 0; + const int x_9 = tint_atomicAdd(sb_rw, 0u, 1); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..bdc43b0733 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint res = 0u; + const uint x_9 = tint_atomicAdd(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..bdc43b0733 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint res = 0u; + const uint x_9 = tint_atomicAdd(sb_rw, 0u, 1u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..ccdf1ad871 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int res = 0; + int atomic_result = 0; + InterlockedAdd(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ccdf1ad871 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int res = 0; + int atomic_result = 0; + InterlockedAdd(arg_0, 1, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..c36ae576b3 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..c36ae576b3 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, 1u, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1b338c9e52 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicAdd(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..845d1f7ec7 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicAdd(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..0cfd69649d --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..380a1a5ee1 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ea4a0f8293 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_152966() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicAnd(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAnd_152966(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAnd_152966(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..44c8b7d84c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_85a8d9() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicAnd(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAnd_85a8d9(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAnd_85a8d9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..cd9a7b7725 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAnd_45a819() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedAnd(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAnd_45a819(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..37f4feec49 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAnd_34edd3() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAnd(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAnd_34edd3(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..d2d0b546bf --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,55 @@ +struct x__atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; + +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + int old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, int compare, int value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_1bd40a() { + int arg_1 = 0; + int arg_2 = 0; + x__atomic_compare_exchange_resulti32 res = (x__atomic_compare_exchange_resulti32)0; + arg_1 = 1; + arg_2 = 1; + const int x_23 = arg_2; + const atomic_compare_exchange_weak_ret_type tint_symbol = tint_atomicCompareExchangeWeak(sb_rw, 0u, arg_1, x_23); + const int old_value_1 = tint_symbol.old_value; + const int x_25 = old_value_1; + const x__atomic_compare_exchange_resulti32 tint_symbol_1 = {x_25, (x_25 == x_23)}; + res = tint_symbol_1; + return; +} + +void fragment_main_1() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b219eb15db --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,55 @@ +struct x__atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; + +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_63d8e6() { + uint arg_1 = 0u; + uint arg_2 = 0u; + x__atomic_compare_exchange_resultu32 res = (x__atomic_compare_exchange_resultu32)0; + arg_1 = 1u; + arg_2 = 1u; + const uint x_21 = arg_2; + const atomic_compare_exchange_weak_ret_type tint_symbol = tint_atomicCompareExchangeWeak(sb_rw, 0u, arg_1, x_21); + const uint old_value_1 = tint_symbol.old_value; + const uint x_23 = old_value_1; + const x__atomic_compare_exchange_resultu32 tint_symbol_1 = {x_23, (x_23 == x_21)}; + res = tint_symbol_1; + return; +} + +void fragment_main_1() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..afd64c0d91 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,63 @@ +struct atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; +struct x__atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; + +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicCompareExchangeWeak_e88938() { + int arg_1 = 0; + int arg_2 = 0; + x__atomic_compare_exchange_resulti32 res = (x__atomic_compare_exchange_resulti32)0; + arg_1 = 1; + arg_2 = 1; + const int x_22 = arg_2; + atomic_compare_exchange_resulti32 atomic_result = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value = arg_1; + InterlockedCompareExchange(arg_0, atomic_compare_value, x_22, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + const atomic_compare_exchange_resulti32 tint_symbol_2 = atomic_result; + const int old_value_1 = tint_symbol_2.old_value; + const int x_24 = old_value_1; + const x__atomic_compare_exchange_resulti32 tint_symbol_3 = {x_24, (x_24 == x_22)}; + res = tint_symbol_3; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_e88938(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..0a1e02663c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,63 @@ +struct atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; +struct x__atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; + +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicCompareExchangeWeak_83580d() { + uint arg_1 = 0u; + uint arg_2 = 0u; + x__atomic_compare_exchange_resultu32 res = (x__atomic_compare_exchange_resultu32)0; + arg_1 = 1u; + arg_2 = 1u; + const uint x_21 = arg_2; + atomic_compare_exchange_resultu32 atomic_result = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value = arg_1; + InterlockedCompareExchange(arg_0, atomic_compare_value, x_21, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + const atomic_compare_exchange_resultu32 tint_symbol_2 = atomic_result; + const uint old_value_1 = tint_symbol_2.old_value; + const uint x_23 = old_value_1; + const x__atomic_compare_exchange_resultu32 tint_symbol_3 = {x_23, (x_23 == x_21)}; + res = tint_symbol_3; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_83580d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..32a2a705bc --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_f2e22f() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicExchange(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicExchange_f2e22f(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicExchange_f2e22f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..84b133b3a3 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_d59712() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicExchange(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicExchange_d59712(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicExchange_d59712(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..d0e30a4659 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicExchange_e114ba() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedExchange(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicExchange_e114ba(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..f5ff3f7038 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicExchange_0a5dca() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedExchange(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicExchange_0a5dca(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..8ce9cf2f39 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.dxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_0806ad() { + int res = 0; + const int x_9 = tint_atomicLoad(sb_rw, 0u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicLoad_0806ad(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicLoad_0806ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..8ce9cf2f39 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_0806ad() { + int res = 0; + const int x_9 = tint_atomicLoad(sb_rw, 0u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicLoad_0806ad(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicLoad_0806ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..454ed3cf18 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.dxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_fe6cc3() { + uint res = 0u; + const uint x_9 = tint_atomicLoad(sb_rw, 0u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicLoad_fe6cc3(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicLoad_fe6cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..454ed3cf18 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,36 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_fe6cc3() { + uint res = 0u; + const uint x_9 = tint_atomicLoad(sb_rw, 0u); + res = x_9; + return; +} + +void fragment_main_1() { + atomicLoad_fe6cc3(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicLoad_fe6cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..1593c13612 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.dxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicLoad_afcc03() { + int res = 0; + int atomic_result = 0; + InterlockedOr(arg_0, 0, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicLoad_afcc03(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1593c13612 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicLoad_afcc03() { + int res = 0; + int atomic_result = 0; + InterlockedOr(arg_0, 0, atomic_result); + const int x_11 = atomic_result; + res = x_11; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicLoad_afcc03(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl new file mode 100644 index 0000000000..803eadd060 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.dxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicLoad_361bf1() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedOr(arg_0, 0, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicLoad_361bf1(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..803eadd060 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,44 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicLoad_361bf1() { + uint res = 0u; + uint atomic_result = 0u; + InterlockedOr(arg_0, 0, atomic_result); + const uint x_10 = atomic_result; + res = x_10; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicLoad_361bf1(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9b64baf78f --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMax(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_92aa72() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicMax(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicMax_92aa72(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMax_92aa72(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e9a8f8456a --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMax(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_51b9be() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicMax(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicMax_51b9be(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMax_51b9be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3020cf2dca --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicMax_a89cc3() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedMax(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMax_a89cc3(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b87186d8da --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicMax_beccfc() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedMax(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMax_beccfc(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e169190664 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMin(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_8e38dc() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicMin(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicMin_8e38dc(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMin_8e38dc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..76447efb9a --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMin(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_c67a74() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicMin(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicMin_c67a74(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicMin_c67a74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..cfc09f24e2 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicMin_278235() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedMin(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMin_278235(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..64c8150087 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicMin_69d383() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedMin(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicMin_69d383(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1daeac4f1c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicOr(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_8d96a0() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicOr(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicOr_8d96a0(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicOr_8d96a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..2268f30589 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicOr(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_5e95d4() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicOr(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicOr_5e95d4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicOr_5e95d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a4a9b58dad --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicOr_d09248() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedOr(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicOr_d09248(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..7a4ad50d89 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicOr_5e3d61() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedOr(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicOr_5e3d61(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4151049395 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, int value) { + int ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_d1e9a6() { + int arg_1 = 0; + arg_1 = 1; + tint_atomicStore(sb_rw, 0u, arg_1); + return; +} + +void fragment_main_1() { + atomicStore_d1e9a6(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicStore_d1e9a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4550cdd2eb --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, uint value) { + uint ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_cdc29e() { + uint arg_1 = 0u; + arg_1 = 1u; + tint_atomicStore(sb_rw, 0u, arg_1); + return; +} + +void fragment_main_1() { + atomicStore_cdc29e(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicStore_cdc29e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..68704dd4a3 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,43 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicStore_8bea94() { + int arg_1 = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedExchange(arg_0, arg_1, atomic_result); + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicStore_8bea94(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5c4176348e --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,43 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicStore_726882() { + uint arg_1 = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedExchange(arg_0, arg_1, atomic_result); + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicStore_726882(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..fca2ec1757 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_051100() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicSub(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicSub_051100(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicSub_051100(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..f036c9002d --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_15bfc9() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicSub(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicSub_15bfc9(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicSub_15bfc9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..988dbad445 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicSub_77883a() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, -arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicSub_77883a(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..eb60c8aa26 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicSub_0d26c2() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, -arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicSub_0d26c2(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..195284cb72 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicXor(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_c1b78c() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicXor(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicXor_c1b78c(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicXor_c1b78c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..36ccd4793e --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicXor(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_54510e() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicXor(sb_rw, 0u, arg_1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicXor_54510e(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicXor_54510e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..2c71c9af5e --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicXor_75dc95() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedXor(arg_0, arg_1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicXor_75dc95(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e7ceab2e56 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicXor_c8e6be() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedXor(arg_0, arg_1, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicXor_c8e6be(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..abf10b505d --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicSub(sb_rw, 0u, 1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4e6bb866ec --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicSub(sb_rw, 0u, 1u); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..181873a5f6 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, -1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..16aaa1c4d7 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, -1u, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9be7a9ef69 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + const int x_13 = tint_atomicAdd(sb_rw, 0u, 1); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_d32fe4(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..442a1ffc24 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,38 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + const uint x_13 = tint_atomicAdd(sb_rw, 0u, 1u); + res = x_13; + return; +} + +void fragment_main_1() { + atomicAdd_8a199a(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..6270b9d3e3 --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared int arg_0; + +void atomicAdd_794055() { + int arg_1 = 0; + int res = 0; + arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, 1, atomic_result); + const int x_15 = atomic_result; + res = x_15; + return; +} + +void compute_main_inner(uint local_invocation_index) { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + int atomic_result_2 = 0; + InterlockedExchange(arg_0, 0, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.hlsl rename to test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..d2a0213b3c --- /dev/null +++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +static uint local_invocation_index_1 = 0u; +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint arg_1 = 0u; + uint res = 0u; + arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, 1u, atomic_result); + const uint x_14 = atomic_result; + res = x_14; + return; +} + +void compute_main_inner(uint local_invocation_index) { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); + return; +} + +void compute_main_1() { + compute_main_inner(local_invocation_index_1); + return; +} + +struct tint_symbol_1 { + uint local_invocation_index_1_param : SV_GroupIndex; +}; + +void compute_main_inner_1(uint local_invocation_index_1_param) { + { + uint atomic_result_2 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_2); + } + GroupMemoryBarrierWithGroupSync(); + local_invocation_index_1 = local_invocation_index_1_param; + compute_main_1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner_1(tint_symbol.local_invocation_index_1_param); + return; +} diff --git a/test/tint/builtins/degrees.spvasm.expected.hlsl b/test/tint/builtins/degrees.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/degrees.spvasm.expected.hlsl rename to test/tint/builtins/degrees.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/degrees.spvasm.expected.fxc.hlsl b/test/tint/builtins/degrees.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ef4fff85f6 --- /dev/null +++ b/test/tint/builtins/degrees.spvasm.expected.fxc.hlsl @@ -0,0 +1,17 @@ +float tint_degrees(float param_0) { + return param_0 * 57.295779513082322865; +} + +void main_1() { + float a = 0.0f; + float b = 0.0f; + a = 42.0f; + b = tint_degrees(a); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/extractBits/scalar/i32.spvasm.expected.hlsl rename to test/tint/builtins/extractBits/scalar/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..fa2d12f348 --- /dev/null +++ b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +int tint_extract_bits(int v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void f_1() { + int v = 0; + uint offset_1 = 0u; + uint count = 0u; + const int x_14 = tint_extract_bits(v, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/extractBits/scalar/u32.spvasm.expected.hlsl rename to test/tint/builtins/extractBits/scalar/u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..310ab2e068 --- /dev/null +++ b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +uint tint_extract_bits(uint v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void f_1() { + uint v = 0u; + uint offset_1 = 0u; + uint count = 0u; + const uint x_11 = tint_extract_bits(v, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl rename to test/tint/builtins/extractBits/vec3/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..99dbb8891b --- /dev/null +++ b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +int3 tint_extract_bits(int3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void f_1() { + int3 v = (0).xxx; + uint offset_1 = 0u; + uint count = 0u; + const int3 x_15 = tint_extract_bits(v, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl rename to test/tint/builtins/extractBits/vec3/u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5c0b0cbca2 --- /dev/null +++ b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +uint3 tint_extract_bits(uint3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void f_1() { + uint3 v = (0u).xxx; + uint offset_1 = 0u; + uint count = 0u; + const uint3 x_14 = tint_extract_bits(v, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/frexp.wgsl.expected.hlsl b/test/tint/builtins/frexp.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/frexp.wgsl.expected.hlsl rename to test/tint/builtins/frexp.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/frexp.wgsl.expected.fxc.hlsl b/test/tint/builtins/frexp.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44299742b8 --- /dev/null +++ b/test/tint/builtins/frexp.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct frexp_result { + float sig; + int exp; +}; +frexp_result tint_frexp(float param_0) { + float exp; + float sig = frexp(param_0, exp); + frexp_result result = {sig, int(exp)}; + return result; +} + +[numthreads(1, 1, 1)] +void main() { + const frexp_result res = tint_frexp(1.230000019f); + const int exp = res.exp; + const float sig = res.sig; + return; +} diff --git a/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/002533.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/002533.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..40198e072e --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_002533() { + float4 res = abs((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_002533(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_002533(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_002533(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/005174.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/005174.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c439a7de41 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_005174() { + float3 res = abs((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_005174(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_005174(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_005174(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d34282891 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_1ce782() { + uint4 res = abs((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_1ce782(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_1ce782(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_1ce782(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..602c31aae0 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_1e9d53() { + float2 res = abs((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_1e9d53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_1e9d53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_1e9d53(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2deec6710 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_467cd1() { + uint res = abs(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_467cd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_467cd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_467cd1(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44825b3f56 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_4ad288() { + int res = abs(1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_4ad288(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_4ad288(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_4ad288(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2487339f2 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_5ad50a() { + int3 res = abs((0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_5ad50a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_5ad50a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_5ad50a(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2e994a2725 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_7326de() { + uint3 res = abs((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7326de(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7326de(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7326de(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..82c82ee31c --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_7f28e6() { + uint2 res = abs((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7f28e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7f28e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7f28e6(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a9575ee6e7 --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_7faa9e() { + int2 res = abs((0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7faa9e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7faa9e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7faa9e(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0beb965a4c --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_9c80a6() { + int4 res = abs((0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_9c80a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_9c80a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_9c80a6(); + return; +} diff --git a/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a4c7c03d4d --- /dev/null +++ b/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void abs_b96037() { + float res = abs(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_b96037(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_b96037(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_b96037(); + return; +} diff --git a/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acos/489247.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acos/489247.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d370fc469a --- /dev/null +++ b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void acos_489247() { + float res = acos(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_489247(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_489247(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_489247(); + return; +} diff --git a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb76fd6d75 --- /dev/null +++ b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void acos_8e2acf() { + float4 res = acos((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_8e2acf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_8e2acf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_8e2acf(); + return; +} diff --git a/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f76f3e9582 --- /dev/null +++ b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void acos_a610c4() { + float3 res = acos((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_a610c4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_a610c4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_a610c4(); + return; +} diff --git a/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..785cef0d0f --- /dev/null +++ b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void acos_dfc915() { + float2 res = acos((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_dfc915(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_dfc915(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_dfc915(); + return; +} diff --git a/test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..501bac6775 --- /dev/null +++ b/test/tint/builtins/gen/literal/acosh/640883.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float2 tint_acosh(float2 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_640883() { + float2 res = tint_acosh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_640883(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_640883(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_640883(); + return; +} diff --git a/test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..45048facce --- /dev/null +++ b/test/tint/builtins/gen/literal/acosh/d51ccb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float4 tint_acosh(float4 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_d51ccb() { + float4 res = tint_acosh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_d51ccb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_d51ccb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_d51ccb(); + return; +} diff --git a/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7a8e945ce0 --- /dev/null +++ b/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float3 tint_acosh(float3 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_e38f5c() { + float3 res = tint_acosh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_e38f5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_e38f5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_e38f5c(); + return; +} diff --git a/test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1eafaf7755 --- /dev/null +++ b/test/tint/builtins/gen/literal/acosh/ecf2d1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float tint_acosh(float x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_ecf2d1() { + float res = tint_acosh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_ecf2d1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_ecf2d1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_ecf2d1(); + return; +} diff --git a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..30f57aa976 --- /dev/null +++ b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void all_353d6a() { + bool res = all(false); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_353d6a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_353d6a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_353d6a(); + return; +} diff --git a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a5132c87a6 --- /dev/null +++ b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void all_986c7b() { + bool res = all((false).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_986c7b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_986c7b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_986c7b(); + return; +} diff --git a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..15cdeeff5b --- /dev/null +++ b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void all_bd2dba() { + bool res = all((false).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_bd2dba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_bd2dba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_bd2dba(); + return; +} diff --git a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/all/f46790.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/all/f46790.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6bfb9a7030 --- /dev/null +++ b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void all_f46790() { + bool res = all((false).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_f46790(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_f46790(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_f46790(); + return; +} diff --git a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/any/083428.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/any/083428.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..386fe95349 --- /dev/null +++ b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void any_083428() { + bool res = any((false).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_083428(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_083428(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_083428(); + return; +} diff --git a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ed4c65aab --- /dev/null +++ b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void any_0e3e58() { + bool res = any((false).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_0e3e58(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_0e3e58(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_0e3e58(); + return; +} diff --git a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9c108e7b00 --- /dev/null +++ b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void any_2ab91a() { + bool res = any(false); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_2ab91a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_2ab91a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_2ab91a(); + return; +} diff --git a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ca729eb2c --- /dev/null +++ b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void any_e755c1() { + bool res = any((false).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_e755c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_e755c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_e755c1(); + return; +} diff --git a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asin/064953.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asin/064953.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6014e668f4 --- /dev/null +++ b/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void asin_064953() { + float4 res = asin((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_064953(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_064953(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_064953(); + return; +} diff --git a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd20f3d568 --- /dev/null +++ b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void asin_7b6a44() { + float2 res = asin((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_7b6a44(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_7b6a44(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_7b6a44(); + return; +} diff --git a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7e56518c47 --- /dev/null +++ b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void asin_8cd9c9() { + float3 res = asin((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_8cd9c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_8cd9c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_8cd9c9(); + return; +} diff --git a/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b5d3eb53d7 --- /dev/null +++ b/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void asin_c0c272() { + float res = asin(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_c0c272(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_c0c272(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_c0c272(); + return; +} diff --git a/test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..597974753f --- /dev/null +++ b/test/tint/builtins/gen/literal/asinh/157447.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float tint_sinh(float x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_157447() { + float res = tint_sinh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_157447(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_157447(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_157447(); + return; +} diff --git a/test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bbfc0f061c --- /dev/null +++ b/test/tint/builtins/gen/literal/asinh/2265ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float3 tint_sinh(float3 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_2265ee() { + float3 res = tint_sinh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_2265ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_2265ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_2265ee(); + return; +} diff --git a/test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b5697b0773 --- /dev/null +++ b/test/tint/builtins/gen/literal/asinh/4a2226.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float2 tint_sinh(float2 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_4a2226() { + float2 res = tint_sinh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_4a2226(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_4a2226(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_4a2226(); + return; +} diff --git a/test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..63c730420a --- /dev/null +++ b/test/tint/builtins/gen/literal/asinh/8d2e51.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float4 tint_sinh(float4 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_8d2e51() { + float4 res = tint_sinh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_8d2e51(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_8d2e51(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_8d2e51(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ef60d4a98 --- /dev/null +++ b/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan_02979a() { + float res = atan(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_02979a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_02979a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_02979a(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..121c738db1 --- /dev/null +++ b/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan_331e6d() { + float3 res = atan((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_331e6d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_331e6d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_331e6d(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1e5177666f --- /dev/null +++ b/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan_a8b696() { + float4 res = atan((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_a8b696(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_a8b696(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_a8b696(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d4fcc10e44 --- /dev/null +++ b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan_ad96e4() { + float2 res = atan((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_ad96e4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_ad96e4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_ad96e4(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e851d81c41 --- /dev/null +++ b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan2_57fb13() { + float2 res = atan2((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_57fb13(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_57fb13(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_57fb13(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a7ff4717d --- /dev/null +++ b/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan2_96057c() { + float res = atan2(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_96057c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_96057c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_96057c(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..78e97ccd0b --- /dev/null +++ b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan2_a70d0d() { + float3 res = atan2((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_a70d0d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_a70d0d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_a70d0d(); + return; +} diff --git a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90f0e5fc1d --- /dev/null +++ b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void atan2_ae713e() { + float4 res = atan2((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_ae713e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_ae713e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_ae713e(); + return; +} diff --git a/test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..800037569a --- /dev/null +++ b/test/tint/builtins/gen/literal/atanh/440cca.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float3 tint_atanh(float3 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_440cca() { + float3 res = tint_atanh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_440cca(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_440cca(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_440cca(); + return; +} diff --git a/test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..76a5352a17 --- /dev/null +++ b/test/tint/builtins/gen/literal/atanh/7997d8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float tint_atanh(float x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_7997d8() { + float res = tint_atanh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_7997d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_7997d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_7997d8(); + return; +} diff --git a/test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cccac6e2af --- /dev/null +++ b/test/tint/builtins/gen/literal/atanh/c0e634.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float2 tint_atanh(float2 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_c0e634() { + float2 res = tint_atanh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_c0e634(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_c0e634(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_c0e634(); + return; +} diff --git a/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b0f5b464d8 --- /dev/null +++ b/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float4 tint_atanh(float4 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_f3e01b() { + float4 res = tint_atanh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_f3e01b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_f3e01b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_f3e01b(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16632807ec --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicAdd_794055() { + int atomic_result = 0; + InterlockedAdd(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f31fb5cf7f --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint res = tint_atomicAdd(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAdd_8a199a(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..62ae701abd --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int res = tint_atomicAdd(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAdd_d32fe4(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9429101fd4 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint atomic_result = 0u; + InterlockedAdd(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..281ec13b3d --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_152966() { + int res = tint_atomicAnd(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicAnd_152966(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAnd_152966(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a459d0831 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicAnd_34edd3() { + uint atomic_result = 0u; + InterlockedAnd(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAnd_34edd3(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43929b85f4 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicAnd_45a819() { + int atomic_result = 0; + InterlockedAnd(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAnd_45a819(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c89d149e9 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_85a8d9() { + uint res = tint_atomicAnd(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicAnd_85a8d9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAnd_85a8d9(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1e30e0e79 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + int old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, int compare, int value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_1bd40a() { + atomic_compare_exchange_weak_ret_type res = tint_atomicCompareExchangeWeak(sb_rw, 0u, 1, 1); +} + +void fragment_main() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicCompareExchangeWeak_1bd40a(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9dc72b3c46 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_63d8e6() { + atomic_compare_exchange_weak_ret_type res = tint_atomicCompareExchangeWeak(sb_rw, 0u, 1u, 1u); +} + +void fragment_main() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicCompareExchangeWeak_63d8e6(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3f46597640 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; +groupshared uint arg_0; + +void atomicCompareExchangeWeak_83580d() { + atomic_compare_exchange_resultu32 atomic_result = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value = 1u; + InterlockedCompareExchange(arg_0, atomic_compare_value, 1u, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + atomic_compare_exchange_resultu32 res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_83580d(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d201c49d5 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; +groupshared int arg_0; + +void atomicCompareExchangeWeak_e88938() { + atomic_compare_exchange_resulti32 atomic_result = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value = 1; + InterlockedCompareExchange(arg_0, atomic_compare_value, 1, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + atomic_compare_exchange_resulti32 res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_e88938(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..86bcffa267 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicExchange_0a5dca() { + uint atomic_result = 0u; + InterlockedExchange(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicExchange_0a5dca(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b40e1463d9 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_d59712() { + uint res = tint_atomicExchange(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicExchange_d59712(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicExchange_d59712(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3efb49280e --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicExchange_e114ba() { + int atomic_result = 0; + InterlockedExchange(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicExchange_e114ba(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ea1abc5d03 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_f2e22f() { + int res = tint_atomicExchange(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicExchange_f2e22f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicExchange_f2e22f(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c8f0893154 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMax(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_51b9be() { + uint res = tint_atomicMax(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicMax_51b9be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMax_51b9be(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f3d398cc33 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMax(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_92aa72() { + int res = tint_atomicMax(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicMax_92aa72(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMax_92aa72(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c5602f1156 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicMax_a89cc3() { + int atomic_result = 0; + InterlockedMax(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMax_a89cc3(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0b3f279602 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicMax_beccfc() { + uint atomic_result = 0u; + InterlockedMax(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMax_beccfc(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c719099fb --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicMin_278235() { + int atomic_result = 0; + InterlockedMin(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMin_278235(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..61d7265882 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicMin_69d383() { + uint atomic_result = 0u; + InterlockedMin(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMin_69d383(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b8d48b8247 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMin(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_8e38dc() { + int res = tint_atomicMin(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicMin_8e38dc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMin_8e38dc(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ae5176288 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMin(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_c67a74() { + uint res = tint_atomicMin(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicMin_c67a74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMin_c67a74(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..da41f0c373 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicOr_5e3d61() { + uint atomic_result = 0u; + InterlockedOr(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicOr_5e3d61(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..97883cbd8c --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicOr(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_5e95d4() { + uint res = tint_atomicOr(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicOr_5e95d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicOr_5e95d4(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04be9d7304 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicOr(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_8d96a0() { + int res = tint_atomicOr(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicOr_8d96a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicOr_8d96a0(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2831e1b12d --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicOr_d09248() { + int atomic_result = 0; + InterlockedOr(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicOr_d09248(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..45393224fb --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +groupshared uint arg_0; + +void atomicStore_726882() { + uint atomic_result = 0u; + InterlockedExchange(arg_0, 1u, atomic_result); +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicStore_726882(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d6dbcdcbf1 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +groupshared int arg_0; + +void atomicStore_8bea94() { + int atomic_result = 0; + InterlockedExchange(arg_0, 1, atomic_result); +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicStore_8bea94(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb8cfddaab --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, uint value) { + uint ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_cdc29e() { + tint_atomicStore(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicStore_cdc29e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicStore_cdc29e(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..599f575c7f --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, int value) { + int ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_d1e9a6() { + tint_atomicStore(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicStore_d1e9a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicStore_d1e9a6(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..29d8e0413c --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_051100() { + int res = tint_atomicSub(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicSub_051100(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicSub_051100(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..caddb67159 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicSub_0d26c2() { + uint atomic_result = 0u; + InterlockedAdd(arg_0, -1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicSub_0d26c2(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5d0027b60 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_15bfc9() { + uint res = tint_atomicSub(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicSub_15bfc9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicSub_15bfc9(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7ba0481586 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicSub_77883a() { + int atomic_result = 0; + InterlockedAdd(arg_0, -1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicSub_77883a(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9ed582e64e --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicXor(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_54510e() { + uint res = tint_atomicXor(sb_rw, 0u, 1u); +} + +void fragment_main() { + atomicXor_54510e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicXor_54510e(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f9cc3d2e9a --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicXor_75dc95() { + int atomic_result = 0; + InterlockedXor(arg_0, 1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicXor_75dc95(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bb38f4211e --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicXor(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_c1b78c() { + int res = tint_atomicXor(sb_rw, 0u, 1); +} + +void fragment_main() { + atomicXor_c1b78c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicXor_c1b78c(); + return; +} diff --git a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..404268dc92 --- /dev/null +++ b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicXor_c8e6be() { + uint atomic_result = 0u; + InterlockedXor(arg_0, 1u, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicXor_c8e6be(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..289f83b9a3 --- /dev/null +++ b/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ceil_34064b() { + float3 res = ceil((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_34064b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_34064b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_34064b(); + return; +} diff --git a/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..27adeb94b3 --- /dev/null +++ b/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ceil_678655() { + float res = ceil(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_678655(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_678655(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_678655(); + return; +} diff --git a/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2672a8954d --- /dev/null +++ b/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ceil_96f597() { + float2 res = ceil((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_96f597(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_96f597(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_96f597(); + return; +} diff --git a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9aa50a436b --- /dev/null +++ b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ceil_b74c16() { + float4 res = ceil((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_b74c16(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_b74c16(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_b74c16(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09bbd56edf --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_0acf8f() { + float2 res = clamp((0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_0acf8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_0acf8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_0acf8f(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8d30b440db --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_1a32e3() { + int4 res = clamp((0).xxxx, (0).xxxx, (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_1a32e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_1a32e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_1a32e3(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7a02612ae6 --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_2bd567() { + float res = clamp(1.0f, 1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_2bd567(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_2bd567(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_2bd567(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..91b78407dc --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_2bde41() { + float4 res = clamp((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_2bde41(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_2bde41(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_2bde41(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c88b562ea --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_548fc7() { + uint3 res = clamp((0u).xxx, (0u).xxx, (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_548fc7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_548fc7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_548fc7(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e0946cf0aa --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_5f0819() { + int3 res = clamp((0).xxx, (0).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_5f0819(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_5f0819(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_5f0819(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..66724c6a17 --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_6c1749() { + int2 res = clamp((0).xx, (0).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_6c1749(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_6c1749(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_6c1749(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57649dd986 --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_7706d7() { + uint2 res = clamp((0u).xx, (0u).xx, (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_7706d7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_7706d7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_7706d7(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..686dced891 --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_867397() { + float3 res = clamp((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_867397(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_867397(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_867397(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e0e3c6d9bd --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_a2de25() { + uint res = clamp(1u, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_a2de25(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_a2de25(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_a2de25(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cecad0a8d6 --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_b07c65() { + int res = clamp(1, 1, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_b07c65(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_b07c65(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_b07c65(); + return; +} diff --git a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3f2aea07a --- /dev/null +++ b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void clamp_bd43ce() { + uint4 res = clamp((0u).xxxx, (0u).xxxx, (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_bd43ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_bd43ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_bd43ce(); + return; +} diff --git a/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..611ff73e84 --- /dev/null +++ b/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cos_16dc15() { + float3 res = cos((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_16dc15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_16dc15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_16dc15(); + return; +} diff --git a/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ebb04a4d39 --- /dev/null +++ b/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cos_29d66d() { + float4 res = cos((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_29d66d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_29d66d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_29d66d(); + return; +} diff --git a/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6704985256 --- /dev/null +++ b/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cos_c3b486() { + float2 res = cos((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_c3b486(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_c3b486(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_c3b486(); + return; +} diff --git a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..46c1272145 --- /dev/null +++ b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cos_c5c28e() { + float res = cos(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_c5c28e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_c5c28e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_c5c28e(); + return; +} diff --git a/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ca3e141e0c --- /dev/null +++ b/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cosh_377652() { + float3 res = cosh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_377652(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_377652(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_377652(); + return; +} diff --git a/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f536857e8 --- /dev/null +++ b/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cosh_c13756() { + float2 res = cosh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_c13756(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_c13756(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_c13756(); + return; +} diff --git a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1b4f6c8d25 --- /dev/null +++ b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cosh_da92dd() { + float res = cosh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_da92dd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_da92dd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_da92dd(); + return; +} diff --git a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abed30ea44 --- /dev/null +++ b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cosh_e0c1de() { + float4 res = cosh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_e0c1de(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_e0c1de(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_e0c1de(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..297947f9c6 --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint tint_count_leading_zeros(uint v) { + uint x = uint(v); + const uint b16 = ((x <= 65535u) ? 16u : 0u); + x = (x << b16); + const uint b8 = ((x <= 16777215u) ? 8u : 0u); + x = (x << b8); + const uint b4 = ((x <= 268435455u) ? 4u : 0u); + x = (x << b4); + const uint b2 = ((x <= 1073741823u) ? 2u : 0u); + x = (x << b2); + const uint b1 = ((x <= 2147483647u) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countLeadingZeros_208d46() { + uint res = tint_count_leading_zeros(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_208d46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_208d46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_208d46(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c31a77cf2e --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int tint_count_leading_zeros(int v) { + uint x = uint(v); + const uint b16 = ((x <= 65535u) ? 16u : 0u); + x = (x << b16); + const uint b8 = ((x <= 16777215u) ? 8u : 0u); + x = (x << b8); + const uint b4 = ((x <= 268435455u) ? 4u : 0u); + x = (x << b4); + const uint b2 = ((x <= 1073741823u) ? 2u : 0u); + x = (x << b2); + const uint b1 = ((x <= 2147483647u) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countLeadingZeros_6d4656() { + int res = tint_count_leading_zeros(1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_6d4656(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_6d4656(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_6d4656(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..917c08ed2f --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint2 tint_count_leading_zeros(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); + x = (x << b16); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); + x = (x << b8); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); + x = (x << b4); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); + x = (x << b2); + 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((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_70783f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_70783f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_70783f(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa2102da87 --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int3 tint_count_leading_zeros(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); + x = (x << b16); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); + x = (x << b8); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); + x = (x << b4); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); + x = (x << b2); + 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((0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_7c38a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_7c38a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_7c38a6(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dd780a09e4 --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int2 tint_count_leading_zeros(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); + x = (x << b16); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); + x = (x << b8); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); + x = (x << b4); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); + x = (x << b2); + 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((0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_858d40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_858d40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_858d40(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1d7e5ff7da --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint3 tint_count_leading_zeros(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); + x = (x << b16); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); + x = (x << b8); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); + x = (x << b4); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); + x = (x << b2); + 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((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_ab6345(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_ab6345(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_ab6345(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..14484d6aff --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int4 tint_count_leading_zeros(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); + x = (x << b16); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); + x = (x << b8); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); + x = (x << b4); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); + x = (x << b2); + 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((0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_eab32b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_eab32b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_eab32b(); + return; +} diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a486ea0227 --- /dev/null +++ b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint4 tint_count_leading_zeros(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); + x = (x << b16); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); + x = (x << b8); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); + x = (x << b4); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); + x = (x << b2); + 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((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_f70103(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_f70103(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_f70103(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f716c3d0b --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_0d0e46() { + uint4 res = countbits((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_0d0e46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_0d0e46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_0d0e46(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd8fe9e0be --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_0f7980() { + int4 res = asint(countbits(asuint((0).xxxx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_0f7980(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_0f7980(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_0f7980(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..769e38be7e --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_65d2ae() { + int3 res = asint(countbits(asuint((0).xxx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_65d2ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_65d2ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_65d2ae(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..987a6f20ee --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_690cfc() { + uint3 res = countbits((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_690cfc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_690cfc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_690cfc(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..055ea5b432 --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_94fd81() { + uint2 res = countbits((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_94fd81(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_94fd81(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_94fd81(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b51b87d6d --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_ae44f9() { + uint res = countbits(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_ae44f9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_ae44f9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_ae44f9(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c1a431a02 --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_af90e2() { + int2 res = asint(countbits(asuint((0).xx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_af90e2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_af90e2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_af90e2(); + return; +} diff --git a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc56ef3deb --- /dev/null +++ b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void countOneBits_fd88b2() { + int res = asint(countbits(asuint(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_fd88b2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_fd88b2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_fd88b2(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..41ea33276e --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint2 tint_count_trailing_zeros(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_1ad138(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_1ad138(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_1ad138(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4acdebb75d --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int4 tint_count_trailing_zeros(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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((0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_1dc84a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_1dc84a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_1dc84a(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..edace4972c --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint tint_count_trailing_zeros(uint v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countTrailingZeros_21e394() { + uint res = tint_count_trailing_zeros(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_21e394(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_21e394(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_21e394(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..55bb1c3cbf --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int2 tint_count_trailing_zeros(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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((0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_327c37(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_327c37(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_327c37(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b5eacaaf90 --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int tint_count_trailing_zeros(int v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countTrailingZeros_42fed6() { + int res = tint_count_trailing_zeros(1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_42fed6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_42fed6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_42fed6(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1c882cf1c --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint3 tint_count_trailing_zeros(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_8ed26f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_8ed26f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_8ed26f(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4518caff7d --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int3 tint_count_trailing_zeros(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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((0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_acfacb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_acfacb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_acfacb(); + return; +} diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aed23ef744 --- /dev/null +++ b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint4 tint_count_trailing_zeros(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_d2b4a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_d2b4a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_d2b4a0(); + return; +} diff --git a/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..36e4194fb1 --- /dev/null +++ b/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void cross_041cb0() { + float3 res = cross((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cross_041cb0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cross_041cb0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cross_041cb0(); + return; +} diff --git a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..70e9a6f3d1 --- /dev/null +++ b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float4 tint_degrees(float4 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_0d170c() { + float4 res = tint_degrees((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_0d170c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_0d170c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_0d170c(); + return; +} diff --git a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..334d00091c --- /dev/null +++ b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float2 tint_degrees(float2 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_1ad5df() { + float2 res = tint_degrees((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_1ad5df(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_1ad5df(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_1ad5df(); + return; +} diff --git a/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f64923af6f --- /dev/null +++ b/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float3 tint_degrees(float3 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_2af623() { + float3 res = tint_degrees((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_2af623(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_2af623(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_2af623(); + return; +} diff --git a/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..feab0fbc91 --- /dev/null +++ b/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float tint_degrees(float param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_51f705() { + float res = tint_degrees(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_51f705(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_51f705(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_51f705(); + return; +} diff --git a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a40e5cd145 --- /dev/null +++ b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void determinant_2b62ba() { + float res = determinant(float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_2b62ba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_2b62ba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_2b62ba(); + return; +} diff --git a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ece355fcfb --- /dev/null +++ b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void determinant_a0a87c() { + float res = determinant(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_a0a87c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_a0a87c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_a0a87c(); + return; +} diff --git a/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6824b0d146 --- /dev/null +++ b/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void determinant_e19305() { + float res = determinant(float2x2((0.0f).xx, (0.0f).xx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_e19305(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_e19305(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_e19305(); + return; +} diff --git a/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b33531d883 --- /dev/null +++ b/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void distance_0657d4() { + float res = distance((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_0657d4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_0657d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_0657d4(); + return; +} diff --git a/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1e093276e --- /dev/null +++ b/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void distance_9646ea() { + float res = distance((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_9646ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_9646ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_9646ea(); + return; +} diff --git a/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cf9fc17b4b --- /dev/null +++ b/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void distance_aa4055() { + float res = distance((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_aa4055(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_aa4055(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_aa4055(); + return; +} diff --git a/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..277968e1b0 --- /dev/null +++ b/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void distance_cfed73() { + float res = distance(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_cfed73(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_cfed73(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_cfed73(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6bc8df3fec --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_0c577b() { + float res = dot((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_0c577b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_0c577b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_0c577b(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..324b559b32 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_7548a0() { + uint res = dot((0u).xxx, (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_7548a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_7548a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_7548a0(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..508f9a4dc3 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_883f0e() { + float res = dot((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_883f0e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_883f0e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_883f0e(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d98dc0ca3f --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_97c7ee() { + uint res = dot((0u).xx, (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_97c7ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_97c7ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_97c7ee(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5a4ddca10 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_ba4246() { + float res = dot((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_ba4246(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_ba4246(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_ba4246(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bee04d1904 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_e994c7() { + uint res = dot((0u).xxxx, (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_e994c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_e994c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_e994c7(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2dc8f5f837 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_ef6b1d() { + int res = dot((0).xxxx, (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_ef6b1d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_ef6b1d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_ef6b1d(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b9157e7944 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_f1312c() { + int res = dot((0).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_f1312c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_f1312c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_f1312c(); + return; +} diff --git a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..92c44d6c35 --- /dev/null +++ b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void dot_fc5f7c() { + int res = dot((0).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_fc5f7c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_fc5f7c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_fc5f7c(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a9470fb750 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdx_0763f7() { + float3 res = ddx((0.0f).xxx); +} + +void fragment_main() { + dpdx_0763f7(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..798e539c42 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdx_99edb1() { + float2 res = ddx((0.0f).xx); +} + +void fragment_main() { + dpdx_99edb1(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..be71b6428c --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdx_c487fa() { + float4 res = ddx((0.0f).xxxx); +} + +void fragment_main() { + dpdx_c487fa(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e9ef3f4fd6 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdx_e263de() { + float res = ddx(1.0f); +} + +void fragment_main() { + dpdx_e263de(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..940572b041 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxCoarse_029152() { + float res = ddx_coarse(1.0f); +} + +void fragment_main() { + dpdxCoarse_029152(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7a1615c5dc --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxCoarse_9581cf() { + float2 res = ddx_coarse((0.0f).xx); +} + +void fragment_main() { + dpdxCoarse_9581cf(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a4c814aac --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxCoarse_c28641() { + float4 res = ddx_coarse((0.0f).xxxx); +} + +void fragment_main() { + dpdxCoarse_c28641(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0a1d0373a --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxCoarse_f64d7b() { + float3 res = ddx_coarse((0.0f).xxx); +} + +void fragment_main() { + dpdxCoarse_f64d7b(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8904de8b0c --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxFine_8c5069() { + float4 res = ddx_fine((0.0f).xxxx); +} + +void fragment_main() { + dpdxFine_8c5069(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6f149b5ba --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxFine_9631de() { + float2 res = ddx_fine((0.0f).xx); +} + +void fragment_main() { + dpdxFine_9631de(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf4ada458e --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxFine_f401a2() { + float res = ddx_fine(1.0f); +} + +void fragment_main() { + dpdxFine_f401a2(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2c026f700b --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdxFine_f92fb6() { + float3 res = ddx_fine((0.0f).xxx); +} + +void fragment_main() { + dpdxFine_f92fb6(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1171a9e0c --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdy_699a05() { + float4 res = ddy((0.0f).xxxx); +} + +void fragment_main() { + dpdy_699a05(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b930062b9 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdy_7f8d84() { + float res = ddy(1.0f); +} + +void fragment_main() { + dpdy_7f8d84(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f654b022b3 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdy_a8b56e() { + float2 res = ddy((0.0f).xx); +} + +void fragment_main() { + dpdy_a8b56e(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8c7005720 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdy_feb40f() { + float3 res = ddy((0.0f).xxx); +} + +void fragment_main() { + dpdy_feb40f(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2791bdea4f --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyCoarse_3e1ab4() { + float2 res = ddy_coarse((0.0f).xx); +} + +void fragment_main() { + dpdyCoarse_3e1ab4(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2bef3a7d0 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyCoarse_445d24() { + float4 res = ddy_coarse((0.0f).xxxx); +} + +void fragment_main() { + dpdyCoarse_445d24(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43081240be --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyCoarse_870a7e() { + float res = ddy_coarse(1.0f); +} + +void fragment_main() { + dpdyCoarse_870a7e(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c0aa14ac1 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyCoarse_ae1873() { + float3 res = ddy_coarse((0.0f).xxx); +} + +void fragment_main() { + dpdyCoarse_ae1873(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3cc37ac286 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyFine_1fb7ab() { + float3 res = ddy_fine((0.0f).xxx); +} + +void fragment_main() { + dpdyFine_1fb7ab(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b16f5d19b --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyFine_6eb673() { + float res = ddy_fine(1.0f); +} + +void fragment_main() { + dpdyFine_6eb673(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b68dc61e92 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyFine_d0a648() { + float4 res = ddy_fine((0.0f).xxxx); +} + +void fragment_main() { + dpdyFine_d0a648(); + return; +} diff --git a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d43f5599b4 --- /dev/null +++ b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void dpdyFine_df33aa() { + float2 res = ddy_fine((0.0f).xx); +} + +void fragment_main() { + dpdyFine_df33aa(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dea32eff40 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp_0f70eb() { + float4 res = exp((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_0f70eb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_0f70eb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_0f70eb(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..73b3802362 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp_1951e7() { + float2 res = exp((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_1951e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_1951e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_1951e7(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..06b4392850 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp_771fd2() { + float res = exp(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_771fd2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_771fd2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_771fd2(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a05e46aea0 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp_d98450() { + float3 res = exp((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_d98450(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_d98450(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_d98450(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f663ff254 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp2_1f8680() { + float3 res = exp2((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_1f8680(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_1f8680(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_1f8680(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ce5cb0584 --- /dev/null +++ b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp2_a9d0a7() { + float4 res = exp2((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_a9d0a7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_a9d0a7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_a9d0a7(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..005c9b6a4c --- /dev/null +++ b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp2_d6777c() { + float2 res = exp2((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_d6777c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_d6777c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_d6777c(); + return; +} diff --git a/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0a9e48bd4e --- /dev/null +++ b/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void exp2_dea523() { + float res = exp2(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_dea523(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_dea523(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_dea523(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..74bbe23dd5 --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +uint3 tint_extract_bits(uint3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void extractBits_12b197() { + uint3 res = tint_extract_bits((0u).xxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_12b197(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_12b197(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_12b197(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..870063d1cf --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +int tint_extract_bits(int v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void extractBits_249874() { + int res = tint_extract_bits(1, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_249874(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_249874(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_249874(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..151c7976cb --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +uint4 tint_extract_bits(uint4 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint4((shl).xxxx)) >> uint4((shr).xxxx)); +} + +void extractBits_631377() { + uint4 res = tint_extract_bits((0u).xxxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_631377(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_631377(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_631377(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1030b22d76 --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +int2 tint_extract_bits(int2 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint2((shl).xx)) >> uint2((shr).xx)); +} + +void extractBits_a99a8d() { + int2 res = tint_extract_bits((0).xx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_a99a8d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_a99a8d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_a99a8d(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95e631eb7e --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +uint tint_extract_bits(uint v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void extractBits_ce81f8() { + uint res = tint_extract_bits(1u, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_ce81f8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_ce81f8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_ce81f8(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f63a53ad3d --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +int3 tint_extract_bits(int3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void extractBits_e04f5d() { + int3 res = tint_extract_bits((0).xxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_e04f5d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_e04f5d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_e04f5d(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abae2bd188 --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +uint2 tint_extract_bits(uint2 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint2((shl).xx)) >> uint2((shr).xx)); +} + +void extractBits_f28f69() { + uint2 res = tint_extract_bits((0u).xx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_f28f69(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_f28f69(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_f28f69(); + return; +} diff --git a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e1fce08fb --- /dev/null +++ b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +int4 tint_extract_bits(int4 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint4((shl).xxxx)) >> uint4((shr).xxxx)); +} + +void extractBits_fb850f() { + int4 res = tint_extract_bits((0).xxxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_fb850f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_fb850f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_fb850f(); + return; +} diff --git a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..207fd763b7 --- /dev/null +++ b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void faceForward_5afbd5() { + float3 res = faceforward((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_5afbd5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_5afbd5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_5afbd5(); + return; +} diff --git a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2b1e71d379 --- /dev/null +++ b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void faceForward_b316e5() { + float4 res = faceforward((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_b316e5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_b316e5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_b316e5(); + return; +} diff --git a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b29d9c4439 --- /dev/null +++ b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void faceForward_e6908b() { + float2 res = faceforward((0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_e6908b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_e6908b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_e6908b(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a5731bf916 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint4 tint_first_leading_bit(uint4 v) { + uint4 x = v; + const uint4 b16 = (bool4((x & (4294901760u).xxxx)) ? (16u).xxxx : (0u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); + x = (x >> b2); + 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((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_000ff3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_000ff3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_000ff3(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf4b94d23c --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int3 tint_first_leading_bit(int3 v) { + 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 & (65280u).xxx)) ? (8u).xxx : (0u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); + x = (x >> b2); + 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((0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_35053e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_35053e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_35053e(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d7649e1e73 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint3 tint_first_leading_bit(uint3 v) { + uint3 x = v; + const uint3 b16 = (bool3((x & (4294901760u).xxx)) ? (16u).xxx : (0u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (65280u).xxx)) ? (8u).xxx : (0u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); + x = (x >> b2); + 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((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_3fd7d0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_3fd7d0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_3fd7d0(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01ee3e98c9 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int tint_first_leading_bit(int v) { + uint x = ((v < 0) ? uint(~(v)) : uint(v)); + const uint b16 = (bool((x & 4294901760u)) ? 16u : 0u); + x = (x >> b16); + const uint b8 = (bool((x & 65280u)) ? 8u : 0u); + x = (x >> b8); + const uint b4 = (bool((x & 240u)) ? 4u : 0u); + x = (x >> b4); + const uint b2 = (bool((x & 12u)) ? 2u : 0u); + x = (x >> b2); + const uint b1 = (bool((x & 2u)) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstLeadingBit_57a1a3() { + int res = tint_first_leading_bit(1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_57a1a3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_57a1a3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_57a1a3(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3fce822956 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint2 tint_first_leading_bit(uint2 v) { + uint2 x = v; + const uint2 b16 = (bool2((x & (4294901760u).xx)) ? (16u).xx : (0u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (65280u).xx)) ? (8u).xx : (0u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); + x = (x >> b2); + 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((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_6fe804(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_6fe804(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_6fe804(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c970cf746 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int2 tint_first_leading_bit(int2 v) { + 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 & (65280u).xx)) ? (8u).xx : (0u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); + x = (x >> b2); + 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((0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_a622c2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_a622c2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_a622c2(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01d41e24d9 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int4 tint_first_leading_bit(int4 v) { + 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 & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); + x = (x >> b2); + 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((0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_c1f940(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_c1f940(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_c1f940(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e289038037 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint tint_first_leading_bit(uint v) { + uint x = v; + const uint b16 = (bool((x & 4294901760u)) ? 16u : 0u); + x = (x >> b16); + const uint b8 = (bool((x & 65280u)) ? 8u : 0u); + x = (x >> b8); + const uint b4 = (bool((x & 240u)) ? 4u : 0u); + x = (x >> b4); + const uint b2 = (bool((x & 12u)) ? 2u : 0u); + x = (x >> b2); + const uint b1 = (bool((x & 2u)) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstLeadingBit_f0779d() { + uint res = tint_first_leading_bit(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_f0779d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_f0779d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_f0779d(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0bc8172044 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint4 tint_first_trailing_bit(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_110f2c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_110f2c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_110f2c(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1e0c06eb4d --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int tint_first_trailing_bit(int v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstTrailingBit_3a2acc() { + int res = tint_first_trailing_bit(1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_3a2acc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_3a2acc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_3a2acc(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20ecb35441 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint2 tint_first_trailing_bit(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_45eb10(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_45eb10(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_45eb10(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3b50087bc9 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint tint_first_trailing_bit(uint v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstTrailingBit_47d475() { + uint res = tint_first_trailing_bit(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_47d475(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_47d475(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_47d475(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a430becb23 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int2 tint_first_trailing_bit(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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((0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_50c072(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_50c072(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_50c072(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..426c09d08a --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int3 tint_first_trailing_bit(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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((0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_7496d6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_7496d6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_7496d6(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67fdee4d23 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +int4 tint_first_trailing_bit(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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((0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_86551b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_86551b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_86551b(); + return; +} diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4828bc8d04 --- /dev/null +++ b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +uint3 tint_first_trailing_bit(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_cb51ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_cb51ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_cb51ce(); + return; +} diff --git a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5306bad2f8 --- /dev/null +++ b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void floor_3bccc4() { + float4 res = floor((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_3bccc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_3bccc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_3bccc4(); + return; +} diff --git a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4233cd41e9 --- /dev/null +++ b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void floor_5fc9ac() { + float2 res = floor((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_5fc9ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_5fc9ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_5fc9ac(); + return; +} diff --git a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f46d2e386 --- /dev/null +++ b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void floor_60d7ea() { + float3 res = floor((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_60d7ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_60d7ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_60d7ea(); + return; +} diff --git a/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..89b5a35bc4 --- /dev/null +++ b/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void floor_66f154() { + float res = floor(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_66f154(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_66f154(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_66f154(); + return; +} diff --git a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1c9865a3f --- /dev/null +++ b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fma_26a7a9() { + float2 res = mad((0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_26a7a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_26a7a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_26a7a9(); + return; +} diff --git a/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b6d436f361 --- /dev/null +++ b/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fma_6a3283() { + float4 res = mad((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_6a3283(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_6a3283(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_6a3283(); + return; +} diff --git a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88e5bb2cff --- /dev/null +++ b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fma_c10ba3() { + float res = mad(1.0f, 1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_c10ba3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_c10ba3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_c10ba3(); + return; +} diff --git a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ca6355783f --- /dev/null +++ b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fma_e17c5c() { + float3 res = mad((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_e17c5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_e17c5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_e17c5c(); + return; +} diff --git a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec690bca9d --- /dev/null +++ b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fract_8bc1e9() { + float4 res = frac((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_8bc1e9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_8bc1e9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_8bc1e9(); + return; +} diff --git a/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..625a0ec215 --- /dev/null +++ b/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fract_943cb1() { + float2 res = frac((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_943cb1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_943cb1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_943cb1(); + return; +} diff --git a/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9a2ae28273 --- /dev/null +++ b/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fract_a49758() { + float3 res = frac((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_a49758(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_a49758(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_a49758(); + return; +} diff --git a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcf44fde3b --- /dev/null +++ b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void fract_fa5c71() { + float res = frac(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_fa5c71(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_fa5c71(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_fa5c71(); + return; +} diff --git a/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..154eb56491 --- /dev/null +++ b/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct frexp_result_vec3 { + float3 sig; + int3 exp; +}; +frexp_result_vec3 tint_frexp(float3 param_0) { + float3 exp; + float3 sig = frexp(param_0, exp); + frexp_result_vec3 result = {sig, int3(exp)}; + return result; +} + +void frexp_368997() { + frexp_result_vec3 res = tint_frexp((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_368997(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_368997(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_368997(); + return; +} diff --git a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09e278a5e0 --- /dev/null +++ b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct frexp_result_vec4 { + float4 sig; + int4 exp; +}; +frexp_result_vec4 tint_frexp(float4 param_0) { + float4 exp; + float4 sig = frexp(param_0, exp); + frexp_result_vec4 result = {sig, int4(exp)}; + return result; +} + +void frexp_3c4f48() { + frexp_result_vec4 res = tint_frexp((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_3c4f48(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_3c4f48(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_3c4f48(); + return; +} diff --git a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9fec4761b4 --- /dev/null +++ b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct frexp_result_vec2 { + float2 sig; + int2 exp; +}; +frexp_result_vec2 tint_frexp(float2 param_0) { + float2 exp; + float2 sig = frexp(param_0, exp); + frexp_result_vec2 result = {sig, int2(exp)}; + return result; +} + +void frexp_4bdfc7() { + frexp_result_vec2 res = tint_frexp((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_4bdfc7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_4bdfc7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_4bdfc7(); + return; +} diff --git a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2519b252cc --- /dev/null +++ b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct frexp_result { + float sig; + int exp; +}; +frexp_result tint_frexp(float param_0) { + float exp; + float sig = frexp(param_0, exp); + frexp_result result = {sig, int(exp)}; + return result; +} + +void frexp_eabd40() { + frexp_result res = tint_frexp(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_eabd40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_eabd40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_eabd40(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3ed334834 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidth_5d1b39() { + float3 res = fwidth((0.0f).xxx); +} + +void fragment_main() { + fwidth_5d1b39(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54027bb580 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidth_b83ebb() { + float2 res = fwidth((0.0f).xx); +} + +void fragment_main() { + fwidth_b83ebb(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5afde3de40 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidth_d2ab9a() { + float4 res = fwidth((0.0f).xxxx); +} + +void fragment_main() { + fwidth_d2ab9a(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35d42bf52f --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidth_df38ef() { + float res = fwidth(1.0f); +} + +void fragment_main() { + fwidth_df38ef(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c2d09bb42 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthCoarse_159c8a() { + float res = fwidth(1.0f); +} + +void fragment_main() { + fwidthCoarse_159c8a(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..25fa857db0 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthCoarse_1e59d9() { + float3 res = fwidth((0.0f).xxx); +} + +void fragment_main() { + fwidthCoarse_1e59d9(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..947d5cc14d --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthCoarse_4e4fc4() { + float4 res = fwidth((0.0f).xxxx); +} + +void fragment_main() { + fwidthCoarse_4e4fc4(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5d0cc28a87 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthCoarse_e653f7() { + float2 res = fwidth((0.0f).xx); +} + +void fragment_main() { + fwidthCoarse_e653f7(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43222afece --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthFine_523fdc() { + float3 res = fwidth((0.0f).xxx); +} + +void fragment_main() { + fwidthFine_523fdc(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7440cb0280 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthFine_68f4ef() { + float4 res = fwidth((0.0f).xxxx); +} + +void fragment_main() { + fwidthFine_68f4ef(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ca2184f67c --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthFine_f1742d() { + float res = fwidth(1.0f); +} + +void fragment_main() { + fwidthFine_f1742d(); + return; +} diff --git a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28ff46d7e9 --- /dev/null +++ b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +void fwidthFine_ff6aa0() { + float2 res = fwidth((0.0f).xx); +} + +void fragment_main() { + fwidthFine_ff6aa0(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..78507ca88c --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +uint2 tint_insert_bits(uint2 v, uint2 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint2((s).xx)) & uint2((mask).xx)) | (v & uint2((~(mask)).xx))); +} + +void insertBits_3c7ba5() { + uint2 res = tint_insert_bits((0u).xx, (0u).xx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_3c7ba5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_3c7ba5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_3c7ba5(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1d8acd2b04 --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & int3((int(mask)).xxx)) | (v & int3((int(~(mask))).xxx))); +} + +void insertBits_428b0b() { + int3 res = tint_insert_bits((0).xxx, (0).xxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_428b0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_428b0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_428b0b(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c0b0f503d2 --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +uint4 tint_insert_bits(uint4 v, uint4 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint4((s).xxxx)) & uint4((mask).xxxx)) | (v & uint4((~(mask)).xxxx))); +} + +void insertBits_51ede1() { + uint4 res = tint_insert_bits((0u).xxxx, (0u).xxxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_51ede1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_51ede1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_51ede1(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57a24ad06d --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +int tint_insert_bits(int v, int n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & int(mask)) | (v & int(~(mask)))); +} + +void insertBits_65468b() { + int res = tint_insert_bits(1, 1, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_65468b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_65468b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_65468b(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..76154887b3 --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & uint3((mask).xxx)) | (v & uint3((~(mask)).xxx))); +} + +void insertBits_87826b() { + uint3 res = tint_insert_bits((0u).xxx, (0u).xxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_87826b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_87826b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_87826b(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..914e700f4d --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +int4 tint_insert_bits(int4 v, int4 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint4((s).xxxx)) & int4((int(mask)).xxxx)) | (v & int4((int(~(mask))).xxxx))); +} + +void insertBits_d86978() { + int4 res = tint_insert_bits((0).xxxx, (0).xxxx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_d86978(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_d86978(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_d86978(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..014ba4a9b5 --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +uint tint_insert_bits(uint v, uint n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & mask) | (v & ~(mask))); +} + +void insertBits_e3e3a2() { + uint res = tint_insert_bits(1u, 1u, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_e3e3a2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_e3e3a2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_e3e3a2(); + return; +} diff --git a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1122690934 --- /dev/null +++ b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +int2 tint_insert_bits(int2 v, int2 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint2((s).xx)) & int2((int(mask)).xx)) | (v & int2((int(~(mask))).xx))); +} + +void insertBits_fe6ba6() { + int2 res = tint_insert_bits((0).xx, (0).xx, 1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_fe6ba6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_fe6ba6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_fe6ba6(); + return; +} diff --git a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4a3e57ec00 --- /dev/null +++ b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void inverseSqrt_84407e() { + float res = rsqrt(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_84407e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_84407e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_84407e(); + return; +} diff --git a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0b1c795562 --- /dev/null +++ b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void inverseSqrt_8f2bd2() { + float2 res = rsqrt((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_8f2bd2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_8f2bd2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_8f2bd2(); + return; +} diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..710a458ba7 --- /dev/null +++ b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void inverseSqrt_b197b1() { + float3 res = rsqrt((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_b197b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_b197b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_b197b1(); + return; +} diff --git a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2693bf506 --- /dev/null +++ b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void inverseSqrt_c22347() { + float4 res = rsqrt((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_c22347(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_c22347(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_c22347(); + return; +} diff --git a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e192f5eaf --- /dev/null +++ b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ldexp_a31cdc() { + float3 res = ldexp((0.0f).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_a31cdc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_a31cdc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_a31cdc(); + return; +} diff --git a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..52232d7b66 --- /dev/null +++ b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ldexp_abd718() { + float2 res = ldexp((0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_abd718(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_abd718(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_abd718(); + return; +} diff --git a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..280dc6ddee --- /dev/null +++ b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ldexp_cc9cde() { + float4 res = ldexp((0.0f).xxxx, (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_cc9cde(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_cc9cde(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_cc9cde(); + return; +} diff --git a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43091d15b6 --- /dev/null +++ b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void ldexp_db8b49() { + float res = ldexp(1.0f, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_db8b49(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_db8b49(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_db8b49(); + return; +} diff --git a/test/tint/builtins/gen/literal/length/056071.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/length/056071.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/length/056071.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/length/056071.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/length/056071.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/056071.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3fbb4c6fb --- /dev/null +++ b/test/tint/builtins/gen/literal/length/056071.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void length_056071() { + float res = length((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_056071(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_056071(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_056071(); + return; +} diff --git a/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/length/602a17.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/length/602a17.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c0ce3943d --- /dev/null +++ b/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void length_602a17() { + float res = length(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_602a17(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_602a17(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_602a17(); + return; +} diff --git a/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..136df03991 --- /dev/null +++ b/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void length_afde8b() { + float res = length((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_afde8b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_afde8b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_afde8b(); + return; +} diff --git a/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/length/becebf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/length/becebf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dd68660b2d --- /dev/null +++ b/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void length_becebf() { + float res = length((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_becebf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_becebf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_becebf(); + return; +} diff --git a/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1f575bcaf9 --- /dev/null +++ b/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log_3da25a() { + float4 res = log((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_3da25a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_3da25a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_3da25a(); + return; +} diff --git a/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b9a62b68d --- /dev/null +++ b/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log_7114a6() { + float res = log(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_7114a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_7114a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_7114a6(); + return; +} diff --git a/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a68ac88d5e --- /dev/null +++ b/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log_b2ce28() { + float2 res = log((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_b2ce28(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_b2ce28(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_b2ce28(); + return; +} diff --git a/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa99614b90 --- /dev/null +++ b/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log_f4c570() { + float3 res = log((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_f4c570(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_f4c570(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_f4c570(); + return; +} diff --git a/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1bea97c647 --- /dev/null +++ b/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log2_4036ed() { + float res = log2(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_4036ed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_4036ed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_4036ed(); + return; +} diff --git a/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log2/902988.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log2/902988.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9305d245a0 --- /dev/null +++ b/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log2_902988() { + float4 res = log2((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_902988(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_902988(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_902988(); + return; +} diff --git a/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c4114cfa90 --- /dev/null +++ b/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log2_adb233() { + float3 res = log2((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_adb233(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_adb233(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_adb233(); + return; +} diff --git a/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a49c684ce --- /dev/null +++ b/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void log2_aea659() { + float2 res = log2((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_aea659(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_aea659(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_aea659(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3a5add7290 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_0c0aae() { + uint res = max(1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_0c0aae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_0c0aae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_0c0aae(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38813ca38b --- /dev/null +++ b/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_25eafe() { + int3 res = max((0).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_25eafe(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_25eafe(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_25eafe(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/320815.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/320815.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/320815.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/320815.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/320815.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/320815.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ba1102fb2 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/320815.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_320815() { + uint2 res = max((0u).xx, (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_320815(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_320815(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_320815(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f1024064d --- /dev/null +++ b/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_44a39d() { + float res = max(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_44a39d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_44a39d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_44a39d(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/453e04.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/453e04.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f85440056c --- /dev/null +++ b/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_453e04() { + uint4 res = max((0u).xxxx, (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_453e04(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_453e04(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_453e04(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/462050.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/462050.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/462050.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/462050.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/462050.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/462050.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a2e1d751fa --- /dev/null +++ b/test/tint/builtins/gen/literal/max/462050.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_462050() { + float2 res = max((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_462050(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_462050(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_462050(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b58a744b97 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_4883ac() { + float3 res = max((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_4883ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_4883ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_4883ac(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d9f4ff7554 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_85e6bc() { + int4 res = max((0).xxxx, (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_85e6bc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_85e6bc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_85e6bc(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/a93419.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/a93419.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9422412238 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_a93419() { + float4 res = max((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_a93419(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_a93419(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_a93419(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..078debdc5e --- /dev/null +++ b/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_b1b73a() { + uint3 res = max((0u).xxx, (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_b1b73a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_b1b73a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_b1b73a(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59fdfa020f --- /dev/null +++ b/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_ce7c30() { + int res = max(1, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_ce7c30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_ce7c30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_ce7c30(); + return; +} diff --git a/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5a10dbe701 --- /dev/null +++ b/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void max_e8192f() { + int2 res = max((0).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_e8192f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_e8192f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_e8192f(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f24639879e --- /dev/null +++ b/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_03c7e3() { + int2 res = min((0).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_03c7e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_03c7e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_03c7e3(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..00a483b8c0 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_0dc614() { + uint4 res = min((0u).xxxx, (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_0dc614(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_0dc614(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_0dc614(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f20c063b1c --- /dev/null +++ b/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_3941e1() { + int4 res = min((0).xxxx, (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_3941e1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_3941e1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_3941e1(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c351f188d6 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_46c5d3() { + uint res = min(1u, 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_46c5d3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_46c5d3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_46c5d3(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9d2b0ea2d --- /dev/null +++ b/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_82b28f() { + uint2 res = min((0u).xx, (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_82b28f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_82b28f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_82b28f(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4506d8a1f8 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_93cfc4() { + float3 res = min((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_93cfc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_93cfc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_93cfc4(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/a45171.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/a45171.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43e5449d4b --- /dev/null +++ b/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_a45171() { + int3 res = min((0).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_a45171(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_a45171(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_a45171(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a177f79c02 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_aa28ad() { + float2 res = min((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_aa28ad(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_aa28ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_aa28ad(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/af326d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/af326d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c73080f9c5 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_af326d() { + float res = min(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_af326d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_af326d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_af326d(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..774e77b411 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_c70bb7() { + uint3 res = min((0u).xxx, (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c70bb7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c70bb7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c70bb7(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/c73147.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/c73147.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb8ca07100 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_c73147() { + int res = min(1, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c73147(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c73147(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c73147(); + return; +} diff --git a/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..10bb3f2e66 --- /dev/null +++ b/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void min_c76fa6() { + float4 res = min((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c76fa6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c76fa6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c76fa6(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f81885125f --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_0c8c33() { + float3 res = lerp((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_0c8c33(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_0c8c33(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_0c8c33(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..87255a299b --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_1faeb1() { + float4 res = lerp((0.0f).xxxx, (0.0f).xxxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_1faeb1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_1faeb1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_1faeb1(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e703e36d7 --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_2fadab() { + float2 res = lerp((0.0f).xx, (0.0f).xx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_2fadab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_2fadab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_2fadab(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/315264.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/315264.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2c9e4c5895 --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_315264() { + float3 res = lerp((0.0f).xxx, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_315264(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_315264(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_315264(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2c04d6b557 --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_4f0b5e() { + float res = lerp(1.0f, 1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_4f0b5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_4f0b5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_4f0b5e(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..748ee91ea8 --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_6f8adc() { + float2 res = lerp((0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_6f8adc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_6f8adc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_6f8adc(); + return; +} diff --git a/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..64cc5d3d8b --- /dev/null +++ b/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void mix_c37ede() { + float4 res = lerp((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_c37ede(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_c37ede(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_c37ede(); + return; +} diff --git a/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f7a58d42c --- /dev/null +++ b/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct modf_result { + float fract; + float whole; +}; +modf_result tint_modf(float param_0) { + float whole; + float fract = modf(param_0, whole); + modf_result result = {fract, whole}; + return result; +} + +void modf_180fed() { + modf_result res = tint_modf(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_180fed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_180fed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_180fed(); + return; +} diff --git a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1628d04131 --- /dev/null +++ b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct modf_result_vec3 { + float3 fract; + float3 whole; +}; +modf_result_vec3 tint_modf(float3 param_0) { + float3 whole; + float3 fract = modf(param_0, whole); + modf_result_vec3 result = {fract, whole}; + return result; +} + +void modf_9b75f7() { + modf_result_vec3 res = tint_modf((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_9b75f7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_9b75f7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_9b75f7(); + return; +} diff --git a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26dcc4f37d --- /dev/null +++ b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct modf_result_vec4 { + float4 fract; + float4 whole; +}; +modf_result_vec4 tint_modf(float4 param_0) { + float4 whole; + float4 fract = modf(param_0, whole); + modf_result_vec4 result = {fract, whole}; + return result; +} + +void modf_ec2dbc() { + modf_result_vec4 res = tint_modf((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_ec2dbc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_ec2dbc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_ec2dbc(); + return; +} diff --git a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1dbfa472d6 --- /dev/null +++ b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct modf_result_vec2 { + float2 fract; + float2 whole; +}; +modf_result_vec2 tint_modf(float2 param_0) { + float2 whole; + float2 fract = modf(param_0, whole); + modf_result_vec2 result = {fract, whole}; + return result; +} + +void modf_f5f20d() { + modf_result_vec2 res = tint_modf((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_f5f20d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_f5f20d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_f5f20d(); + return; +} diff --git a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44f37d27f9 --- /dev/null +++ b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void normalize_64d8c0() { + float3 res = normalize((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_64d8c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_64d8c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_64d8c0(); + return; +} diff --git a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b03b075fb --- /dev/null +++ b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void normalize_9a0aab() { + float4 res = normalize((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_9a0aab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_9a0aab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_9a0aab(); + return; +} diff --git a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ae32c22d23 --- /dev/null +++ b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void normalize_fc2ef1() { + float2 res = normalize((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_fc2ef1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_fc2ef1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_fc2ef1(); + return; +} diff --git a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f142fb8a90 --- /dev/null +++ b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +uint tint_pack2x16float(float2 param_0) { + uint2 i = f32tof16(param_0); + return i.x | (i.y << 16); +} + +void pack2x16float_0e97b3() { + uint res = tint_pack2x16float((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16float_0e97b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16float_0e97b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16float_0e97b3(); + return; +} diff --git a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb5ec976da --- /dev/null +++ b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +uint tint_pack2x16snorm(float2 param_0) { + int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff; + return asuint(i.x | i.y << 16); +} + +void pack2x16snorm_6c169b() { + uint res = tint_pack2x16snorm((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16snorm_6c169b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16snorm_6c169b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16snorm_6c169b(); + return; +} diff --git a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..69b0a5f1d7 --- /dev/null +++ b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +uint tint_pack2x16unorm(float2 param_0) { + uint2 i = uint2(round(clamp(param_0, 0.0, 1.0) * 65535.0)); + return (i.x | i.y << 16); +} + +void pack2x16unorm_0f08e4() { + uint res = tint_pack2x16unorm((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16unorm_0f08e4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16unorm_0f08e4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16unorm_0f08e4(); + return; +} diff --git a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..073431c94a --- /dev/null +++ b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +uint tint_pack4x8snorm(float4 param_0) { + int4 i = int4(round(clamp(param_0, -1.0, 1.0) * 127.0)) & 0xff; + return asuint(i.x | i.y << 8 | i.z << 16 | i.w << 24); +} + +void pack4x8snorm_4d22e7() { + uint res = tint_pack4x8snorm((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack4x8snorm_4d22e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack4x8snorm_4d22e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack4x8snorm_4d22e7(); + return; +} diff --git a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a4e6e76756 --- /dev/null +++ b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +uint tint_pack4x8unorm(float4 param_0) { + uint4 i = uint4(round(clamp(param_0, 0.0, 1.0) * 255.0)); + return (i.x | i.y << 8 | i.z << 16 | i.w << 24); +} + +void pack4x8unorm_95c456() { + uint res = tint_pack4x8unorm((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack4x8unorm_95c456(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack4x8unorm_95c456(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack4x8unorm_95c456(); + return; +} diff --git a/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..49e81d6728 --- /dev/null +++ b/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void pow_04a908() { + float4 res = pow((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_04a908(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_04a908(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_04a908(); + return; +} diff --git a/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7864f33c3 --- /dev/null +++ b/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void pow_46e029() { + float res = pow(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_46e029(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_46e029(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_46e029(); + return; +} diff --git a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c08dee8c3b --- /dev/null +++ b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void pow_4a46c9() { + float3 res = pow((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_4a46c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_4a46c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_4a46c9(); + return; +} diff --git a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a5e598545c --- /dev/null +++ b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void pow_e60ea5() { + float2 res = pow((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_e60ea5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_e60ea5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_e60ea5(); + return; +} diff --git a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c4b4e7118b --- /dev/null +++ b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float4 tint_radians(float4 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_09b7fc() { + float4 res = tint_radians((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_09b7fc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_09b7fc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_09b7fc(); + return; +} diff --git a/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9256119568 --- /dev/null +++ b/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float2 tint_radians(float2 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_61687a() { + float2 res = tint_radians((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_61687a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_61687a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_61687a(); + return; +} diff --git a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9d7e818182 --- /dev/null +++ b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float tint_radians(float param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_6b0ff2() { + float res = tint_radians(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_6b0ff2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_6b0ff2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_6b0ff2(); + return; +} diff --git a/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..809549a797 --- /dev/null +++ b/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +float3 tint_radians(float3 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_f96258() { + float3 res = tint_radians((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_f96258(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_f96258(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_f96258(); + return; +} diff --git a/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f692e16863 --- /dev/null +++ b/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reflect_05357e() { + float4 res = reflect((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_05357e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_05357e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_05357e(); + return; +} diff --git a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7fb47a07e1 --- /dev/null +++ b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reflect_b61e10() { + float2 res = reflect((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_b61e10(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_b61e10(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_b61e10(); + return; +} diff --git a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af76751b78 --- /dev/null +++ b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reflect_f47fdb() { + float3 res = reflect((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_f47fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_f47fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_f47fdb(); + return; +} diff --git a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80fac1d6f4 --- /dev/null +++ b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void refract_7e02e6() { + float4 res = refract((0.0f).xxxx, (0.0f).xxxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_7e02e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_7e02e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_7e02e6(); + return; +} diff --git a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4af833e9e0 --- /dev/null +++ b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void refract_cbc1d2() { + float3 res = refract((0.0f).xxx, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_cbc1d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_cbc1d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_cbc1d2(); + return; +} diff --git a/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c328a3c1a4 --- /dev/null +++ b/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void refract_cd905f() { + float2 res = refract((0.0f).xx, (0.0f).xx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_cd905f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_cd905f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_cd905f(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94dc2e7ad8 --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_222177() { + int2 res = asint(reversebits(asuint((0).xx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_222177(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_222177(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_222177(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d6f1ffc0d7 --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_35fea9() { + uint4 res = reversebits((0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_35fea9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_35fea9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_35fea9(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..428a58b656 --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_4dbd6f() { + int4 res = asint(reversebits(asuint((0).xxxx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_4dbd6f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_4dbd6f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_4dbd6f(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2796a2562 --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_7c4269() { + int res = asint(reversebits(asuint(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_7c4269(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_7c4269(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_7c4269(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88102ab27c --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_a6ccd4() { + uint3 res = reversebits((0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_a6ccd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_a6ccd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_a6ccd4(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1726c59bce --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_c21bc1() { + int3 res = asint(reversebits(asuint((0).xxx))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_c21bc1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_c21bc1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_c21bc1(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..935837ec57 --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_e1f4c1() { + uint2 res = reversebits((0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_e1f4c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_e1f4c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_e1f4c1(); + return; +} diff --git a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..823b7110cd --- /dev/null +++ b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void reverseBits_e31adf() { + uint res = reversebits(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_e31adf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_e31adf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_e31adf(); + return; +} diff --git a/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..68bf13e9e1 --- /dev/null +++ b/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void round_106c0b() { + float4 res = round((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_106c0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_106c0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_106c0b(); + return; +} diff --git a/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b6e0e6b693 --- /dev/null +++ b/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void round_1c7897() { + float3 res = round((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_1c7897(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_1c7897(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_1c7897(); + return; +} diff --git a/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fc298d4511 --- /dev/null +++ b/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void round_52c84d() { + float2 res = round((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_52c84d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_52c84d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_52c84d(); + return; +} diff --git a/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dd35aabad4 --- /dev/null +++ b/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void round_9edc38() { + float res = round(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_9edc38(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_9edc38(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_9edc38(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/00b848.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/00b848.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5be17c52ec --- /dev/null +++ b/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_00b848() { + int2 res = ((false).xx ? (0).xx : (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_00b848(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_00b848(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_00b848(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcc2733ec0 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_01e2cd() { + int3 res = ((false).xxx ? (0).xxx : (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_01e2cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_01e2cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_01e2cd(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb71b76a35 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_087ea4() { + uint4 res = (false ? (0u).xxxx : (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_087ea4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_087ea4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_087ea4(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2664b50f4 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_1e960b() { + uint2 res = ((false).xx ? (0u).xx : (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_1e960b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_1e960b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_1e960b(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/266aff.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/266aff.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80d1742090 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_266aff() { + float2 res = ((false).xx ? (0.0f).xx : (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_266aff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_266aff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_266aff(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b4e741cce3 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_28a27e() { + uint3 res = ((false).xxx ? (0u).xxx : (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_28a27e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_28a27e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_28a27e(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e705f9a240 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_3c25ce() { + bool3 res = (false ? (false).xxx : (false).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_3c25ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_3c25ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_3c25ce(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/416e14.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/416e14.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5fcd4de0c0 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_416e14() { + float res = (false ? 1.0f : 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_416e14(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_416e14(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_416e14(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/51b047.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/51b047.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33bd9426be --- /dev/null +++ b/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_51b047() { + uint2 res = (false ? (0u).xx : (0u).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_51b047(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_51b047(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_51b047(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/713567.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/713567.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/713567.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/713567.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/713567.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/713567.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aba8dfd993 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/713567.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_713567() { + float4 res = (false ? (0.0f).xxxx : (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_713567(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_713567(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_713567(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..91d17bd613 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_78be5f() { + float3 res = (false ? (0.0f).xxx : (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_78be5f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_78be5f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_78be5f(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e23d12b4e7 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_80a9a9() { + bool3 res = ((false).xxx ? (false).xxx : (false).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_80a9a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_80a9a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_80a9a9(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f6fb23bb27 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_8fa62c() { + int3 res = (false ? (0).xxx : (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_8fa62c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_8fa62c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_8fa62c(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/99f883.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/99f883.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53c70022b1 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_99f883() { + uint res = (false ? 1u : 1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_99f883(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_99f883(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_99f883(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..edeff35015 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_a2860e() { + int4 res = ((false).xxxx ? (0).xxxx : (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_a2860e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_a2860e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_a2860e(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd1106d69b --- /dev/null +++ b/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_ab069f() { + int4 res = (false ? (0).xxxx : (0).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ab069f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ab069f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ab069f(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/b04721.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/b04721.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c94d537dee --- /dev/null +++ b/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_b04721() { + uint3 res = (false ? (0u).xxx : (0u).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_b04721(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_b04721(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_b04721(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9831d7801b --- /dev/null +++ b/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_bb447f() { + int2 res = (false ? (0).xx : (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bb447f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bb447f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bb447f(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2247492ad6 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_bb8aae() { + float4 res = ((false).xxxx ? (0.0f).xxxx : (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bb8aae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bb8aae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bb8aae(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..033f3e7337 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_bf3d29() { + float2 res = (false ? (0.0f).xx : (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bf3d29(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bf3d29(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bf3d29(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2e968f3b57 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_c31f9e() { + bool res = (false ? false : false); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c31f9e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c31f9e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c31f9e(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9d8b4caa11 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_c41bd1() { + bool4 res = (false ? (false).xxxx : (false).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c41bd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c41bd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c41bd1(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d6a8a58615 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_c4a4ef() { + uint4 res = ((false).xxxx ? (0u).xxxx : (0u).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c4a4ef(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c4a4ef(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c4a4ef(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44cf52b3ce --- /dev/null +++ b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_cb9301() { + bool2 res = ((false).xx ? (false).xx : (false).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_cb9301(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_cb9301(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_cb9301(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa1a031a34 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_e3e028() { + bool4 res = ((false).xxxx ? (false).xxxx : (false).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_e3e028(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_e3e028(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_e3e028(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd3fc8e059 --- /dev/null +++ b/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_ebfea2() { + float3 res = ((false).xxx ? (0.0f).xxx : (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ebfea2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ebfea2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ebfea2(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..70a240fe3d --- /dev/null +++ b/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_ed8a15() { + int res = (false ? 1 : 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ed8a15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ed8a15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ed8a15(); + return; +} diff --git a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcbf816dce --- /dev/null +++ b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void select_fb7e53() { + bool2 res = (false ? (false).xx : (false).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_fb7e53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_fb7e53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_fb7e53(); + return; +} diff --git a/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sign/159665.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sign/159665.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f2bd209a52 --- /dev/null +++ b/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sign_159665() { + float3 res = sign((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_159665(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_159665(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_159665(); + return; +} diff --git a/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..390e7bb03f --- /dev/null +++ b/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sign_b8f634() { + float4 res = sign((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_b8f634(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_b8f634(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_b8f634(); + return; +} diff --git a/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1774c0f298 --- /dev/null +++ b/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sign_d065d8() { + float2 res = sign((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_d065d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_d065d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_d065d8(); + return; +} diff --git a/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a2aaa71581 --- /dev/null +++ b/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sign_dd790e() { + float res = sign(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_dd790e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_dd790e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_dd790e(); + return; +} diff --git a/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..75b33089ef --- /dev/null +++ b/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sin_01f241() { + float3 res = sin((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_01f241(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_01f241(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_01f241(); + return; +} diff --git a/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2cc14515e3 --- /dev/null +++ b/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sin_4e3979() { + float4 res = sin((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_4e3979(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_4e3979(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_4e3979(); + return; +} diff --git a/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..830387c69a --- /dev/null +++ b/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sin_b78c91() { + float res = sin(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_b78c91(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_b78c91(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_b78c91(); + return; +} diff --git a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2183670819 --- /dev/null +++ b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sin_fc8bc4() { + float2 res = sin((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_fc8bc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_fc8bc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_fc8bc4(); + return; +} diff --git a/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65f3d01a7f --- /dev/null +++ b/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sinh_445e33() { + float4 res = sinh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_445e33(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_445e33(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_445e33(); + return; +} diff --git a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ead48271e7 --- /dev/null +++ b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sinh_7bb598() { + float res = sinh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_7bb598(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_7bb598(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_7bb598(); + return; +} diff --git a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a7cb7f9f10 --- /dev/null +++ b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sinh_b9860e() { + float2 res = sinh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_b9860e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_b9860e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_b9860e(); + return; +} diff --git a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb0d9dc08a --- /dev/null +++ b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sinh_c9a5eb() { + float3 res = sinh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_c9a5eb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_c9a5eb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_c9a5eb(); + return; +} diff --git a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9a156f7558 --- /dev/null +++ b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void smoothstep_392c19() { + float2 res = smoothstep((0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_392c19(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_392c19(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_392c19(); + return; +} diff --git a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..919e5e1e2a --- /dev/null +++ b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void smoothstep_40864c() { + float4 res = smoothstep((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_40864c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_40864c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_40864c(); + return; +} diff --git a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..02da7ceb9b --- /dev/null +++ b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void smoothstep_6c4975() { + float res = smoothstep(1.0f, 1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_6c4975(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_6c4975(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_6c4975(); + return; +} diff --git a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1b6358f3a5 --- /dev/null +++ b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void smoothstep_aad1db() { + float3 res = smoothstep((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_aad1db(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_aad1db(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_aad1db(); + return; +} diff --git a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1f4acbe7a --- /dev/null +++ b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sqrt_20c74e() { + float res = sqrt(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_20c74e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_20c74e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_20c74e(); + return; +} diff --git a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26778b8d6b --- /dev/null +++ b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sqrt_8c7024() { + float2 res = sqrt((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_8c7024(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_8c7024(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_8c7024(); + return; +} diff --git a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b9cf558a8 --- /dev/null +++ b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sqrt_aa0d7a() { + float4 res = sqrt((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_aa0d7a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_aa0d7a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_aa0d7a(); + return; +} diff --git a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b7e7ea4f2b --- /dev/null +++ b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void sqrt_f8c59a() { + float3 res = sqrt((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_f8c59a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_f8c59a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_f8c59a(); + return; +} diff --git a/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f899788e98 --- /dev/null +++ b/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void step_0b073b() { + float res = step(1.0f, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_0b073b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_0b073b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_0b073b(); + return; +} diff --git a/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/step/19accd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/step/19accd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d4e558f4d --- /dev/null +++ b/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void step_19accd() { + float2 res = step((0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_19accd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_19accd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_19accd(); + return; +} diff --git a/test/tint/builtins/gen/literal/step/334303.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/step/334303.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/step/334303.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/step/334303.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/step/334303.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/334303.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b6a0fcfdf --- /dev/null +++ b/test/tint/builtins/gen/literal/step/334303.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void step_334303() { + float3 res = step((0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_334303(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_334303(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_334303(); + return; +} diff --git a/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d681e0958a --- /dev/null +++ b/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void step_e2b337() { + float4 res = step((0.0f).xxxx, (0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_e2b337(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_e2b337(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_e2b337(); + return; +} diff --git a/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6fecdec967 --- /dev/null +++ b/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tan_244e2a() { + float4 res = tan((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_244e2a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_244e2a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_244e2a(); + return; +} diff --git a/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0ad9e4f702 --- /dev/null +++ b/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tan_2f030e() { + float res = tan(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_2f030e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_2f030e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_2f030e(); + return; +} diff --git a/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c98fa464b --- /dev/null +++ b/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tan_7ea104() { + float3 res = tan((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_7ea104(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_7ea104(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_7ea104(); + return; +} diff --git a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5504d49f65 --- /dev/null +++ b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tan_8ce3e9() { + float2 res = tan((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_8ce3e9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_8ce3e9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_8ce3e9(); + return; +} diff --git a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..635f158c3b --- /dev/null +++ b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tanh_5663c5() { + float4 res = tanh((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_5663c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_5663c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_5663c5(); + return; +} diff --git a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f77defc421 --- /dev/null +++ b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tanh_5724b3() { + float2 res = tanh((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_5724b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_5724b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_5724b3(); + return; +} diff --git a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b7d7476e8 --- /dev/null +++ b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tanh_9f9fb9() { + float3 res = tanh((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_9f9fb9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_9f9fb9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_9f9fb9(); + return; +} diff --git a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ab6b249ef0 --- /dev/null +++ b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void tanh_c15fdb() { + float res = tanh(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_c15fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_c15fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_c15fdb(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..632362bcdc --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_12c9bb() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_12c9bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_12c9bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_12c9bb(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59cb5bb483 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_221f22() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_221f22(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_221f22(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_221f22(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3597aaed8e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_267788() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_267788(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_267788(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_267788(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c15bc9aa6e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_26bdfa() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_26bdfa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_26bdfa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_26bdfa(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1ad01c0e4d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_2efa05() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2efa05(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2efa05(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2efa05(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9cc8388b87 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_2fe1cc() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2fe1cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2fe1cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2fe1cc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df671c728c --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_50a9ee() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_50a9ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_50a9ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_50a9ee(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b3da42f89 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_52045c() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_52045c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_52045c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_52045c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8706a9ee6e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_686ef2() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_686ef2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_686ef2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_686ef2(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7e2f59d88f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_72e5d6() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_72e5d6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_72e5d6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_72e5d6(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bba9fd9d0f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_79df87() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_79df87(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_79df87(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_79df87(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4a6cbca9a1 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_85d556() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_85d556(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_85d556(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_85d556(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6da2ab8199 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_88ad17() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_88ad17(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_88ad17(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_88ad17(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1e45411862 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_9393b0() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9393b0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9393b0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9393b0(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9048832d74 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_9c9c57() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9c9c57(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9c9c57(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9c9c57(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d2a845a1af --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_a01845() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a01845(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a01845(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a01845(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3290331fc6 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_a9c9c1() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a9c9c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a9c9c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a9c9c1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b8dd338af --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_b0e16d() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b0e16d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b0e16d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b0e16d(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f917b5475 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_b3e407() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b3e407(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b3e407(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b3e407(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6ac869bca --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_d83c45() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_d83c45(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_d83c45(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_d83c45(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c43705946e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_efc8a4() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_efc8a4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_efc8a4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_efc8a4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d93ba5cdb --- /dev/null +++ b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_f7145b() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f7145b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f7145b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f7145b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2507fcee71 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_10c554() { + float4 res = arg_0.Gather(arg_1, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_10c554(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_10c554(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_10c554(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..287fd65c39 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_1f7f6b() { + float4 res = arg_0.Gather(arg_1, (0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_1f7f6b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_1f7f6b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_1f7f6b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad228813d2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_22e930() { + float4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_22e930(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_22e930(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_22e930(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..222acf566e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_2cc066() { + uint4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_2cc066(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_2cc066(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_2cc066(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e1a5741735 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_2e0ed5() { + float4 res = arg_0.Gather(arg_1, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_2e0ed5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_2e0ed5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_2e0ed5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ce7b157547 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_32c4e8() { + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_32c4e8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_32c4e8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_32c4e8(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4fe9dd1470 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_3b32cc() { + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_3b32cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_3b32cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_3b32cc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..703fd77ec7 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_43025d() { + float4 res = arg_0.Gather(arg_1, float4(0.0f, 0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_43025d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_43025d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_43025d(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b70c4827dd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_49b07f() { + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_49b07f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_49b07f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_49b07f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3a7dca0279 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_4b8103() { + float4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_4b8103(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_4b8103(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_4b8103(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a616ea774a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5266da() { + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5266da(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5266da(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5266da(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4a550ea27a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5ba85f() { + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5ba85f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5ba85f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5ba85f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c830b8246 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5bd491() { + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5bd491(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5bd491(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5bd491(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3f07457516 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_751f8a() { + float4 res = arg_1.GatherGreen(arg_2, float4(0.0f, 0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_751f8a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_751f8a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_751f8a(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5efb022606 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_7c3828() { + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_7c3828(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_7c3828(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_7c3828(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f8ffc7c726 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_8b754c() { + int4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_8b754c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_8b754c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_8b754c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57f3d15ce6 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_9a6358() { + float4 res = arg_0.Gather(arg_1, float3(0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_9a6358(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_9a6358(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_9a6358(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..11eeb8b23f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_af55b3() { + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_af55b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_af55b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_af55b3(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e893100e0a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_bb3ac5() { + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_bb3ac5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_bb3ac5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_bb3ac5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d86b7f2a2e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_c0640c() { + int4 res = arg_1.GatherGreen(arg_2, float4(0.0f, 0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_c0640c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_c0640c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_c0640c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad1a98fa20 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_d1f187() { + uint4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_d1f187(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_d1f187(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_d1f187(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a54bc6267 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_d90605() { + float4 res = arg_0.Gather(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_d90605(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_d90605(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_d90605(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d2893d773 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_e9d390() { + int4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_e9d390(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_e9d390(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_e9d390(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a6114a7f6f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_f2c6e3() { + uint4 res = arg_1.GatherGreen(arg_2, float4(0.0f, 0.0f, 0.0f, float(1))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_f2c6e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_f2c6e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_f2c6e3(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f6161c935 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_182fd4() { + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_182fd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_182fd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_182fd4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3512f9a768 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_313add() { + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xx, 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_313add(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_313add(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_313add(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3cc753f8e8 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_60d2d1() { + float4 res = arg_0.GatherCmp(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_60d2d1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_60d2d1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_60d2d1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38bce11c53 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_6d9352() { + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_6d9352(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_6d9352(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_6d9352(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..702933d86a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_783e65() { + float4 res = arg_0.GatherCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_783e65(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_783e65(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_783e65(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba3d6fdb54 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_f585cc() { + float4 res = arg_0.GatherCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_f585cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_f585cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_f585cc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54f4e7e1bc --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_19cf87() { + float res = arg_0.Load(int3(0, 0, 0)).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_19cf87(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_19cf87(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_19cf87(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..12509febb1 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_1b8588() { + uint4 res = arg_0.Load(int2(1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_1b8588(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_1b8588(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_1b8588(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18a466dca2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_1f2016() { + float4 res = arg_0.Load(int4(0, 0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_1f2016(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_1f2016(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_1f2016(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf85eb0bba --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_484344() { + float4 res = arg_0.Load(int3(0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_484344(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_484344(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_484344(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8ee1bd1282 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_4fd803() { + int4 res = arg_0.Load(int4(0, 0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_4fd803(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_4fd803(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_4fd803(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e5301e4ec --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_5a2f9d() { + int4 res = arg_0.Load(int2(1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_5a2f9d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_5a2f9d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_5a2f9d(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cf6519414d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_6154d4() { + uint4 res = arg_0.Load(int3(0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_6154d4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_6154d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_6154d4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fafcd354be --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_6273b1() { + float res = arg_0.Load(int3(0, 0, 0), 1).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_6273b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_6273b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_6273b1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b6c192ad72 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_79e697() { + int4 res = arg_0.Load(int4(0, 0, 1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_79e697(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_79e697(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_79e697(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7918f4a98a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_7c90e5() { + uint4 res = arg_0.Load(int4(0, 0, 1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_7c90e5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_7c90e5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_7c90e5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1fecfe99d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_81c381() { + float4 res = arg_0.Load(int2(1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_81c381(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_81c381(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_81c381(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80a5a3550a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_87be85() { + float4 res = arg_0.Load(int4(0, 0, 1, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_87be85(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_87be85(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_87be85(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33ee4979cd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.fxc.hlsl @@ -0,0 +1,111 @@ +struct GammaTransferParams { + float G; + float A; + float B; + float C; + float D; + float E; + float F; + uint padding; +}; +struct ExternalTextureParams { + uint numPlanes; + uint doYuvToRgbConversionOnly; + float3x4 yuvToRgbConversionMatrix; + GammaTransferParams gammaDecodeParams; + GammaTransferParams gammaEncodeParams; + float3x3 gamutConversionMatrix; +}; + +Texture2D ext_tex_plane_1 : register(t1, space1); +cbuffer cbuffer_ext_tex_params : register(b2, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); + +float3 gammaCorrection(float3 v, GammaTransferParams params) { + const bool3 cond = (abs(v) < float3((params.D).xxx)); + const float3 t = (sign(v) * ((params.C * abs(v)) + params.F)); + const float3 f = (sign(v) * (pow(((params.A * abs(v)) + params.B), float3((params.G).xxx)) + params.E)); + return (cond ? t : f); +} + +float4 textureLoadExternal(Texture2D plane0, Texture2D plane1, int2 coord, ExternalTextureParams params) { + float3 color = float3(0.0f, 0.0f, 0.0f); + if ((params.numPlanes == 1u)) { + color = plane0.Load(int3(coord, 0)).rgb; + } else { + color = mul(params.yuvToRgbConversionMatrix, float4(plane0.Load(int3(coord, 0)).r, plane1.Load(int3(coord, 0)).rg, 1.0f)); + } + if ((params.doYuvToRgbConversionOnly == 0u)) { + color = gammaCorrection(color, params.gammaDecodeParams); + color = mul(color, params.gamutConversionMatrix); + color = gammaCorrection(color, params.gammaEncodeParams); + } + return float4(color, 1.0f); +} + +float3x4 tint_symbol_3(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])); +} + +GammaTransferParams tint_symbol_5(uint4 buffer[11], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 4u)) / 4; + const uint scalar_offset_5 = ((offset + 8u)) / 4; + const uint scalar_offset_6 = ((offset + 12u)) / 4; + const uint scalar_offset_7 = ((offset + 16u)) / 4; + const uint scalar_offset_8 = ((offset + 20u)) / 4; + const uint scalar_offset_9 = ((offset + 24u)) / 4; + const uint scalar_offset_10 = ((offset + 28u)) / 4; + const GammaTransferParams tint_symbol_9 = {asfloat(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), asfloat(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), asfloat(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4]), asfloat(buffer[scalar_offset_6 / 4][scalar_offset_6 % 4]), asfloat(buffer[scalar_offset_7 / 4][scalar_offset_7 % 4]), asfloat(buffer[scalar_offset_8 / 4][scalar_offset_8 % 4]), asfloat(buffer[scalar_offset_9 / 4][scalar_offset_9 % 4]), buffer[scalar_offset_10 / 4][scalar_offset_10 % 4]}; + return tint_symbol_9; +} + +float3x3 tint_symbol_7(uint4 buffer[11], uint offset) { + const uint scalar_offset_11 = ((offset + 0u)) / 4; + const uint scalar_offset_12 = ((offset + 16u)) / 4; + const uint scalar_offset_13 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset_11 / 4].xyz), asfloat(buffer[scalar_offset_12 / 4].xyz), asfloat(buffer[scalar_offset_13 / 4].xyz)); +} + +ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { + const uint scalar_offset_14 = ((offset + 0u)) / 4; + const uint scalar_offset_15 = ((offset + 4u)) / 4; + const ExternalTextureParams tint_symbol_10 = {buffer[scalar_offset_14 / 4][scalar_offset_14 % 4], buffer[scalar_offset_15 / 4][scalar_offset_15 % 4], tint_symbol_3(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 64u)), tint_symbol_5(buffer, (offset + 96u)), tint_symbol_7(buffer, (offset + 128u))}; + return tint_symbol_10; +} + +void textureLoad_8acf41() { + float4 res = textureLoadExternal(arg_0, ext_tex_plane_1, (0).xx, tint_symbol_1(ext_tex_params, 0u)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_8acf41(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_8acf41(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_8acf41(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f9403dcc97 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_9b2667() { + float res = arg_0.Load(int4(0, 0, 1, 0)).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_9b2667(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_9b2667(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_9b2667(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7bcc429b5 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_a583c9() { + float4 res = arg_0.Load((0).xx, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_a583c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_a583c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_a583c9(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..98f0d55943 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_a9a9f5() { + uint4 res = arg_0.Load(int4(0, 0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_a9a9f5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_a9a9f5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_a9a9f5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..64fa5c2d26 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_c2a480() { + int4 res = arg_0.Load(int3(0, 0, 0)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_c2a480(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_c2a480(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_c2a480(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fc7d1b6b7b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_c378ee() { + uint4 res = arg_0.Load((0).xx, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_c378ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_c378ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_c378ee(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d097d4597 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_e3d2cc() { + int4 res = arg_0.Load((0).xx, 1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_e3d2cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_e3d2cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_e3d2cc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e03f88519 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_0dff6c() { + float res = arg_0.Sample(arg_1, (0.0f).xx, (0).xx).x; +} + +void fragment_main() { + textureSample_0dff6c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fc8a980c3c --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_17e988() { + float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx); +} + +void fragment_main() { + textureSample_17e988(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..137a2ffde4 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_2149ec() { + float4 res = arg_0.Sample(arg_1, (0.0f).xxx, (0).xxx); +} + +void fragment_main() { + textureSample_2149ec(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aeb2754c08 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_38bbb9() { + float res = arg_0.Sample(arg_1, (0.0f).xx).x; +} + +void fragment_main() { + textureSample_38bbb9(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b99e2a794 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_3b50bd() { + float4 res = arg_0.Sample(arg_1, (0.0f).xxx); +} + +void fragment_main() { + textureSample_3b50bd(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..47013d29e5 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_4dd1bf() { + float4 res = arg_0.Sample(arg_1, float4(0.0f, 0.0f, 0.0f, float(1))); +} + +void fragment_main() { + textureSample_4dd1bf(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..68aa5c7a80 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_51b514() { + float4 res = arg_0.Sample(arg_1, (0.0f).xx); +} + +void fragment_main() { + textureSample_51b514(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0575d77871 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_60bf45() { + float res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx).x; +} + +void fragment_main() { + textureSample_60bf45(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b1e6e4161 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_6717ca() { + float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1))); +} + +void fragment_main() { + textureSample_6717ca(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..40f4e00b0e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture1D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_6e64fb() { + float4 res = arg_0.Sample(arg_1, 1.0f); +} + +void fragment_main() { + textureSample_6e64fb(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b3167130ed --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_7e9ffd() { + float res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1))).x; +} + +void fragment_main() { + textureSample_7e9ffd(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f43541cd7f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_85c4ba() { + float4 res = arg_0.Sample(arg_1, (0.0f).xx, (0).xx); +} + +void fragment_main() { + textureSample_85c4ba(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2eee5aed8 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_c2f4e8() { + float res = arg_0.Sample(arg_1, float4(0.0f, 0.0f, 0.0f, float(1))).x; +} + +void fragment_main() { + textureSample_c2f4e8(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18cffd4082 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_e53267() { + float4 res = arg_0.Sample(arg_1, (0.0f).xxx); +} + +void fragment_main() { + textureSample_e53267(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f82f08ede --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_ea7030() { + float res = arg_0.Sample(arg_1, (0.0f).xxx).x; +} + +void fragment_main() { + textureSample_ea7030(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec467db1b2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_53b9f7() { + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f); +} + +void fragment_main() { + textureSampleBias_53b9f7(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8ebc0016bd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_594824() { + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f, (0).xxx); +} + +void fragment_main() { + textureSampleBias_594824(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a3e3379d3d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_6a9113() { + float4 res = arg_0.SampleBias(arg_1, (0.0f).xx, 1.0f); +} + +void fragment_main() { + textureSampleBias_6a9113(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e8a9d2d5d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_80e579() { + float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f); +} + +void fragment_main() { + textureSampleBias_80e579(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bc8a5cd3d6 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_9dbb51() { + float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); +} + +void fragment_main() { + textureSampleBias_9dbb51(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d63e8ac7f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_a161cf() { + float4 res = arg_0.SampleBias(arg_1, (0.0f).xx, 1.0f, (0).xx); +} + +void fragment_main() { + textureSampleBias_a161cf(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cfb6394b5f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_d3fa1b() { + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f); +} + +void fragment_main() { + textureSampleBias_d3fa1b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9c75d992e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_eed7c4() { + float4 res = arg_0.SampleBias(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); +} + +void fragment_main() { + textureSampleBias_eed7c4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..948b7a7afd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_3a5923() { + float res = arg_0.SampleCmp(arg_1, (0.0f).xx, 1.0f); +} + +void fragment_main() { + textureSampleCompare_3a5923(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33b00bcdcc --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_63fb83() { + float res = arg_0.SampleCmp(arg_1, (0.0f).xxx, 1.0f); +} + +void fragment_main() { + textureSampleCompare_63fb83(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0eaad4f49f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_a3ca7e() { + float res = arg_0.SampleCmp(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); +} + +void fragment_main() { + textureSampleCompare_a3ca7e(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60ff0955b9 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_af1051() { + float res = arg_0.SampleCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); +} + +void fragment_main() { + textureSampleCompare_af1051(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c8a7fb928 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_dd431d() { + float res = arg_0.SampleCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f); +} + +void fragment_main() { + textureSampleCompare_dd431d(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04d19157eb --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_dec064() { + float res = arg_0.SampleCmp(arg_1, (0.0f).xx, 1.0f, (0).xx); +} + +void fragment_main() { + textureSampleCompare_dec064(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e84193e394 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_1116ed() { + float res = arg_0.SampleCmpLevelZero(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_1116ed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_1116ed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_1116ed(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2a79a0f099 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_1568e3() { + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_1568e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_1568e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_1568e3(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..999c761e1b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_2ad2b1() { + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_2ad2b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_2ad2b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_2ad2b1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..03160c2dbb --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_4cf3a2() { + float res = arg_0.SampleCmpLevelZero(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_4cf3a2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_4cf3a2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_4cf3a2(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..772accae57 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_7f2b9a() { + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xx, 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_7f2b9a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_7f2b9a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_7f2b9a(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..536d764095 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_b6e47c() { + float res = arg_0.SampleCmpLevelZero(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_b6e47c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_b6e47c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_b6e47c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6012626387 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_21402b() { + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_21402b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_21402b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_21402b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d01c5add9 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +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)), (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_2ecd8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_2ecd8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_2ecd8f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f581e3013e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_521263() { + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xx, (0.0f).xx, (0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_521263(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_521263(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_521263(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..180ee4f81f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_5312f4() { + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_5312f4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_5312f4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_5312f4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..56c120b251 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_5884dd() { + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_5884dd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_5884dd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_5884dd(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ec5b46654 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_d4e3c5() { + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xx, (0.0f).xx, (0.0f).xx, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_d4e3c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_d4e3c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_d4e3c5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a31475ce9 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_d65515() { + 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 { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_d65515(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_d65515(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_d65515(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..990fc90b9e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +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)), (0.0f).xxx, (0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_e383db(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_e383db(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_e383db(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90c561b2b3 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_02be59() { + float res = arg_0.SampleLevel(arg_1, (0.0f).xx, 0).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_02be59(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_02be59(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_02be59(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aee4c233d2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_0b0a1b() { + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xx, 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_0b0a1b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_0b0a1b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_0b0a1b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ac5b0c514 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_0bdd9a() { + float4 res = arg_0.SampleLevel(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_0bdd9a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_0bdd9a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_0bdd9a(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f73ebcfcbc --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_1b0291() { + float res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 0).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_1b0291(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_1b0291(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_1b0291(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9628d6da53 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_1bf73e() { + float res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 0).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_1bf73e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_1bf73e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_1bf73e(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90cdd653d3 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_302be4() { + float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_302be4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_302be4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_302be4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..960a0a4fcb --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_36780e() { + float res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 0, (0).xx).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_36780e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_36780e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_36780e(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a05a17b724 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_749baf() { + float res = arg_0.SampleLevel(arg_1, (0.0f).xx, 0, (0).xx).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_749baf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_749baf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_749baf(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..914a3c9c56 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.fxc.hlsl @@ -0,0 +1,112 @@ +struct GammaTransferParams { + float G; + float A; + float B; + float C; + float D; + float E; + float F; + uint padding; +}; +struct ExternalTextureParams { + uint numPlanes; + uint doYuvToRgbConversionOnly; + float3x4 yuvToRgbConversionMatrix; + GammaTransferParams gammaDecodeParams; + GammaTransferParams gammaEncodeParams; + float3x3 gamutConversionMatrix; +}; + +Texture2D ext_tex_plane_1 : register(t2, space1); +cbuffer cbuffer_ext_tex_params : register(b3, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +float3 gammaCorrection(float3 v, GammaTransferParams params) { + const bool3 cond = (abs(v) < float3((params.D).xxx)); + const float3 t = (sign(v) * ((params.C * abs(v)) + params.F)); + const float3 f = (sign(v) * (pow(((params.A * abs(v)) + params.B), float3((params.G).xxx)) + params.E)); + return (cond ? t : f); +} + +float4 textureSampleExternal(Texture2D plane0, Texture2D plane1, SamplerState smp, float2 coord, ExternalTextureParams params) { + float3 color = float3(0.0f, 0.0f, 0.0f); + if ((params.numPlanes == 1u)) { + color = plane0.SampleLevel(smp, coord, 0.0f).rgb; + } else { + color = mul(params.yuvToRgbConversionMatrix, float4(plane0.SampleLevel(smp, coord, 0.0f).r, plane1.SampleLevel(smp, coord, 0.0f).rg, 1.0f)); + } + if ((params.doYuvToRgbConversionOnly == 0u)) { + color = gammaCorrection(color, params.gammaDecodeParams); + color = mul(color, params.gamutConversionMatrix); + color = gammaCorrection(color, params.gammaEncodeParams); + } + return float4(color, 1.0f); +} + +float3x4 tint_symbol_3(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])); +} + +GammaTransferParams tint_symbol_5(uint4 buffer[11], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 4u)) / 4; + const uint scalar_offset_5 = ((offset + 8u)) / 4; + const uint scalar_offset_6 = ((offset + 12u)) / 4; + const uint scalar_offset_7 = ((offset + 16u)) / 4; + const uint scalar_offset_8 = ((offset + 20u)) / 4; + const uint scalar_offset_9 = ((offset + 24u)) / 4; + const uint scalar_offset_10 = ((offset + 28u)) / 4; + const GammaTransferParams tint_symbol_9 = {asfloat(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), asfloat(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), asfloat(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4]), asfloat(buffer[scalar_offset_6 / 4][scalar_offset_6 % 4]), asfloat(buffer[scalar_offset_7 / 4][scalar_offset_7 % 4]), asfloat(buffer[scalar_offset_8 / 4][scalar_offset_8 % 4]), asfloat(buffer[scalar_offset_9 / 4][scalar_offset_9 % 4]), buffer[scalar_offset_10 / 4][scalar_offset_10 % 4]}; + return tint_symbol_9; +} + +float3x3 tint_symbol_7(uint4 buffer[11], uint offset) { + const uint scalar_offset_11 = ((offset + 0u)) / 4; + const uint scalar_offset_12 = ((offset + 16u)) / 4; + const uint scalar_offset_13 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset_11 / 4].xyz), asfloat(buffer[scalar_offset_12 / 4].xyz), asfloat(buffer[scalar_offset_13 / 4].xyz)); +} + +ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { + const uint scalar_offset_14 = ((offset + 0u)) / 4; + const uint scalar_offset_15 = ((offset + 4u)) / 4; + const ExternalTextureParams tint_symbol_10 = {buffer[scalar_offset_14 / 4][scalar_offset_14 % 4], buffer[scalar_offset_15 / 4][scalar_offset_15 % 4], tint_symbol_3(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 64u)), tint_symbol_5(buffer, (offset + 96u)), tint_symbol_7(buffer, (offset + 128u))}; + return tint_symbol_10; +} + +void textureSampleLevel_979816() { + float4 res = textureSampleExternal(arg_0, ext_tex_plane_1, arg_1, (0.0f).xx, tint_symbol_1(ext_tex_params, 0u)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_979816(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_979816(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_979816(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5986acede1 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_abfcc0() { + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_abfcc0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_abfcc0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_abfcc0(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c2d3abf2a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_ae5e39() { + float res = arg_0.SampleLevel(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), 0).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_ae5e39(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_ae5e39(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_ae5e39(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f3441f975 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_b7c55c() { + float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_b7c55c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_b7c55c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_b7c55c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d48cf54ade --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_c32df7() { + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_c32df7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_c32df7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_c32df7(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4455778471 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_c6aca6() { + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xx, 1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_c6aca6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_c6aca6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_c6aca6(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..806a05fd03 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_dcbecb() { + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_dcbecb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_dcbecb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_dcbecb(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..27477b0e4d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_05ce15() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_05ce15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_05ce15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_05ce15(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9130d7495 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_064c7f() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_064c7f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_064c7f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_064c7f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cbcf84d5eb --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_068641() { + arg_0[(0).xxx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_068641(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_068641(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_068641(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..388ae73302 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_0af6b5() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_0af6b5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_0af6b5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_0af6b5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcdd179da8 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_0c3dff() { + arg_0[(0).xx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_0c3dff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_0c3dff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_0c3dff(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cf95c7c78a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_102722() { + arg_0[1] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_102722(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_102722(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_102722(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..21d658ecd8 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_1bbd08() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_1bbd08(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_1bbd08(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_1bbd08(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4ad1a0ebc --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_1c02e7() { + arg_0[int3(0, 0, 1)] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_1c02e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_1c02e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_1c02e7(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c998bd87fe --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_22d955() { + arg_0[int3(0, 0, 1)] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_22d955(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_22d955(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_22d955(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c666e2767 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_26bf70() { + arg_0[(0).xx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_26bf70(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_26bf70(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_26bf70(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95522d93a2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_2796b4() { + arg_0[(0).xxx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2796b4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2796b4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2796b4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a3e5a4c56c --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2ac6c7() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2ac6c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2ac6c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2ac6c7(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94f6628a51 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2eb2a4() { + arg_0[1] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2eb2a4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2eb2a4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2eb2a4(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38a94e741b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2ed2a3() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2ed2a3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2ed2a3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2ed2a3(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a31872a0c --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_31745b() { + arg_0[(0).xx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_31745b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_31745b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_31745b(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a94d6b85f --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_32f368() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_32f368(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_32f368(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_32f368(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53f938c151 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_331aee() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_331aee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_331aee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_331aee(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8c2dd24718 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_38e8d7() { + arg_0[int3(0, 0, 1)] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_38e8d7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_38e8d7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_38e8d7(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b0fd8b1572 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_3a52ac() { + arg_0[int3(0, 0, 1)] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3a52ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3a52ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3a52ac(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..879dea5d93 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_3bb7a1() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3bb7a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3bb7a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3bb7a1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc77637731 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_3bec15() { + arg_0[1] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3bec15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3bec15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3bec15(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2c79ae4d9 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_441ba8() { + arg_0[(0).xxx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_441ba8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_441ba8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_441ba8(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d485fcca1d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_4fc057() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_4fc057(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_4fc057(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_4fc057(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7d0eb61fde --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_5a2f8f() { + arg_0[1] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_5a2f8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_5a2f8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_5a2f8f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ab19974898 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_60975f() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_60975f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_60975f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_60975f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b8d65ccc25 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_682fd6() { + arg_0[(0).xx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_682fd6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_682fd6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_682fd6(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df1c070909 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_6b75c3() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6b75c3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6b75c3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6b75c3(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a2e5c731dd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_6b80d2() { + arg_0[1] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6b80d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6b80d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6b80d2(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a9f96b4e79 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_6cff2e() { + arg_0[(0).xx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6cff2e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6cff2e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6cff2e(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..69e93a9006 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_6da692() { + arg_0[int3(0, 0, 1)] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6da692(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6da692(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6da692(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c6837defba --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_731349() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_731349(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_731349(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_731349(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f65a408b89 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_752da6() { + arg_0[(0).xx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_752da6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_752da6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_752da6(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31d53b3d1a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_77c0ae() { + arg_0[(0).xx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_77c0ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_77c0ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_77c0ae(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1a4198cf9 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_7cec8d() { + arg_0[int3(0, 0, 1)] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_7cec8d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_7cec8d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_7cec8d(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35b13ff28b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_7f7fae() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_7f7fae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_7f7fae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_7f7fae(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..00b02cb6ca --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_804942() { + arg_0[(0).xx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_804942(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_804942(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_804942(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8abb6a896d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_805dae() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_805dae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_805dae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_805dae(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ca45eca05 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_83bcc1() { + arg_0[1] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_83bcc1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_83bcc1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_83bcc1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abc0d22cfd --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_872747() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_872747(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_872747(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_872747(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e0b8d209ab --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_8e0479() { + arg_0[int3(0, 0, 1)] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_8e0479(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_8e0479(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_8e0479(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..be336b8353 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_8f71a1() { + arg_0[(0).xxx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_8f71a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_8f71a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_8f71a1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5d1107b86a --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_969534() { + arg_0[1] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_969534(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_969534(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_969534(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf19cfeb5d --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_9a3ecc() { + arg_0[(0).xxx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9a3ecc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9a3ecc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9a3ecc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f43b6b845 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_9d9cd5() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9d9cd5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9d9cd5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9d9cd5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1dff9c5d7 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_9e3ec5() { + arg_0[(0).xx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9e3ec5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9e3ec5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9e3ec5(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94cd654873 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ac67aa() { + arg_0[(0).xxx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ac67aa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ac67aa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ac67aa(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c479e1c702 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_b706b1() { + arg_0[(0).xxx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_b706b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_b706b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_b706b1(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0278d0e7aa --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_bbcb7f() { + arg_0[(0).xx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_bbcb7f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_bbcb7f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_bbcb7f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43f6c7e9de --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_be6e30() { + arg_0[(0).xx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_be6e30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_be6e30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_be6e30(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..592886825b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_bf775c() { + arg_0[1] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_bf775c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_bf775c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_bf775c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba59f437ed --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_c5af1e() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_c5af1e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_c5af1e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_c5af1e(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6948caad6 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_c863be() { + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_c863be(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_c863be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_c863be(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..85e4777a84 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_d73b5c() { + arg_0[1] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_d73b5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_d73b5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_d73b5c(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..598b8116c3 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_dd7d81() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_dd7d81(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_dd7d81(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_dd7d81(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c35dda32b2 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_dde364() { + arg_0[int3(0, 0, 1)] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_dde364(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_dde364(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_dde364(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0faa237daa --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_e885e8() { + arg_0[1] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_e885e8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_e885e8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_e885e8(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5bc0b80030 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_eb702f() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_eb702f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_eb702f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_eb702f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67a03a226b --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_eb78b9() { + arg_0[(0).xxx] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_eb78b9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_eb78b9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_eb78b9(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8193759670 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ee6acc() { + arg_0[(0).xxx] = (0.0f).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ee6acc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ee6acc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ee6acc(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fb51122e9e --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ef9f2f() { + arg_0[(0).xxx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ef9f2f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ef9f2f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ef9f2f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..660c7b48c8 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_f8dead() { + arg_0[(0).xxx] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_f8dead(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_f8dead(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_f8dead(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a323f52245 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_f9be83() { + arg_0[int3(0, 0, 1)] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_f9be83(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_f9be83(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_f9be83(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6af6c919d0 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_fb9a8f() { + arg_0[1] = (0u).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_fb9a8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_fb9a8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_fb9a8f(); + return; +} diff --git a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e274d9ed22 --- /dev/null +++ b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_fbf53f() { + arg_0[int3(0, 0, 1)] = (0).xxxx; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_fbf53f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_fbf53f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_fbf53f(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ffeca1214 --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_2585cd() { + float3x4 res = transpose(float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_2585cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_2585cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_2585cd(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3ac41887b --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_31d679() { + float2x2 res = transpose(float2x2((0.0f).xx, (0.0f).xx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_31d679(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_31d679(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_31d679(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c16825105b --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_31e37e() { + float2x4 res = transpose(float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_31e37e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_31e37e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_31e37e(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..46342a92b7 --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_4ce359() { + float4x2 res = transpose(float2x4((0.0f).xxxx, (0.0f).xxxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_4ce359(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_4ce359(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_4ce359(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f84245615d --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_4dc9a1() { + float3x2 res = transpose(float2x3((0.0f).xxx, (0.0f).xxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_4dc9a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_4dc9a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_4dc9a1(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ad467dc03 --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_854336() { + float3x3 res = transpose(float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_854336(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_854336(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_854336(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..512431f633 --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_c1b600() { + float4x4 res = transpose(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_c1b600(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_c1b600(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_c1b600(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf794d873e --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_d8f8ba() { + float4x3 res = transpose(float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_d8f8ba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_d8f8ba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_d8f8ba(); + return; +} diff --git a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2455e31043 --- /dev/null +++ b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void transpose_ed4bdc() { + float2x3 res = transpose(float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_ed4bdc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_ed4bdc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_ed4bdc(); + return; +} diff --git a/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..47d7549c55 --- /dev/null +++ b/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void trunc_562d05() { + float3 res = trunc((0.0f).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_562d05(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_562d05(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_562d05(); + return; +} diff --git a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a133b49e63 --- /dev/null +++ b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void trunc_e183aa() { + float4 res = trunc((0.0f).xxxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_e183aa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_e183aa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_e183aa(); + return; +} diff --git a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..082acc562d --- /dev/null +++ b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void trunc_eb83df() { + float res = trunc(1.0f); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_eb83df(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_eb83df(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_eb83df(); + return; +} diff --git a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6aadd19175 --- /dev/null +++ b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void trunc_f370d3() { + float2 res = trunc((0.0f).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_f370d3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_f370d3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_f370d3(); + return; +} diff --git a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..42e474940e --- /dev/null +++ b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_unpack2x16float(uint param_0) { + uint i = param_0; + return f16tof32(uint2(i & 0xffff, i >> 16)); +} + +void unpack2x16float_32a5cf() { + float2 res = tint_unpack2x16float(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16float_32a5cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16float_32a5cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16float_32a5cf(); + return; +} diff --git a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..24b536c97c --- /dev/null +++ b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +float2 tint_unpack2x16snorm(uint param_0) { + int j = int(param_0); + int2 i = int2(j << 16, j) >> 16; + return clamp(float2(i) / 32767.0, -1.0, 1.0); +} + +void unpack2x16snorm_b4aea6() { + float2 res = tint_unpack2x16snorm(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16snorm_b4aea6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16snorm_b4aea6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16snorm_b4aea6(); + return; +} diff --git a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a3f1ab811f --- /dev/null +++ b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +float2 tint_unpack2x16unorm(uint param_0) { + uint j = param_0; + uint2 i = uint2(j & 0xffff, j >> 16); + return float2(i) / 65535.0; +} + +void unpack2x16unorm_7699c0() { + float2 res = tint_unpack2x16unorm(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16unorm_7699c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16unorm_7699c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16unorm_7699c0(); + return; +} diff --git a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20f0953dfe --- /dev/null +++ b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +float4 tint_unpack4x8snorm(uint param_0) { + int j = int(param_0); + int4 i = int4(j << 24, j << 16, j << 8, j) >> 24; + return clamp(float4(i) / 127.0, -1.0, 1.0); +} + +void unpack4x8snorm_523fb3() { + float4 res = tint_unpack4x8snorm(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack4x8snorm_523fb3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack4x8snorm_523fb3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack4x8snorm_523fb3(); + return; +} diff --git a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ce7cb7da9 --- /dev/null +++ b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +float4 tint_unpack4x8unorm(uint param_0) { + uint j = param_0; + uint4 i = uint4(j & 0xff, (j >> 8) & 0xff, (j >> 16) & 0xff, j >> 24); + return float4(i) / 255.0; +} + +void unpack4x8unorm_750c74() { + float4 res = tint_unpack4x8unorm(1u); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack4x8unorm_750c74(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack4x8unorm_750c74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack4x8unorm_750c74(); + return; +} diff --git a/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.hlsl b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/002533.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/002533.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/002533.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/002533.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/002533.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/002533.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..42104ccb56 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/002533.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_002533() { + float4 arg_0 = (0.0f).xxxx; + float4 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_002533(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_002533(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_002533(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/005174.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/005174.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/005174.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/005174.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/005174.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/005174.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..679d38c223 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/005174.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_005174() { + float3 arg_0 = (0.0f).xxx; + float3 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_005174(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_005174(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_005174(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ddb4039cb --- /dev/null +++ b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_1ce782() { + uint4 arg_0 = (0u).xxxx; + uint4 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_1ce782(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_1ce782(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_1ce782(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aff322d2e4 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_1e9d53() { + float2 arg_0 = (0.0f).xx; + float2 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_1e9d53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_1e9d53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_1e9d53(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1843affb8e --- /dev/null +++ b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_467cd1() { + uint arg_0 = 1u; + uint res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_467cd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_467cd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_467cd1(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b755468c3 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_4ad288() { + int arg_0 = 1; + int res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_4ad288(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_4ad288(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_4ad288(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3e97613be3 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_5ad50a() { + int3 arg_0 = (0).xxx; + int3 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_5ad50a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_5ad50a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_5ad50a(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/7326de.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/7326de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..493215017e --- /dev/null +++ b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_7326de() { + uint3 arg_0 = (0u).xxx; + uint3 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7326de(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7326de(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7326de(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc4964e10e --- /dev/null +++ b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_7f28e6() { + uint2 arg_0 = (0u).xx; + uint2 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7f28e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7f28e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7f28e6(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a8e40363c --- /dev/null +++ b/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_7faa9e() { + int2 arg_0 = (0).xx; + int2 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_7faa9e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_7faa9e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_7faa9e(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9457142ded --- /dev/null +++ b/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_9c80a6() { + int4 arg_0 = (0).xxxx; + int4 res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_9c80a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_9c80a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_9c80a6(); + return; +} diff --git a/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.hlsl b/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/abs/b96037.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/abs/b96037.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b19d55ff79 --- /dev/null +++ b/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void abs_b96037() { + float arg_0 = 1.0f; + float res = abs(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + abs_b96037(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + abs_b96037(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + abs_b96037(); + return; +} diff --git a/test/tint/builtins/gen/var/acos/489247.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acos/489247.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acos/489247.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acos/489247.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acos/489247.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/489247.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f53955922 --- /dev/null +++ b/test/tint/builtins/gen/var/acos/489247.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void acos_489247() { + float arg_0 = 1.0f; + float res = acos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_489247(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_489247(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_489247(); + return; +} diff --git a/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e05e04d70 --- /dev/null +++ b/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void acos_8e2acf() { + float4 arg_0 = (0.0f).xxxx; + float4 res = acos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_8e2acf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_8e2acf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_8e2acf(); + return; +} diff --git a/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df2b23182a --- /dev/null +++ b/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void acos_a610c4() { + float3 arg_0 = (0.0f).xxx; + float3 res = acos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_a610c4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_a610c4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_a610c4(); + return; +} diff --git a/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01e6a4ede8 --- /dev/null +++ b/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void acos_dfc915() { + float2 arg_0 = (0.0f).xx; + float2 res = acos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acos_dfc915(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acos_dfc915(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acos_dfc915(); + return; +} diff --git a/test/tint/builtins/gen/var/acosh/640883.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acosh/640883.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acosh/640883.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acosh/640883.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acosh/640883.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/640883.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..659e3c2cfb --- /dev/null +++ b/test/tint/builtins/gen/var/acosh/640883.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_acosh(float2 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_640883() { + float2 arg_0 = (0.0f).xx; + float2 res = tint_acosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_640883(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_640883(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_640883(); + return; +} diff --git a/test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a41df74753 --- /dev/null +++ b/test/tint/builtins/gen/var/acosh/d51ccb.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float4 tint_acosh(float4 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_d51ccb() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tint_acosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_d51ccb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_d51ccb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_d51ccb(); + return; +} diff --git a/test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..69ded704e5 --- /dev/null +++ b/test/tint/builtins/gen/var/acosh/e38f5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float3 tint_acosh(float3 x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_e38f5c() { + float3 arg_0 = (0.0f).xxx; + float3 res = tint_acosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_e38f5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_e38f5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_e38f5c(); + return; +} diff --git a/test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44bd5045fb --- /dev/null +++ b/test/tint/builtins/gen/var/acosh/ecf2d1.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float tint_acosh(float x) { + return log((x + sqrt(((x * x) - 1.0f)))); +} + +void acosh_ecf2d1() { + float arg_0 = 1.0f; + float res = tint_acosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + acosh_ecf2d1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + acosh_ecf2d1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + acosh_ecf2d1(); + return; +} diff --git a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/all/353d6a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/all/353d6a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2bc077889d --- /dev/null +++ b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void all_353d6a() { + bool arg_0 = false; + bool res = all(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_353d6a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_353d6a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_353d6a(); + return; +} diff --git a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/all/986c7b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/all/986c7b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5bac853ce4 --- /dev/null +++ b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void all_986c7b() { + bool4 arg_0 = (false).xxxx; + bool res = all(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_986c7b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_986c7b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_986c7b(); + return; +} diff --git a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.hlsl b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9bf7afae9 --- /dev/null +++ b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void all_bd2dba() { + bool3 arg_0 = (false).xxx; + bool res = all(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_bd2dba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_bd2dba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_bd2dba(); + return; +} diff --git a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.hlsl b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/all/f46790.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/all/f46790.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e82b1328d3 --- /dev/null +++ b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void all_f46790() { + bool2 arg_0 = (false).xx; + bool res = all(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + all_f46790(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + all_f46790(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + all_f46790(); + return; +} diff --git a/test/tint/builtins/gen/var/any/083428.wgsl.expected.hlsl b/test/tint/builtins/gen/var/any/083428.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/any/083428.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/any/083428.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/any/083428.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/any/083428.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3064009338 --- /dev/null +++ b/test/tint/builtins/gen/var/any/083428.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void any_083428() { + bool4 arg_0 = (false).xxxx; + bool res = any(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_083428(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_083428(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_083428(); + return; +} diff --git a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.hlsl b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2662733182 --- /dev/null +++ b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void any_0e3e58() { + bool2 arg_0 = (false).xx; + bool res = any(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_0e3e58(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_0e3e58(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_0e3e58(); + return; +} diff --git a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d34bc39aaa --- /dev/null +++ b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void any_2ab91a() { + bool arg_0 = false; + bool res = any(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_2ab91a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_2ab91a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_2ab91a(); + return; +} diff --git a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/any/e755c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/any/e755c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cac18b451c --- /dev/null +++ b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void any_e755c1() { + bool3 arg_0 = (false).xxx; + bool res = any(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + any_e755c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + any_e755c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + any_e755c1(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fabbad5078 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_1588cd() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_1588cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_1588cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_1588cd(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fabbad5078 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_1588cd() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_1588cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_1588cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_1588cd(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ba47339e36 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_61b1c7() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_61b1c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_61b1c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_61b1c7(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba47339e36 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_61b1c7() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_61b1c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_61b1c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_61b1c7(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9f06383b3c --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.dxc.hlsl @@ -0,0 +1 @@ +SKIP \ No newline at end of file diff --git a/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f06383b3c --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.fxc.hlsl @@ -0,0 +1 @@ +SKIP \ No newline at end of file diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cee7ff20e5 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_a0f5ca() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_a0f5ca(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_a0f5ca(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_a0f5ca(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cee7ff20e5 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_a0f5ca() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_a0f5ca(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_a0f5ca(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_a0f5ca(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9f06383b3c --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.dxc.hlsl @@ -0,0 +1 @@ +SKIP \ No newline at end of file diff --git a/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f06383b3c --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.fxc.hlsl @@ -0,0 +1 @@ +SKIP \ No newline at end of file diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..2156844065 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_cdd123() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_cdd123(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_cdd123(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_cdd123(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2156844065 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_cdd123() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_cdd123(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_cdd123(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_cdd123(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a6cf72ccdb --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_cfca0a() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_cfca0a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_cfca0a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_cfca0a(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a6cf72ccdb --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +ByteAddressBuffer sb_ro : register(t1, space0); + +void arrayLength_cfca0a() { + uint tint_symbol_2 = 0u; + sb_ro.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_cfca0a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_cfca0a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_cfca0a(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4b05a0fc83 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.dxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_eb510f() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_eb510f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_eb510f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_eb510f(); + return; +} diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b05a0fc83 --- /dev/null +++ b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void arrayLength_eb510f() { + uint tint_symbol_2 = 0u; + sb_rw.GetDimensions(tint_symbol_2); + const uint tint_symbol_3 = ((tint_symbol_2 - 0u) / 4u); + uint res = tint_symbol_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + arrayLength_eb510f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + arrayLength_eb510f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + arrayLength_eb510f(); + return; +} diff --git a/test/tint/builtins/gen/var/asin/064953.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asin/064953.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asin/064953.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asin/064953.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asin/064953.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/064953.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..21168e7ea4 --- /dev/null +++ b/test/tint/builtins/gen/var/asin/064953.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void asin_064953() { + float4 arg_0 = (0.0f).xxxx; + float4 res = asin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_064953(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_064953(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_064953(); + return; +} diff --git a/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..306769cdce --- /dev/null +++ b/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void asin_7b6a44() { + float2 arg_0 = (0.0f).xx; + float2 res = asin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_7b6a44(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_7b6a44(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_7b6a44(); + return; +} diff --git a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba54cdc4db --- /dev/null +++ b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void asin_8cd9c9() { + float3 arg_0 = (0.0f).xxx; + float3 res = asin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_8cd9c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_8cd9c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_8cd9c9(); + return; +} diff --git a/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad66315d46 --- /dev/null +++ b/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void asin_c0c272() { + float arg_0 = 1.0f; + float res = asin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asin_c0c272(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asin_c0c272(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asin_c0c272(); + return; +} diff --git a/test/tint/builtins/gen/var/asinh/157447.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asinh/157447.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asinh/157447.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asinh/157447.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asinh/157447.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/157447.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a439a80897 --- /dev/null +++ b/test/tint/builtins/gen/var/asinh/157447.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float tint_sinh(float x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_157447() { + float arg_0 = 1.0f; + float res = tint_sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_157447(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_157447(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_157447(); + return; +} diff --git a/test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7929b51a45 --- /dev/null +++ b/test/tint/builtins/gen/var/asinh/2265ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float3 tint_sinh(float3 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_2265ee() { + float3 arg_0 = (0.0f).xxx; + float3 res = tint_sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_2265ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_2265ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_2265ee(); + return; +} diff --git a/test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a00baa3abc --- /dev/null +++ b/test/tint/builtins/gen/var/asinh/4a2226.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_sinh(float2 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_4a2226() { + float2 arg_0 = (0.0f).xx; + float2 res = tint_sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_4a2226(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_4a2226(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_4a2226(); + return; +} diff --git a/test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.hlsl b/test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..826939d689 --- /dev/null +++ b/test/tint/builtins/gen/var/asinh/8d2e51.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float4 tint_sinh(float4 x) { + return log((x + sqrt(((x * x) + 1.0f)))); +} + +void asinh_8d2e51() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tint_sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + asinh_8d2e51(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + asinh_8d2e51(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + asinh_8d2e51(); + return; +} diff --git a/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan/02979a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan/02979a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b78942c67 --- /dev/null +++ b/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void atan_02979a() { + float arg_0 = 1.0f; + float res = atan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_02979a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_02979a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_02979a(); + return; +} diff --git a/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..11f8b76ec9 --- /dev/null +++ b/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void atan_331e6d() { + float3 arg_0 = (0.0f).xxx; + float3 res = atan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_331e6d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_331e6d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_331e6d(); + return; +} diff --git a/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..952af660e9 --- /dev/null +++ b/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void atan_a8b696() { + float4 arg_0 = (0.0f).xxxx; + float4 res = atan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_a8b696(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_a8b696(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_a8b696(); + return; +} diff --git a/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dca78eb327 --- /dev/null +++ b/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void atan_ad96e4() { + float2 arg_0 = (0.0f).xx; + float2 res = atan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan_ad96e4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan_ad96e4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan_ad96e4(); + return; +} diff --git a/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8cccbb73f1 --- /dev/null +++ b/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void atan2_57fb13() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = atan2(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_57fb13(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_57fb13(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_57fb13(); + return; +} diff --git a/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..39bf0d5e19 --- /dev/null +++ b/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void atan2_96057c() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = atan2(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_96057c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_96057c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_96057c(); + return; +} diff --git a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e21a03a93b --- /dev/null +++ b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void atan2_a70d0d() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = atan2(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_a70d0d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_a70d0d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_a70d0d(); + return; +} diff --git a/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..68a82e0006 --- /dev/null +++ b/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void atan2_ae713e() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = atan2(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atan2_ae713e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atan2_ae713e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atan2_ae713e(); + return; +} diff --git a/test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3fad1f743 --- /dev/null +++ b/test/tint/builtins/gen/var/atanh/440cca.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float3 tint_atanh(float3 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_440cca() { + float3 arg_0 = (0.0f).xxx; + float3 res = tint_atanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_440cca(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_440cca(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_440cca(); + return; +} diff --git a/test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20a886c866 --- /dev/null +++ b/test/tint/builtins/gen/var/atanh/7997d8.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float tint_atanh(float x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_7997d8() { + float arg_0 = 1.0f; + float res = tint_atanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_7997d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_7997d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_7997d8(); + return; +} diff --git a/test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1932b37b60 --- /dev/null +++ b/test/tint/builtins/gen/var/atanh/c0e634.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_atanh(float2 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_c0e634() { + float2 arg_0 = (0.0f).xx; + float2 res = tint_atanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_c0e634(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_c0e634(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_c0e634(); + return; +} diff --git a/test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a7bf020a75 --- /dev/null +++ b/test/tint/builtins/gen/var/atanh/f3e01b.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float4 tint_atanh(float4 x) { + return (log(((1.0f + x) / (1.0f - x))) * 0.5f); +} + +void atanh_f3e01b() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tint_atanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + atanh_f3e01b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + atanh_f3e01b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atanh_f3e01b(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94edce7bd4 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicAdd_794055() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAdd_794055(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1bf7c3ef82 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_8a199a() { + uint arg_1 = 1u; + uint res = tint_atomicAdd(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicAdd_8a199a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAdd_8a199a(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..213221ba82 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, value, original_value); + return original_value; +} + + +void atomicAdd_d32fe4() { + int arg_1 = 1; + int res = tint_atomicAdd(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicAdd_d32fe4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAdd_d32fe4(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c74e7bdbe4 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicAdd_d5db1d() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAdd_d5db1d(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4562edbdc2 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_152966() { + int arg_1 = 1; + int res = tint_atomicAnd(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicAnd_152966(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAnd_152966(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9aca847882 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicAnd_34edd3() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAnd(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAnd_34edd3(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7bf2f53a90 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicAnd_45a819() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedAnd(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicAnd_45a819(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f2099cfe1a --- /dev/null +++ b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicAnd(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAnd(offset, value, original_value); + return original_value; +} + + +void atomicAnd_85a8d9() { + uint arg_1 = 1u; + uint res = tint_atomicAnd(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicAnd_85a8d9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicAnd_85a8d9(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53a01c6f54 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + int old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, int compare, int value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_1bd40a() { + int arg_1 = 1; + int arg_2 = 1; + atomic_compare_exchange_weak_ret_type res = tint_atomicCompareExchangeWeak(sb_rw, 0u, arg_1, arg_2); +} + +void fragment_main() { + atomicCompareExchangeWeak_1bd40a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicCompareExchangeWeak_1bd40a(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c22dc7ece --- /dev/null +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +struct atomic_compare_exchange_weak_ret_type { + uint old_value; + bool exchanged; +}; + +atomic_compare_exchange_weak_ret_type tint_atomicCompareExchangeWeak(RWByteAddressBuffer buffer, uint offset, uint compare, uint value) { + atomic_compare_exchange_weak_ret_type result=(atomic_compare_exchange_weak_ret_type)0; + buffer.InterlockedCompareExchange(offset, compare, value, result.old_value); + result.exchanged = result.old_value == compare; + return result; +} + + +void atomicCompareExchangeWeak_63d8e6() { + uint arg_1 = 1u; + uint arg_2 = 1u; + atomic_compare_exchange_weak_ret_type res = tint_atomicCompareExchangeWeak(sb_rw, 0u, arg_1, arg_2); +} + +void fragment_main() { + atomicCompareExchangeWeak_63d8e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicCompareExchangeWeak_63d8e6(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a445a1d0ab --- /dev/null +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +struct atomic_compare_exchange_resultu32 { + uint old_value; + bool exchanged; +}; +groupshared uint arg_0; + +void atomicCompareExchangeWeak_83580d() { + uint arg_1 = 1u; + uint arg_2 = 1u; + atomic_compare_exchange_resultu32 atomic_result = (atomic_compare_exchange_resultu32)0; + uint atomic_compare_value = arg_1; + InterlockedCompareExchange(arg_0, atomic_compare_value, arg_2, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + atomic_compare_exchange_resultu32 res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_83580d(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c14dade47d --- /dev/null +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +struct atomic_compare_exchange_resulti32 { + int old_value; + bool exchanged; +}; +groupshared int arg_0; + +void atomicCompareExchangeWeak_e88938() { + int arg_1 = 1; + int arg_2 = 1; + atomic_compare_exchange_resulti32 atomic_result = (atomic_compare_exchange_resulti32)0; + int atomic_compare_value = arg_1; + InterlockedCompareExchange(arg_0, atomic_compare_value, arg_2, atomic_result.old_value); + atomic_result.exchanged = atomic_result.old_value == atomic_compare_value; + atomic_compare_exchange_resulti32 res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicCompareExchangeWeak_e88938(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b119a3ff20 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicExchange_0a5dca() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedExchange(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicExchange_0a5dca(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cec9984aab --- /dev/null +++ b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_d59712() { + uint arg_1 = 1u; + uint res = tint_atomicExchange(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicExchange_d59712(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicExchange_d59712(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..86842c2267 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicExchange_e114ba() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedExchange(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicExchange_e114ba(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8c0fe233c1 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicExchange(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedExchange(offset, value, original_value); + return original_value; +} + + +void atomicExchange_f2e22f() { + int arg_1 = 1; + int res = tint_atomicExchange(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicExchange_f2e22f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicExchange_f2e22f(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a278b2c16c --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.dxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_0806ad() { + int res = tint_atomicLoad(sb_rw, 0u); +} + +void fragment_main() { + atomicLoad_0806ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicLoad_0806ad(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a278b2c16c --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + int value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_0806ad() { + int res = tint_atomicLoad(sb_rw, 0u); +} + +void fragment_main() { + atomicLoad_0806ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicLoad_0806ad(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f0f031f320 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.dxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicLoad_361bf1() { + uint atomic_result = 0u; + InterlockedOr(arg_0, 0, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicLoad_361bf1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f0f031f320 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicLoad_361bf1() { + uint atomic_result = 0u; + InterlockedOr(arg_0, 0, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicLoad_361bf1(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..adf265f6aa --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.dxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicLoad_afcc03() { + int atomic_result = 0; + InterlockedOr(arg_0, 0, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicLoad_afcc03(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..adf265f6aa --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicLoad_afcc03() { + int atomic_result = 0; + InterlockedOr(arg_0, 0, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicLoad_afcc03(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..77edab3db2 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.dxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_fe6cc3() { + uint res = tint_atomicLoad(sb_rw, 0u); +} + +void fragment_main() { + atomicLoad_fe6cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicLoad_fe6cc3(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..77edab3db2 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicLoad(RWByteAddressBuffer buffer, uint offset) { + uint value = 0; + buffer.InterlockedOr(offset, 0, value); + return value; +} + + +void atomicLoad_fe6cc3() { + uint res = tint_atomicLoad(sb_rw, 0u); +} + +void fragment_main() { + atomicLoad_fe6cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicLoad_fe6cc3(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..174521d4e0 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMax(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_51b9be() { + uint arg_1 = 1u; + uint res = tint_atomicMax(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicMax_51b9be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMax_51b9be(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a649f98afb --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMax(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMax(offset, value, original_value); + return original_value; +} + + +void atomicMax_92aa72() { + int arg_1 = 1; + int res = tint_atomicMax(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicMax_92aa72(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMax_92aa72(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5f4f6cb431 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicMax_a89cc3() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedMax(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMax_a89cc3(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..acdda2c11f --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicMax_beccfc() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedMax(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMax_beccfc(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..06c49cd013 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicMin_278235() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedMin(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMin_278235(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c16fc8ba1 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicMin_69d383() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedMin(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicMin_69d383(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ff4793b2c5 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicMin(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_8e38dc() { + int arg_1 = 1; + int res = tint_atomicMin(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicMin_8e38dc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMin_8e38dc(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ae974e3f7a --- /dev/null +++ b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicMin(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedMin(offset, value, original_value); + return original_value; +} + + +void atomicMin_c67a74() { + uint arg_1 = 1u; + uint res = tint_atomicMin(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicMin_c67a74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicMin_c67a74(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80cf20e811 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicOr_5e3d61() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedOr(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicOr_5e3d61(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2df87d268b --- /dev/null +++ b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicOr(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_5e95d4() { + uint arg_1 = 1u; + uint res = tint_atomicOr(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicOr_5e95d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicOr_5e95d4(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b3d4bb9f5d --- /dev/null +++ b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicOr(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedOr(offset, value, original_value); + return original_value; +} + + +void atomicOr_8d96a0() { + int arg_1 = 1; + int res = tint_atomicOr(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicOr_8d96a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicOr_8d96a0(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04e7f92200 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicOr_d09248() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedOr(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicOr_d09248(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4bff9093d2 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared uint arg_0; + +void atomicStore_726882() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedExchange(arg_0, arg_1, atomic_result); +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicStore_726882(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35781aba87 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +groupshared int arg_0; + +void atomicStore_8bea94() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedExchange(arg_0, arg_1, atomic_result); +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicStore_8bea94(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..253ad312c0 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, uint value) { + uint ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_cdc29e() { + uint arg_1 = 1u; + tint_atomicStore(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicStore_cdc29e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicStore_cdc29e(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bb02128e2d --- /dev/null +++ b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +void tint_atomicStore(RWByteAddressBuffer buffer, uint offset, int value) { + int ignored; + buffer.InterlockedExchange(offset, value, ignored); +} + + +void atomicStore_d1e9a6() { + int arg_1 = 1; + tint_atomicStore(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicStore_d1e9a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicStore_d1e9a6(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eac50d325c --- /dev/null +++ b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicSub(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_051100() { + int arg_1 = 1; + int res = tint_atomicSub(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicSub_051100(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicSub_051100(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abced13695 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicSub_0d26c2() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedAdd(arg_0, -arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicSub_0d26c2(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..166f709699 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicSub(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedAdd(offset, -value, original_value); + return original_value; +} + + +void atomicSub_15bfc9() { + uint arg_1 = 1u; + uint res = tint_atomicSub(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicSub_15bfc9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicSub_15bfc9(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcc2e250ba --- /dev/null +++ b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicSub_77883a() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedAdd(arg_0, -arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicSub_77883a(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d745f1232c --- /dev/null +++ b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +uint tint_atomicXor(RWByteAddressBuffer buffer, uint offset, uint value) { + uint original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_54510e() { + uint arg_1 = 1u; + uint res = tint_atomicXor(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicXor_54510e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicXor_54510e(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a93c5dc2fb --- /dev/null +++ b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared int arg_0; + +void atomicXor_75dc95() { + int arg_1 = 1; + int atomic_result = 0; + InterlockedXor(arg_0, arg_1, atomic_result); + int res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + int atomic_result_1 = 0; + InterlockedExchange(arg_0, 0, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicXor_75dc95(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df83cd93d1 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +RWByteAddressBuffer sb_rw : register(u0, space0); + +int tint_atomicXor(RWByteAddressBuffer buffer, uint offset, int value) { + int original_value = 0; + buffer.InterlockedXor(offset, value, original_value); + return original_value; +} + + +void atomicXor_c1b78c() { + int arg_1 = 1; + int res = tint_atomicXor(sb_rw, 0u, arg_1); +} + +void fragment_main() { + atomicXor_c1b78c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + atomicXor_c1b78c(); + return; +} diff --git a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18b6de75b7 --- /dev/null +++ b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +groupshared uint arg_0; + +void atomicXor_c8e6be() { + uint arg_1 = 1u; + uint atomic_result = 0u; + InterlockedXor(arg_0, arg_1, atomic_result); + uint res = atomic_result; +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void compute_main_inner(uint local_invocation_index) { + { + uint atomic_result_1 = 0u; + InterlockedExchange(arg_0, 0u, atomic_result_1); + } + GroupMemoryBarrierWithGroupSync(); + atomicXor_c8e6be(); +} + +[numthreads(1, 1, 1)] +void compute_main(tint_symbol_1 tint_symbol) { + compute_main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3e070fef0c --- /dev/null +++ b/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void ceil_34064b() { + float3 arg_0 = (0.0f).xxx; + float3 res = ceil(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_34064b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_34064b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_34064b(); + return; +} diff --git a/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ceil/678655.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ceil/678655.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..61f3dc0d3c --- /dev/null +++ b/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void ceil_678655() { + float arg_0 = 1.0f; + float res = ceil(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_678655(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_678655(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_678655(); + return; +} diff --git a/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..828c98abda --- /dev/null +++ b/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void ceil_96f597() { + float2 arg_0 = (0.0f).xx; + float2 res = ceil(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_96f597(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_96f597(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_96f597(); + return; +} diff --git a/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f660b33e57 --- /dev/null +++ b/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void ceil_b74c16() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ceil(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ceil_b74c16(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ceil_b74c16(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ceil_b74c16(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..439c442216 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_0acf8f() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 arg_2 = (0.0f).xx; + float2 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_0acf8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_0acf8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_0acf8f(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..824f7f2f6b --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_1a32e3() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + int4 arg_2 = (0).xxxx; + int4 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_1a32e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_1a32e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_1a32e3(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..658444791b --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_2bd567() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float arg_2 = 1.0f; + float res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_2bd567(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_2bd567(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_2bd567(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d7d8d5438a --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_2bde41() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 arg_2 = (0.0f).xxxx; + float4 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_2bde41(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_2bde41(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_2bde41(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e74913b434 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_548fc7() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + uint3 arg_2 = (0u).xxx; + uint3 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_548fc7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_548fc7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_548fc7(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b09cac0f90 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_5f0819() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + int3 arg_2 = (0).xxx; + int3 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_5f0819(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_5f0819(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_5f0819(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..934e1d44c1 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_6c1749() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + int2 arg_2 = (0).xx; + int2 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_6c1749(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_6c1749(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_6c1749(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..89aea9d0f7 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_7706d7() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + uint2 arg_2 = (0u).xx; + uint2 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_7706d7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_7706d7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_7706d7(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/867397.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/867397.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5a3607e2dc --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_867397() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 arg_2 = (0.0f).xxx; + float3 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_867397(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_867397(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_867397(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec730dace5 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_a2de25() { + uint arg_0 = 1u; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_a2de25(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_a2de25(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_a2de25(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..42208eb360 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_b07c65() { + int arg_0 = 1; + int arg_1 = 1; + int arg_2 = 1; + int res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_b07c65(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_b07c65(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_b07c65(); + return; +} diff --git a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.hlsl b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44a95928e3 --- /dev/null +++ b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void clamp_bd43ce() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + uint4 arg_2 = (0u).xxxx; + uint4 res = clamp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + clamp_bd43ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + clamp_bd43ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + clamp_bd43ce(); + return; +} diff --git a/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..73f5a2f83e --- /dev/null +++ b/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cos_16dc15() { + float3 arg_0 = (0.0f).xxx; + float3 res = cos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_16dc15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_16dc15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_16dc15(); + return; +} diff --git a/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9a9e05eb3b --- /dev/null +++ b/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cos_29d66d() { + float4 arg_0 = (0.0f).xxxx; + float4 res = cos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_29d66d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_29d66d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_29d66d(); + return; +} diff --git a/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cd82afc767 --- /dev/null +++ b/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cos_c3b486() { + float2 arg_0 = (0.0f).xx; + float2 res = cos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_c3b486(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_c3b486(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_c3b486(); + return; +} diff --git a/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d5e81f65c6 --- /dev/null +++ b/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cos_c5c28e() { + float arg_0 = 1.0f; + float res = cos(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cos_c5c28e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cos_c5c28e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cos_c5c28e(); + return; +} diff --git a/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cosh/377652.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cosh/377652.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b6ec3e6ab --- /dev/null +++ b/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cosh_377652() { + float3 arg_0 = (0.0f).xxx; + float3 res = cosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_377652(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_377652(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_377652(); + return; +} diff --git a/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c53a74ef4 --- /dev/null +++ b/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cosh_c13756() { + float2 arg_0 = (0.0f).xx; + float2 res = cosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_c13756(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_c13756(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_c13756(); + return; +} diff --git a/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..657c3dd842 --- /dev/null +++ b/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cosh_da92dd() { + float arg_0 = 1.0f; + float res = cosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_da92dd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_da92dd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_da92dd(); + return; +} diff --git a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57edfcd129 --- /dev/null +++ b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void cosh_e0c1de() { + float4 arg_0 = (0.0f).xxxx; + float4 res = cosh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cosh_e0c1de(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cosh_e0c1de(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cosh_e0c1de(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65bbec9d87 --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint tint_count_leading_zeros(uint v) { + uint x = uint(v); + const uint b16 = ((x <= 65535u) ? 16u : 0u); + x = (x << b16); + const uint b8 = ((x <= 16777215u) ? 8u : 0u); + x = (x << b8); + const uint b4 = ((x <= 268435455u) ? 4u : 0u); + x = (x << b4); + const uint b2 = ((x <= 1073741823u) ? 2u : 0u); + x = (x << b2); + const uint b1 = ((x <= 2147483647u) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countLeadingZeros_208d46() { + uint arg_0 = 1u; + uint res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_208d46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_208d46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_208d46(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ddf54fb1eb --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int tint_count_leading_zeros(int v) { + uint x = uint(v); + const uint b16 = ((x <= 65535u) ? 16u : 0u); + x = (x << b16); + const uint b8 = ((x <= 16777215u) ? 8u : 0u); + x = (x << b8); + const uint b4 = ((x <= 268435455u) ? 4u : 0u); + x = (x << b4); + const uint b2 = ((x <= 1073741823u) ? 2u : 0u); + x = (x << b2); + const uint b1 = ((x <= 2147483647u) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countLeadingZeros_6d4656() { + int arg_0 = 1; + int res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_6d4656(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_6d4656(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_6d4656(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90d4b5bdcd --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint2 tint_count_leading_zeros(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); + x = (x << b16); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); + x = (x << b8); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); + x = (x << b4); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); + x = (x << b2); + 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 arg_0 = (0u).xx; + uint2 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_70783f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_70783f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_70783f(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a22216298f --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int3 tint_count_leading_zeros(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); + x = (x << b16); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); + x = (x << b8); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); + x = (x << b4); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); + x = (x << b2); + 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 arg_0 = (0).xxx; + int3 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_7c38a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_7c38a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_7c38a6(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..554c876e9f --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int2 tint_count_leading_zeros(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); + x = (x << b16); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); + x = (x << b8); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); + x = (x << b4); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); + x = (x << b2); + 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 arg_0 = (0).xx; + int2 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_858d40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_858d40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_858d40(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8ce7db4836 --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint3 tint_count_leading_zeros(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); + x = (x << b16); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); + x = (x << b8); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); + x = (x << b4); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); + x = (x << b2); + 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 arg_0 = (0u).xxx; + uint3 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_ab6345(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_ab6345(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_ab6345(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c0038e915 --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int4 tint_count_leading_zeros(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); + x = (x << b16); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); + x = (x << b8); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); + x = (x << b4); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); + x = (x << b2); + 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 arg_0 = (0).xxxx; + int4 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_eab32b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_eab32b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_eab32b(); + return; +} diff --git a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..073158b3ee --- /dev/null +++ b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint4 tint_count_leading_zeros(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); + x = (x << b16); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); + x = (x << b8); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); + x = (x << b4); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); + x = (x << b2); + 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 arg_0 = (0u).xxxx; + uint4 res = tint_count_leading_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countLeadingZeros_f70103(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countLeadingZeros_f70103(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countLeadingZeros_f70103(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65d9518f22 --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_0d0e46() { + uint4 arg_0 = (0u).xxxx; + uint4 res = countbits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_0d0e46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_0d0e46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_0d0e46(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0fd2b2eac8 --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_0f7980() { + int4 arg_0 = (0).xxxx; + int4 res = asint(countbits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_0f7980(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_0f7980(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_0f7980(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d93901e7c4 --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_65d2ae() { + int3 arg_0 = (0).xxx; + int3 res = asint(countbits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_65d2ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_65d2ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_65d2ae(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..41849453dd --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_690cfc() { + uint3 arg_0 = (0u).xxx; + uint3 res = countbits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_690cfc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_690cfc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_690cfc(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..962e4478cc --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_94fd81() { + uint2 arg_0 = (0u).xx; + uint2 res = countbits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_94fd81(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_94fd81(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_94fd81(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5c19408cde --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_ae44f9() { + uint arg_0 = 1u; + uint res = countbits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_ae44f9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_ae44f9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_ae44f9(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c68afc7207 --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_af90e2() { + int2 arg_0 = (0).xx; + int2 res = asint(countbits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_af90e2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_af90e2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_af90e2(); + return; +} diff --git a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7801d95ad6 --- /dev/null +++ b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void countOneBits_fd88b2() { + int arg_0 = 1; + int res = asint(countbits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countOneBits_fd88b2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countOneBits_fd88b2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countOneBits_fd88b2(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..789f233fd6 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint2 tint_count_trailing_zeros(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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 arg_0 = (0u).xx; + uint2 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_1ad138(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_1ad138(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_1ad138(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54f1937ad5 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int4 tint_count_trailing_zeros(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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 arg_0 = (0).xxxx; + int4 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_1dc84a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_1dc84a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_1dc84a(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4581899842 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint tint_count_trailing_zeros(uint v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countTrailingZeros_21e394() { + uint arg_0 = 1u; + uint res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_21e394(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_21e394(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_21e394(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2be49d7fd1 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int2 tint_count_trailing_zeros(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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 arg_0 = (0).xx; + int2 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_327c37(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_327c37(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_327c37(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..464986a871 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int tint_count_trailing_zeros(int v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 1u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) + is_zero)); +} + +void countTrailingZeros_42fed6() { + int arg_0 = 1; + int res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_42fed6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_42fed6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_42fed6(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8f96543f78 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint3 tint_count_trailing_zeros(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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 arg_0 = (0u).xxx; + uint3 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_8ed26f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_8ed26f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_8ed26f(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3f8ccdb55 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int3 tint_count_trailing_zeros(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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 arg_0 = (0).xxx; + int3 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_acfacb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_acfacb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_acfacb(); + return; +} diff --git a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c41a61fc0 --- /dev/null +++ b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint4 tint_count_trailing_zeros(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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 arg_0 = (0u).xxxx; + uint4 res = tint_count_trailing_zeros(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + countTrailingZeros_d2b4a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + countTrailingZeros_d2b4a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + countTrailingZeros_d2b4a0(); + return; +} diff --git a/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..272645fb5f --- /dev/null +++ b/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void cross_041cb0() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = cross(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + cross_041cb0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + cross_041cb0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + cross_041cb0(); + return; +} diff --git a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..707abe1468 --- /dev/null +++ b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float4 tint_degrees(float4 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_0d170c() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tint_degrees(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_0d170c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_0d170c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_0d170c(); + return; +} diff --git a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.hlsl b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2b98c5165 --- /dev/null +++ b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_degrees(float2 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_1ad5df() { + float2 arg_0 = (0.0f).xx; + float2 res = tint_degrees(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_1ad5df(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_1ad5df(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_1ad5df(); + return; +} diff --git a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.hlsl b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..acc4754c4f --- /dev/null +++ b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float3 tint_degrees(float3 param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_2af623() { + float3 arg_0 = (0.0f).xxx; + float3 res = tint_degrees(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_2af623(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_2af623(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_2af623(); + return; +} diff --git a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.hlsl b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..98215142de --- /dev/null +++ b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float tint_degrees(float param_0) { + return param_0 * 57.295779513082322865; +} + +void degrees_51f705() { + float arg_0 = 1.0f; + float res = tint_degrees(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + degrees_51f705(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + degrees_51f705(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + degrees_51f705(); + return; +} diff --git a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.hlsl b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..273a3f71aa --- /dev/null +++ b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void determinant_2b62ba() { + float3x3 arg_0 = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); + float res = determinant(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_2b62ba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_2b62ba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_2b62ba(); + return; +} diff --git a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..48842502fd --- /dev/null +++ b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void determinant_a0a87c() { + float4x4 arg_0 = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + float res = determinant(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_a0a87c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_a0a87c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_a0a87c(); + return; +} diff --git a/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.hlsl b/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..84a0eda0b8 --- /dev/null +++ b/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void determinant_e19305() { + float2x2 arg_0 = float2x2((0.0f).xx, (0.0f).xx); + float res = determinant(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + determinant_e19305(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + determinant_e19305(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + determinant_e19305(); + return; +} diff --git a/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0155edfdd2 --- /dev/null +++ b/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void distance_0657d4() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float res = distance(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_0657d4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_0657d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_0657d4(); + return; +} diff --git a/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.hlsl b/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31d25bb5ac --- /dev/null +++ b/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void distance_9646ea() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float res = distance(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_9646ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_9646ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_9646ea(); + return; +} diff --git a/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.hlsl b/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..49d49f9e13 --- /dev/null +++ b/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void distance_aa4055() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float res = distance(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_aa4055(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_aa4055(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_aa4055(); + return; +} diff --git a/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.hlsl b/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2345aa74d --- /dev/null +++ b/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void distance_cfed73() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = distance(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + distance_cfed73(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + distance_cfed73(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + distance_cfed73(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9ffbdc32ae --- /dev/null +++ b/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_0c577b() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_0c577b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_0c577b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_0c577b(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4c889b1441 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_7548a0() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + uint res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_7548a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_7548a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_7548a0(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f38608aa9a --- /dev/null +++ b/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_883f0e() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_883f0e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_883f0e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_883f0e(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3d8cf4746 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_97c7ee() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + uint res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_97c7ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_97c7ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_97c7ee(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..426f56da23 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_ba4246() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_ba4246(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_ba4246(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_ba4246(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2e609e9fb7 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_e994c7() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + uint res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_e994c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_e994c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_e994c7(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0889c70e61 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_ef6b1d() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + int res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_ef6b1d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_ef6b1d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_ef6b1d(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6562925b32 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_f1312c() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + int res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_f1312c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_f1312c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_f1312c(); + return; +} diff --git a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..19af42f9f5 --- /dev/null +++ b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void dot_fc5f7c() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + int res = dot(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + dot_fc5f7c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + dot_fc5f7c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + dot_fc5f7c(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..452f7005fa --- /dev/null +++ b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdx_0763f7() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddx(arg_0); +} + +void fragment_main() { + dpdx_0763f7(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5251f081cc --- /dev/null +++ b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdx_99edb1() { + float2 arg_0 = (0.0f).xx; + float2 res = ddx(arg_0); +} + +void fragment_main() { + dpdx_99edb1(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b36fbdd768 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdx_c487fa() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddx(arg_0); +} + +void fragment_main() { + dpdx_c487fa(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ef8ef066b6 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdx_e263de() { + float arg_0 = 1.0f; + float res = ddx(arg_0); +} + +void fragment_main() { + dpdx_e263de(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e2ee49789e --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxCoarse_029152() { + float arg_0 = 1.0f; + float res = ddx_coarse(arg_0); +} + +void fragment_main() { + dpdxCoarse_029152(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54a39b4037 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxCoarse_9581cf() { + float2 arg_0 = (0.0f).xx; + float2 res = ddx_coarse(arg_0); +} + +void fragment_main() { + dpdxCoarse_9581cf(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..202bff3922 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxCoarse_c28641() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddx_coarse(arg_0); +} + +void fragment_main() { + dpdxCoarse_c28641(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5d5ca6398 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxCoarse_f64d7b() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddx_coarse(arg_0); +} + +void fragment_main() { + dpdxCoarse_f64d7b(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b348c27344 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxFine_8c5069() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddx_fine(arg_0); +} + +void fragment_main() { + dpdxFine_8c5069(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1e4b48df34 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxFine_9631de() { + float2 arg_0 = (0.0f).xx; + float2 res = ddx_fine(arg_0); +} + +void fragment_main() { + dpdxFine_9631de(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4c1d8c4fa6 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxFine_f401a2() { + float arg_0 = 1.0f; + float res = ddx_fine(arg_0); +} + +void fragment_main() { + dpdxFine_f401a2(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0177f32b7d --- /dev/null +++ b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdxFine_f92fb6() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddx_fine(arg_0); +} + +void fragment_main() { + dpdxFine_f92fb6(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..32602bee6b --- /dev/null +++ b/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdy_699a05() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddy(arg_0); +} + +void fragment_main() { + dpdy_699a05(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..566c64bb64 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdy_7f8d84() { + float arg_0 = 1.0f; + float res = ddy(arg_0); +} + +void fragment_main() { + dpdy_7f8d84(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..87d014da6b --- /dev/null +++ b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdy_a8b56e() { + float2 arg_0 = (0.0f).xx; + float2 res = ddy(arg_0); +} + +void fragment_main() { + dpdy_a8b56e(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1dc58b95ab --- /dev/null +++ b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdy_feb40f() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddy(arg_0); +} + +void fragment_main() { + dpdy_feb40f(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1820d16199 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyCoarse_3e1ab4() { + float2 arg_0 = (0.0f).xx; + float2 res = ddy_coarse(arg_0); +} + +void fragment_main() { + dpdyCoarse_3e1ab4(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f2904c8c0 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyCoarse_445d24() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddy_coarse(arg_0); +} + +void fragment_main() { + dpdyCoarse_445d24(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c5c4e1e399 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyCoarse_870a7e() { + float arg_0 = 1.0f; + float res = ddy_coarse(arg_0); +} + +void fragment_main() { + dpdyCoarse_870a7e(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3518fc69f0 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyCoarse_ae1873() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddy_coarse(arg_0); +} + +void fragment_main() { + dpdyCoarse_ae1873(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e20864095e --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyFine_1fb7ab() { + float3 arg_0 = (0.0f).xxx; + float3 res = ddy_fine(arg_0); +} + +void fragment_main() { + dpdyFine_1fb7ab(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ddec2103fb --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyFine_6eb673() { + float arg_0 = 1.0f; + float res = ddy_fine(arg_0); +} + +void fragment_main() { + dpdyFine_6eb673(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0384f5ce31 --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyFine_d0a648() { + float4 arg_0 = (0.0f).xxxx; + float4 res = ddy_fine(arg_0); +} + +void fragment_main() { + dpdyFine_d0a648(); + return; +} diff --git a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.hlsl b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d68bfb36df --- /dev/null +++ b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void dpdyFine_df33aa() { + float2 arg_0 = (0.0f).xx; + float2 res = ddy_fine(arg_0); +} + +void fragment_main() { + dpdyFine_df33aa(); + return; +} diff --git a/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c99c41ae17 --- /dev/null +++ b/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp_0f70eb() { + float4 arg_0 = (0.0f).xxxx; + float4 res = exp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_0f70eb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_0f70eb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_0f70eb(); + return; +} diff --git a/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b809cecfb5 --- /dev/null +++ b/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp_1951e7() { + float2 arg_0 = (0.0f).xx; + float2 res = exp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_1951e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_1951e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_1951e7(); + return; +} diff --git a/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..578cedb5ce --- /dev/null +++ b/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp_771fd2() { + float arg_0 = 1.0f; + float res = exp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_771fd2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_771fd2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_771fd2(); + return; +} diff --git a/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp/d98450.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp/d98450.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..090d2fc4df --- /dev/null +++ b/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp_d98450() { + float3 arg_0 = (0.0f).xxx; + float3 res = exp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp_d98450(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp_d98450(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp_d98450(); + return; +} diff --git a/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5265000f00 --- /dev/null +++ b/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp2_1f8680() { + float3 arg_0 = (0.0f).xxx; + float3 res = exp2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_1f8680(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_1f8680(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_1f8680(); + return; +} diff --git a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9223653db8 --- /dev/null +++ b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp2_a9d0a7() { + float4 arg_0 = (0.0f).xxxx; + float4 res = exp2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_a9d0a7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_a9d0a7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_a9d0a7(); + return; +} diff --git a/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..487bb0ac28 --- /dev/null +++ b/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp2_d6777c() { + float2 arg_0 = (0.0f).xx; + float2 res = exp2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_d6777c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_d6777c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_d6777c(); + return; +} diff --git a/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.hlsl b/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d276db9823 --- /dev/null +++ b/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void exp2_dea523() { + float arg_0 = 1.0f; + float res = exp2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + exp2_dea523(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + exp2_dea523(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + exp2_dea523(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bfd2b857b5 --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint3 tint_extract_bits(uint3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void extractBits_12b197() { + uint3 arg_0 = (0u).xxx; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint3 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_12b197(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_12b197(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_12b197(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd0e6fe47e --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int tint_extract_bits(int v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void extractBits_249874() { + int arg_0 = 1; + uint arg_1 = 1u; + uint arg_2 = 1u; + int res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_249874(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_249874(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_249874(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ee22caf24 --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint4 tint_extract_bits(uint4 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint4((shl).xxxx)) >> uint4((shr).xxxx)); +} + +void extractBits_631377() { + uint4 arg_0 = (0u).xxxx; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint4 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_631377(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_631377(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_631377(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4307614ad5 --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int2 tint_extract_bits(int2 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint2((shl).xx)) >> uint2((shr).xx)); +} + +void extractBits_a99a8d() { + int2 arg_0 = (0).xx; + uint arg_1 = 1u; + uint arg_2 = 1u; + int2 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_a99a8d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_a99a8d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_a99a8d(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..944fe861ff --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint tint_extract_bits(uint v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << shl) >> shr); +} + +void extractBits_ce81f8() { + uint arg_0 = 1u; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_ce81f8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_ce81f8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_ce81f8(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1cb606579 --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int3 tint_extract_bits(int3 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint3((shl).xxx)) >> uint3((shr).xxx)); +} + +void extractBits_e04f5d() { + int3 arg_0 = (0).xxx; + uint arg_1 = 1u; + uint arg_2 = 1u; + int3 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_e04f5d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_e04f5d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_e04f5d(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d5e4931bdc --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint2 tint_extract_bits(uint2 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint2((shl).xx)) >> uint2((shr).xx)); +} + +void extractBits_f28f69() { + uint2 arg_0 = (0u).xx; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint2 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_f28f69(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_f28f69(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_f28f69(); + return; +} diff --git a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6a538d2bd --- /dev/null +++ b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int4 tint_extract_bits(int4 v, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint shl = (32u - e); + const uint shr = (shl + s); + return ((v << uint4((shl).xxxx)) >> uint4((shr).xxxx)); +} + +void extractBits_fb850f() { + int4 arg_0 = (0).xxxx; + uint arg_1 = 1u; + uint arg_2 = 1u; + int4 res = tint_extract_bits(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + extractBits_fb850f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + extractBits_fb850f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + extractBits_fb850f(); + return; +} diff --git a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6983f1b580 --- /dev/null +++ b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void faceForward_5afbd5() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 arg_2 = (0.0f).xxx; + float3 res = faceforward(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_5afbd5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_5afbd5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_5afbd5(); + return; +} diff --git a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b11b1da97a --- /dev/null +++ b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void faceForward_b316e5() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 arg_2 = (0.0f).xxxx; + float4 res = faceforward(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_b316e5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_b316e5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_b316e5(); + return; +} diff --git a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f71b86e26 --- /dev/null +++ b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void faceForward_e6908b() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 arg_2 = (0.0f).xx; + float2 res = faceforward(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + faceForward_e6908b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + faceForward_e6908b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + faceForward_e6908b(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aa95d7190b --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint4 tint_first_leading_bit(uint4 v) { + uint4 x = v; + const uint4 b16 = (bool4((x & (4294901760u).xxxx)) ? (16u).xxxx : (0u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); + x = (x >> b2); + 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 arg_0 = (0u).xxxx; + uint4 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_000ff3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_000ff3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_000ff3(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f514b46a87 --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int3 tint_first_leading_bit(int3 v) { + 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 & (65280u).xxx)) ? (8u).xxx : (0u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); + x = (x >> b2); + 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 arg_0 = (0).xxx; + int3 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_35053e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_35053e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_35053e(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..626469192f --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint3 tint_first_leading_bit(uint3 v) { + uint3 x = v; + const uint3 b16 = (bool3((x & (4294901760u).xxx)) ? (16u).xxx : (0u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (65280u).xxx)) ? (8u).xxx : (0u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); + x = (x >> b2); + 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 arg_0 = (0u).xxx; + uint3 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_3fd7d0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_3fd7d0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_3fd7d0(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34f27f0b54 --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int tint_first_leading_bit(int v) { + uint x = ((v < 0) ? uint(~(v)) : uint(v)); + const uint b16 = (bool((x & 4294901760u)) ? 16u : 0u); + x = (x >> b16); + const uint b8 = (bool((x & 65280u)) ? 8u : 0u); + x = (x >> b8); + const uint b4 = (bool((x & 240u)) ? 4u : 0u); + x = (x >> b4); + const uint b2 = (bool((x & 12u)) ? 2u : 0u); + x = (x >> b2); + const uint b1 = (bool((x & 2u)) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstLeadingBit_57a1a3() { + int arg_0 = 1; + int res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_57a1a3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_57a1a3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_57a1a3(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa7b9cbeae --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint2 tint_first_leading_bit(uint2 v) { + uint2 x = v; + const uint2 b16 = (bool2((x & (4294901760u).xx)) ? (16u).xx : (0u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (65280u).xx)) ? (8u).xx : (0u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); + x = (x >> b2); + 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 arg_0 = (0u).xx; + uint2 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_6fe804(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_6fe804(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_6fe804(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d1da967a54 --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int2 tint_first_leading_bit(int2 v) { + 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 & (65280u).xx)) ? (8u).xx : (0u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); + x = (x >> b2); + 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 arg_0 = (0).xx; + int2 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_a622c2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_a622c2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_a622c2(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2103853bf4 --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int4 tint_first_leading_bit(int4 v) { + 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 & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); + x = (x >> b2); + 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 arg_0 = (0).xxxx; + int4 res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_c1f940(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_c1f940(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_c1f940(); + return; +} diff --git a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26c2ab932f --- /dev/null +++ b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint tint_first_leading_bit(uint v) { + uint x = v; + const uint b16 = (bool((x & 4294901760u)) ? 16u : 0u); + x = (x >> b16); + const uint b8 = (bool((x & 65280u)) ? 8u : 0u); + x = (x >> b8); + const uint b4 = (bool((x & 240u)) ? 4u : 0u); + x = (x >> b4); + const uint b2 = (bool((x & 12u)) ? 2u : 0u); + x = (x >> b2); + const uint b1 = (bool((x & 2u)) ? 1u : 0u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstLeadingBit_f0779d() { + uint arg_0 = 1u; + uint res = tint_first_leading_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstLeadingBit_f0779d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstLeadingBit_f0779d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstLeadingBit_f0779d(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ed6e500c31 --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint4 tint_first_trailing_bit(uint4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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 arg_0 = (0u).xxxx; + uint4 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_110f2c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_110f2c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_110f2c(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18cddbf55e --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int tint_first_trailing_bit(int v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return int((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstTrailingBit_3a2acc() { + int arg_0 = 1; + int res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_3a2acc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_3a2acc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_3a2acc(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8fe8a1552 --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint2 tint_first_trailing_bit(uint2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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 arg_0 = (0u).xx; + uint2 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_45eb10(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_45eb10(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_45eb10(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba3f283902 --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint tint_first_trailing_bit(uint v) { + uint x = uint(v); + const uint b16 = (bool((x & 65535u)) ? 0u : 16u); + x = (x >> b16); + const uint b8 = (bool((x & 255u)) ? 0u : 8u); + x = (x >> b8); + const uint b4 = (bool((x & 15u)) ? 0u : 4u); + x = (x >> b4); + const uint b2 = (bool((x & 3u)) ? 0u : 2u); + x = (x >> b2); + const uint b1 = (bool((x & 1u)) ? 0u : 1u); + const uint is_zero = ((x == 0u) ? 4294967295u : 0u); + return uint((((((b16 | b8) | b4) | b2) | b1) | is_zero)); +} + +void firstTrailingBit_47d475() { + uint arg_0 = 1u; + uint res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_47d475(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_47d475(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_47d475(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e0358e93e2 --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int2 tint_first_trailing_bit(int2 v) { + uint2 x = uint2(v); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); + x = (x >> b16); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); + x = (x >> b8); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); + x = (x >> b4); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); + x = (x >> b2); + 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 arg_0 = (0).xx; + int2 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_50c072(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_50c072(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_50c072(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcdf8e7ada --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int3 tint_first_trailing_bit(int3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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 arg_0 = (0).xxx; + int3 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_7496d6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_7496d6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_7496d6(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ea2a5fb98d --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +int4 tint_first_trailing_bit(int4 v) { + uint4 x = uint4(v); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); + x = (x >> b16); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); + x = (x >> b8); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); + x = (x >> b4); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); + x = (x >> b2); + 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 arg_0 = (0).xxxx; + int4 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_86551b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_86551b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_86551b(); + return; +} diff --git a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..747300c9fc --- /dev/null +++ b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,46 @@ +uint3 tint_first_trailing_bit(uint3 v) { + uint3 x = uint3(v); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); + x = (x >> b16); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); + x = (x >> b8); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); + x = (x >> b4); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); + x = (x >> b2); + 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 arg_0 = (0u).xxx; + uint3 res = tint_first_trailing_bit(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + firstTrailingBit_cb51ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + firstTrailingBit_cb51ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + firstTrailingBit_cb51ce(); + return; +} diff --git a/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18d11a34b2 --- /dev/null +++ b/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void floor_3bccc4() { + float4 arg_0 = (0.0f).xxxx; + float4 res = floor(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_3bccc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_3bccc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_3bccc4(); + return; +} diff --git a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.hlsl b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..74dd9c53d3 --- /dev/null +++ b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void floor_5fc9ac() { + float2 arg_0 = (0.0f).xx; + float2 res = floor(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_5fc9ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_5fc9ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_5fc9ac(); + return; +} diff --git a/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.hlsl b/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7659782421 --- /dev/null +++ b/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void floor_60d7ea() { + float3 arg_0 = (0.0f).xxx; + float3 res = floor(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_60d7ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_60d7ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_60d7ea(); + return; +} diff --git a/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.hlsl b/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/floor/66f154.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/floor/66f154.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43aecf810f --- /dev/null +++ b/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void floor_66f154() { + float arg_0 = 1.0f; + float res = floor(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + floor_66f154(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + floor_66f154(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + floor_66f154(); + return; +} diff --git a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b8a1465814 --- /dev/null +++ b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void fma_26a7a9() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 arg_2 = (0.0f).xx; + float2 res = mad(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_26a7a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_26a7a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_26a7a9(); + return; +} diff --git a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8786af1a0a --- /dev/null +++ b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void fma_6a3283() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 arg_2 = (0.0f).xxxx; + float4 res = mad(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_6a3283(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_6a3283(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_6a3283(); + return; +} diff --git a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c4b6a2d3f --- /dev/null +++ b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void fma_c10ba3() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float arg_2 = 1.0f; + float res = mad(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_c10ba3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_c10ba3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_c10ba3(); + return; +} diff --git a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e4d025bd7 --- /dev/null +++ b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void fma_e17c5c() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 arg_2 = (0.0f).xxx; + float3 res = mad(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fma_e17c5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fma_e17c5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fma_e17c5c(); + return; +} diff --git a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc5fa7c5d5 --- /dev/null +++ b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void fract_8bc1e9() { + float4 arg_0 = (0.0f).xxxx; + float4 res = frac(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_8bc1e9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_8bc1e9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_8bc1e9(); + return; +} diff --git a/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38f6505413 --- /dev/null +++ b/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void fract_943cb1() { + float2 arg_0 = (0.0f).xx; + float2 res = frac(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_943cb1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_943cb1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_943cb1(); + return; +} diff --git a/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fract/a49758.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fract/a49758.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1efd8ae7cb --- /dev/null +++ b/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void fract_a49758() { + float3 arg_0 = (0.0f).xxx; + float3 res = frac(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_a49758(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_a49758(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_a49758(); + return; +} diff --git a/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c24fc77101 --- /dev/null +++ b/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void fract_fa5c71() { + float arg_0 = 1.0f; + float res = frac(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + fract_fa5c71(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + fract_fa5c71(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + fract_fa5c71(); + return; +} diff --git a/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.hlsl b/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/frexp/368997.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/frexp/368997.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59aa53adf7 --- /dev/null +++ b/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct frexp_result_vec3 { + float3 sig; + int3 exp; +}; +frexp_result_vec3 tint_frexp(float3 param_0) { + float3 exp; + float3 sig = frexp(param_0, exp); + frexp_result_vec3 result = {sig, int3(exp)}; + return result; +} + +void frexp_368997() { + float3 arg_0 = (0.0f).xxx; + frexp_result_vec3 res = tint_frexp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_368997(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_368997(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_368997(); + return; +} diff --git a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.hlsl b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7997378e87 --- /dev/null +++ b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct frexp_result_vec4 { + float4 sig; + int4 exp; +}; +frexp_result_vec4 tint_frexp(float4 param_0) { + float4 exp; + float4 sig = frexp(param_0, exp); + frexp_result_vec4 result = {sig, int4(exp)}; + return result; +} + +void frexp_3c4f48() { + float4 arg_0 = (0.0f).xxxx; + frexp_result_vec4 res = tint_frexp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_3c4f48(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_3c4f48(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_3c4f48(); + return; +} diff --git a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f47aba8e6e --- /dev/null +++ b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct frexp_result_vec2 { + float2 sig; + int2 exp; +}; +frexp_result_vec2 tint_frexp(float2 param_0) { + float2 exp; + float2 sig = frexp(param_0, exp); + frexp_result_vec2 result = {sig, int2(exp)}; + return result; +} + +void frexp_4bdfc7() { + float2 arg_0 = (0.0f).xx; + frexp_result_vec2 res = tint_frexp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_4bdfc7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_4bdfc7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_4bdfc7(); + return; +} diff --git a/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.hlsl b/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a3e419530b --- /dev/null +++ b/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct frexp_result { + float sig; + int exp; +}; +frexp_result tint_frexp(float param_0) { + float exp; + float sig = frexp(param_0, exp); + frexp_result result = {sig, int(exp)}; + return result; +} + +void frexp_eabd40() { + float arg_0 = 1.0f; + frexp_result res = tint_frexp(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + frexp_eabd40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + frexp_eabd40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + frexp_eabd40(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6e992c3091 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidth_5d1b39() { + float3 arg_0 = (0.0f).xxx; + float3 res = fwidth(arg_0); +} + +void fragment_main() { + fwidth_5d1b39(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7452af760c --- /dev/null +++ b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidth_b83ebb() { + float2 arg_0 = (0.0f).xx; + float2 res = fwidth(arg_0); +} + +void fragment_main() { + fwidth_b83ebb(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b21ef9ff1 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidth_d2ab9a() { + float4 arg_0 = (0.0f).xxxx; + float4 res = fwidth(arg_0); +} + +void fragment_main() { + fwidth_d2ab9a(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8c0b254c76 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidth_df38ef() { + float arg_0 = 1.0f; + float res = fwidth(arg_0); +} + +void fragment_main() { + fwidth_df38ef(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..37bbb25ea1 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthCoarse_159c8a() { + float arg_0 = 1.0f; + float res = fwidth(arg_0); +} + +void fragment_main() { + fwidthCoarse_159c8a(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..881032666e --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthCoarse_1e59d9() { + float3 arg_0 = (0.0f).xxx; + float3 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthCoarse_1e59d9(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f010dac4b9 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthCoarse_4e4fc4() { + float4 arg_0 = (0.0f).xxxx; + float4 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthCoarse_4e4fc4(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e4fdde674e --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthCoarse_e653f7() { + float2 arg_0 = (0.0f).xx; + float2 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthCoarse_e653f7(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..48a6f0a607 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthFine_523fdc() { + float3 arg_0 = (0.0f).xxx; + float3 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthFine_523fdc(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..99d0ae4509 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthFine_68f4ef() { + float4 arg_0 = (0.0f).xxxx; + float4 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthFine_68f4ef(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e2b50b96f --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthFine_f1742d() { + float arg_0 = 1.0f; + float res = fwidth(arg_0); +} + +void fragment_main() { + fwidthFine_f1742d(); + return; +} diff --git a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ac7b17e10 --- /dev/null +++ b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void fwidthFine_ff6aa0() { + float2 arg_0 = (0.0f).xx; + float2 res = fwidth(arg_0); +} + +void fragment_main() { + fwidthFine_ff6aa0(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..027a68f46e --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint2 tint_insert_bits(uint2 v, uint2 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint2((s).xx)) & uint2((mask).xx)) | (v & uint2((~(mask)).xx))); +} + +void insertBits_3c7ba5() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + uint arg_2 = 1u; + uint arg_3 = 1u; + uint2 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_3c7ba5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_3c7ba5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_3c7ba5(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20225c7eb3 --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & int3((int(mask)).xxx)) | (v & int3((int(~(mask))).xxx))); +} + +void insertBits_428b0b() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + uint arg_2 = 1u; + uint arg_3 = 1u; + int3 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_428b0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_428b0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_428b0b(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d4a9778375 --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint4 tint_insert_bits(uint4 v, uint4 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint4((s).xxxx)) & uint4((mask).xxxx)) | (v & uint4((~(mask)).xxxx))); +} + +void insertBits_51ede1() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + uint arg_2 = 1u; + uint arg_3 = 1u; + uint4 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_51ede1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_51ede1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_51ede1(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f87cc19c6b --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int tint_insert_bits(int v, int n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & int(mask)) | (v & int(~(mask)))); +} + +void insertBits_65468b() { + int arg_0 = 1; + int arg_1 = 1; + uint arg_2 = 1u; + uint arg_3 = 1u; + int res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_65468b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_65468b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_65468b(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c7b4134186 --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & uint3((mask).xxx)) | (v & uint3((~(mask)).xxx))); +} + +void insertBits_87826b() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + uint arg_2 = 1u; + uint arg_3 = 1u; + uint3 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_87826b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_87826b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_87826b(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a6689bba5f --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int4 tint_insert_bits(int4 v, int4 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint4((s).xxxx)) & int4((int(mask)).xxxx)) | (v & int4((int(~(mask))).xxxx))); +} + +void insertBits_d86978() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + uint arg_2 = 1u; + uint arg_3 = 1u; + int4 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_d86978(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_d86978(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_d86978(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cfbbeee243 --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +uint tint_insert_bits(uint v, uint n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & mask) | (v & ~(mask))); +} + +void insertBits_e3e3a2() { + uint arg_0 = 1u; + uint arg_1 = 1u; + uint arg_2 = 1u; + uint arg_3 = 1u; + uint res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_e3e3a2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_e3e3a2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_e3e3a2(); + return; +} diff --git a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c00768bf1a --- /dev/null +++ b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +int2 tint_insert_bits(int2 v, int2 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint2((s).xx)) & int2((int(mask)).xx)) | (v & int2((int(~(mask))).xx))); +} + +void insertBits_fe6ba6() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + uint arg_2 = 1u; + uint arg_3 = 1u; + int2 res = tint_insert_bits(arg_0, arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + insertBits_fe6ba6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + insertBits_fe6ba6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + insertBits_fe6ba6(); + return; +} diff --git a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..97c63e575d --- /dev/null +++ b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void inverseSqrt_84407e() { + float arg_0 = 1.0f; + float res = rsqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_84407e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_84407e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_84407e(); + return; +} diff --git a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88d14d465f --- /dev/null +++ b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void inverseSqrt_8f2bd2() { + float2 arg_0 = (0.0f).xx; + float2 res = rsqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_8f2bd2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_8f2bd2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_8f2bd2(); + return; +} diff --git a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eeeabc5aad --- /dev/null +++ b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void inverseSqrt_b197b1() { + float3 arg_0 = (0.0f).xxx; + float3 res = rsqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_b197b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_b197b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_b197b1(); + return; +} diff --git a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.hlsl b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..70323e614b --- /dev/null +++ b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void inverseSqrt_c22347() { + float4 arg_0 = (0.0f).xxxx; + float4 res = rsqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + inverseSqrt_c22347(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + inverseSqrt_c22347(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + inverseSqrt_c22347(); + return; +} diff --git a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..206b643af7 --- /dev/null +++ b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void ldexp_a31cdc() { + float3 arg_0 = (0.0f).xxx; + int3 arg_1 = (0).xxx; + float3 res = ldexp(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_a31cdc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_a31cdc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_a31cdc(); + return; +} diff --git a/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5399f52369 --- /dev/null +++ b/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void ldexp_abd718() { + float2 arg_0 = (0.0f).xx; + int2 arg_1 = (0).xx; + float2 res = ldexp(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_abd718(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_abd718(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_abd718(); + return; +} diff --git a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f92216397d --- /dev/null +++ b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void ldexp_cc9cde() { + float4 arg_0 = (0.0f).xxxx; + int4 arg_1 = (0).xxxx; + float4 res = ldexp(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_cc9cde(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_cc9cde(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_cc9cde(); + return; +} diff --git a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.hlsl b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f6253185a --- /dev/null +++ b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void ldexp_db8b49() { + float arg_0 = 1.0f; + int arg_1 = 1; + float res = ldexp(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + ldexp_db8b49(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + ldexp_db8b49(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + ldexp_db8b49(); + return; +} diff --git a/test/tint/builtins/gen/var/length/056071.wgsl.expected.hlsl b/test/tint/builtins/gen/var/length/056071.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/length/056071.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/length/056071.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/length/056071.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/056071.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd540fbe8b --- /dev/null +++ b/test/tint/builtins/gen/var/length/056071.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void length_056071() { + float3 arg_0 = (0.0f).xxx; + float res = length(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_056071(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_056071(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_056071(); + return; +} diff --git a/test/tint/builtins/gen/var/length/602a17.wgsl.expected.hlsl b/test/tint/builtins/gen/var/length/602a17.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/length/602a17.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/length/602a17.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/length/602a17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/602a17.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5f4310e82c --- /dev/null +++ b/test/tint/builtins/gen/var/length/602a17.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void length_602a17() { + float arg_0 = 1.0f; + float res = length(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_602a17(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_602a17(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_602a17(); + return; +} diff --git a/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/length/afde8b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/length/afde8b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1ca92a377 --- /dev/null +++ b/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void length_afde8b() { + float2 arg_0 = (0.0f).xx; + float res = length(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_afde8b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_afde8b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_afde8b(); + return; +} diff --git a/test/tint/builtins/gen/var/length/becebf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/length/becebf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/length/becebf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/length/becebf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/length/becebf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/becebf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7760dd8e9 --- /dev/null +++ b/test/tint/builtins/gen/var/length/becebf.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void length_becebf() { + float4 arg_0 = (0.0f).xxxx; + float res = length(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + length_becebf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + length_becebf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + length_becebf(); + return; +} diff --git a/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log/3da25a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log/3da25a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59f09490ce --- /dev/null +++ b/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log_3da25a() { + float4 arg_0 = (0.0f).xxxx; + float4 res = log(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_3da25a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_3da25a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_3da25a(); + return; +} diff --git a/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log/7114a6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log/7114a6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c908d84b77 --- /dev/null +++ b/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log_7114a6() { + float arg_0 = 1.0f; + float res = log(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_7114a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_7114a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_7114a6(); + return; +} diff --git a/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26a04acde1 --- /dev/null +++ b/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log_b2ce28() { + float2 arg_0 = (0.0f).xx; + float2 res = log(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_b2ce28(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_b2ce28(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_b2ce28(); + return; +} diff --git a/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log/f4c570.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log/f4c570.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..27514fe9fa --- /dev/null +++ b/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log_f4c570() { + float3 arg_0 = (0.0f).xxx; + float3 res = log(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log_f4c570(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log_f4c570(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log_f4c570(); + return; +} diff --git a/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bc9a7c4e4e --- /dev/null +++ b/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log2_4036ed() { + float arg_0 = 1.0f; + float res = log2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_4036ed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_4036ed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_4036ed(); + return; +} diff --git a/test/tint/builtins/gen/var/log2/902988.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log2/902988.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log2/902988.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log2/902988.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log2/902988.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/902988.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4564a3262 --- /dev/null +++ b/test/tint/builtins/gen/var/log2/902988.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log2_902988() { + float4 arg_0 = (0.0f).xxxx; + float4 res = log2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_902988(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_902988(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_902988(); + return; +} diff --git a/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log2/adb233.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log2/adb233.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16c4b43836 --- /dev/null +++ b/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log2_adb233() { + float3 arg_0 = (0.0f).xxx; + float3 res = log2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_adb233(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_adb233(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_adb233(); + return; +} diff --git a/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.hlsl b/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/log2/aea659.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/log2/aea659.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e24f82a0e1 --- /dev/null +++ b/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void log2_aea659() { + float2 arg_0 = (0.0f).xx; + float2 res = log2(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + log2_aea659(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + log2_aea659(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + log2_aea659(); + return; +} diff --git a/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7e8dce313 --- /dev/null +++ b/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_0c0aae() { + uint arg_0 = 1u; + uint arg_1 = 1u; + uint res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_0c0aae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_0c0aae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_0c0aae(); + return; +} diff --git a/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/25eafe.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/25eafe.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..77cc993b1f --- /dev/null +++ b/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_25eafe() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + int3 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_25eafe(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_25eafe(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_25eafe(); + return; +} diff --git a/test/tint/builtins/gen/var/max/320815.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/320815.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/320815.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/320815.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/320815.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/320815.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c863bd2fc2 --- /dev/null +++ b/test/tint/builtins/gen/var/max/320815.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_320815() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + uint2 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_320815(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_320815(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_320815(); + return; +} diff --git a/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/44a39d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/44a39d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4435435f63 --- /dev/null +++ b/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_44a39d() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_44a39d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_44a39d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_44a39d(); + return; +} diff --git a/test/tint/builtins/gen/var/max/453e04.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/453e04.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/453e04.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/453e04.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/453e04.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/453e04.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d8122882e4 --- /dev/null +++ b/test/tint/builtins/gen/var/max/453e04.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_453e04() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + uint4 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_453e04(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_453e04(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_453e04(); + return; +} diff --git a/test/tint/builtins/gen/var/max/462050.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/462050.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/462050.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/462050.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/462050.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/462050.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..132a4b2ce4 --- /dev/null +++ b/test/tint/builtins/gen/var/max/462050.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_462050() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_462050(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_462050(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_462050(); + return; +} diff --git a/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/4883ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/4883ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8c577a935e --- /dev/null +++ b/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_4883ac() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_4883ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_4883ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_4883ac(); + return; +} diff --git a/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..403878646e --- /dev/null +++ b/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_85e6bc() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + int4 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_85e6bc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_85e6bc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_85e6bc(); + return; +} diff --git a/test/tint/builtins/gen/var/max/a93419.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/a93419.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/a93419.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/a93419.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/a93419.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/a93419.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6997426f1c --- /dev/null +++ b/test/tint/builtins/gen/var/max/a93419.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_a93419() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_a93419(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_a93419(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_a93419(); + return; +} diff --git a/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..58925abcbc --- /dev/null +++ b/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_b1b73a() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + uint3 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_b1b73a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_b1b73a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_b1b73a(); + return; +} diff --git a/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..532d8ac2b6 --- /dev/null +++ b/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_ce7c30() { + int arg_0 = 1; + int arg_1 = 1; + int res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_ce7c30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_ce7c30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_ce7c30(); + return; +} diff --git a/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/max/e8192f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/max/e8192f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aced4a2944 --- /dev/null +++ b/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void max_e8192f() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + int2 res = max(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + max_e8192f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + max_e8192f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + max_e8192f(); + return; +} diff --git a/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af0f2479a8 --- /dev/null +++ b/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_03c7e3() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + int2 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_03c7e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_03c7e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_03c7e3(); + return; +} diff --git a/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/0dc614.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/0dc614.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57486febcd --- /dev/null +++ b/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_0dc614() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + uint4 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_0dc614(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_0dc614(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_0dc614(); + return; +} diff --git a/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/3941e1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/3941e1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d071ce7601 --- /dev/null +++ b/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_3941e1() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + int4 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_3941e1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_3941e1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_3941e1(); + return; +} diff --git a/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..68dfb8ecc4 --- /dev/null +++ b/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_46c5d3() { + uint arg_0 = 1u; + uint arg_1 = 1u; + uint res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_46c5d3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_46c5d3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_46c5d3(); + return; +} diff --git a/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/82b28f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/82b28f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1f5804465 --- /dev/null +++ b/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_82b28f() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + uint2 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_82b28f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_82b28f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_82b28f(); + return; +} diff --git a/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..12c56fa61e --- /dev/null +++ b/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_93cfc4() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_93cfc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_93cfc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_93cfc4(); + return; +} diff --git a/test/tint/builtins/gen/var/min/a45171.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/a45171.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/a45171.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/a45171.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/a45171.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/a45171.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e2b89ba2c --- /dev/null +++ b/test/tint/builtins/gen/var/min/a45171.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_a45171() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + int3 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_a45171(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_a45171(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_a45171(); + return; +} diff --git a/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1284c64fee --- /dev/null +++ b/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_aa28ad() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_aa28ad(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_aa28ad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_aa28ad(); + return; +} diff --git a/test/tint/builtins/gen/var/min/af326d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/af326d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/af326d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/af326d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/af326d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/af326d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ea481e531a --- /dev/null +++ b/test/tint/builtins/gen/var/min/af326d.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_af326d() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_af326d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_af326d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_af326d(); + return; +} diff --git a/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b5e461e9ad --- /dev/null +++ b/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_c70bb7() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + uint3 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c70bb7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c70bb7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c70bb7(); + return; +} diff --git a/test/tint/builtins/gen/var/min/c73147.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/c73147.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/c73147.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/c73147.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/c73147.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/c73147.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a50a55d1e8 --- /dev/null +++ b/test/tint/builtins/gen/var/min/c73147.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_c73147() { + int arg_0 = 1; + int arg_1 = 1; + int res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c73147(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c73147(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c73147(); + return; +} diff --git a/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c29c09d1ee --- /dev/null +++ b/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void min_c76fa6() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = min(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + min_c76fa6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + min_c76fa6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + min_c76fa6(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ff0238b6a6 --- /dev/null +++ b/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_0c8c33() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 arg_2 = (0.0f).xxx; + float3 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_0c8c33(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_0c8c33(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_0c8c33(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8be22c588e --- /dev/null +++ b/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_1faeb1() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float arg_2 = 1.0f; + float4 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_1faeb1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_1faeb1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_1faeb1(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ae442e03a5 --- /dev/null +++ b/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_2fadab() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float arg_2 = 1.0f; + float2 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_2fadab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_2fadab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_2fadab(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/315264.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/315264.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/315264.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/315264.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/315264.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/315264.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d9674f4a1e --- /dev/null +++ b/test/tint/builtins/gen/var/mix/315264.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_315264() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float arg_2 = 1.0f; + float3 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_315264(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_315264(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_315264(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ddc02b2d0 --- /dev/null +++ b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_4f0b5e() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float arg_2 = 1.0f; + float res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_4f0b5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_4f0b5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_4f0b5e(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cdfac7bc76 --- /dev/null +++ b/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_6f8adc() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 arg_2 = (0.0f).xx; + float2 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_6f8adc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_6f8adc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_6f8adc(); + return; +} diff --git a/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.hlsl b/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ec722c26e --- /dev/null +++ b/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void mix_c37ede() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 arg_2 = (0.0f).xxxx; + float4 res = lerp(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + mix_c37ede(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + mix_c37ede(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + mix_c37ede(); + return; +} diff --git a/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.hlsl b/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/modf/180fed.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/modf/180fed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9e7075214a --- /dev/null +++ b/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct modf_result { + float fract; + float whole; +}; +modf_result tint_modf(float param_0) { + float whole; + float fract = modf(param_0, whole); + modf_result result = {fract, whole}; + return result; +} + +void modf_180fed() { + float arg_0 = 1.0f; + modf_result res = tint_modf(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_180fed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_180fed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_180fed(); + return; +} diff --git a/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4eacd2ce9e --- /dev/null +++ b/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct modf_result_vec3 { + float3 fract; + float3 whole; +}; +modf_result_vec3 tint_modf(float3 param_0) { + float3 whole; + float3 fract = modf(param_0, whole); + modf_result_vec3 result = {fract, whole}; + return result; +} + +void modf_9b75f7() { + float3 arg_0 = (0.0f).xxx; + modf_result_vec3 res = tint_modf(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_9b75f7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_9b75f7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_9b75f7(); + return; +} diff --git a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa4c2033cc --- /dev/null +++ b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct modf_result_vec4 { + float4 fract; + float4 whole; +}; +modf_result_vec4 tint_modf(float4 param_0) { + float4 whole; + float4 fract = modf(param_0, whole); + modf_result_vec4 result = {fract, whole}; + return result; +} + +void modf_ec2dbc() { + float4 arg_0 = (0.0f).xxxx; + modf_result_vec4 res = tint_modf(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_ec2dbc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_ec2dbc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_ec2dbc(); + return; +} diff --git a/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0827e24ed2 --- /dev/null +++ b/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct modf_result_vec2 { + float2 fract; + float2 whole; +}; +modf_result_vec2 tint_modf(float2 param_0) { + float2 whole; + float2 fract = modf(param_0, whole); + modf_result_vec2 result = {fract, whole}; + return result; +} + +void modf_f5f20d() { + float2 arg_0 = (0.0f).xx; + modf_result_vec2 res = tint_modf(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + modf_f5f20d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + modf_f5f20d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + modf_f5f20d(); + return; +} diff --git a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..973bdd54a3 --- /dev/null +++ b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void normalize_64d8c0() { + float3 arg_0 = (0.0f).xxx; + float3 res = normalize(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_64d8c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_64d8c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_64d8c0(); + return; +} diff --git a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.hlsl b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..080baf1fbb --- /dev/null +++ b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void normalize_9a0aab() { + float4 arg_0 = (0.0f).xxxx; + float4 res = normalize(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_9a0aab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_9a0aab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_9a0aab(); + return; +} diff --git a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ec72e1818 --- /dev/null +++ b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void normalize_fc2ef1() { + float2 arg_0 = (0.0f).xx; + float2 res = normalize(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + normalize_fc2ef1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + normalize_fc2ef1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + normalize_fc2ef1(); + return; +} diff --git a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..649e6f1da2 --- /dev/null +++ b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +uint tint_pack2x16float(float2 param_0) { + uint2 i = f32tof16(param_0); + return i.x | (i.y << 16); +} + +void pack2x16float_0e97b3() { + float2 arg_0 = (0.0f).xx; + uint res = tint_pack2x16float(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16float_0e97b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16float_0e97b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16float_0e97b3(); + return; +} diff --git a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9a6e51087 --- /dev/null +++ b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +uint tint_pack2x16snorm(float2 param_0) { + int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff; + return asuint(i.x | i.y << 16); +} + +void pack2x16snorm_6c169b() { + float2 arg_0 = (0.0f).xx; + uint res = tint_pack2x16snorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16snorm_6c169b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16snorm_6c169b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16snorm_6c169b(); + return; +} diff --git a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3f37f6abc9 --- /dev/null +++ b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +uint tint_pack2x16unorm(float2 param_0) { + uint2 i = uint2(round(clamp(param_0, 0.0, 1.0) * 65535.0)); + return (i.x | i.y << 16); +} + +void pack2x16unorm_0f08e4() { + float2 arg_0 = (0.0f).xx; + uint res = tint_pack2x16unorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack2x16unorm_0f08e4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack2x16unorm_0f08e4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack2x16unorm_0f08e4(); + return; +} diff --git a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bdf414bfc2 --- /dev/null +++ b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +uint tint_pack4x8snorm(float4 param_0) { + int4 i = int4(round(clamp(param_0, -1.0, 1.0) * 127.0)) & 0xff; + return asuint(i.x | i.y << 8 | i.z << 16 | i.w << 24); +} + +void pack4x8snorm_4d22e7() { + float4 arg_0 = (0.0f).xxxx; + uint res = tint_pack4x8snorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack4x8snorm_4d22e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack4x8snorm_4d22e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack4x8snorm_4d22e7(); + return; +} diff --git a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80d63c98d0 --- /dev/null +++ b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +uint tint_pack4x8unorm(float4 param_0) { + uint4 i = uint4(round(clamp(param_0, 0.0, 1.0) * 255.0)); + return (i.x | i.y << 8 | i.z << 16 | i.w << 24); +} + +void pack4x8unorm_95c456() { + float4 arg_0 = (0.0f).xxxx; + uint res = tint_pack4x8unorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pack4x8unorm_95c456(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pack4x8unorm_95c456(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pack4x8unorm_95c456(); + return; +} diff --git a/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pow/04a908.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pow/04a908.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1b851b8caa --- /dev/null +++ b/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void pow_04a908() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = pow(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_04a908(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_04a908(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_04a908(); + return; +} diff --git a/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pow/46e029.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pow/46e029.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..82b73ac2f3 --- /dev/null +++ b/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void pow_46e029() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = pow(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_46e029(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_46e029(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_46e029(); + return; +} diff --git a/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..627b2e00fe --- /dev/null +++ b/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void pow_4a46c9() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = pow(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_4a46c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_4a46c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_4a46c9(); + return; +} diff --git a/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..696617b479 --- /dev/null +++ b/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void pow_e60ea5() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = pow(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + pow_e60ea5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + pow_e60ea5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + pow_e60ea5(); + return; +} diff --git a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f9b37da10 --- /dev/null +++ b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float4 tint_radians(float4 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_09b7fc() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tint_radians(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_09b7fc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_09b7fc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_09b7fc(); + return; +} diff --git a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/radians/61687a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/radians/61687a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c128af580 --- /dev/null +++ b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float2 tint_radians(float2 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_61687a() { + float2 arg_0 = (0.0f).xx; + float2 res = tint_radians(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_61687a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_61687a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_61687a(); + return; +} diff --git a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e10a17da63 --- /dev/null +++ b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float tint_radians(float param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_6b0ff2() { + float arg_0 = 1.0f; + float res = tint_radians(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_6b0ff2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_6b0ff2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_6b0ff2(); + return; +} diff --git a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.hlsl b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/radians/f96258.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/radians/f96258.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..352a0b1669 --- /dev/null +++ b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +float3 tint_radians(float3 param_0) { + return param_0 * 0.017453292519943295474; +} + +void radians_f96258() { + float3 arg_0 = (0.0f).xxx; + float3 res = tint_radians(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + radians_f96258(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + radians_f96258(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + radians_f96258(); + return; +} diff --git a/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28d8c4e322 --- /dev/null +++ b/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void reflect_05357e() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = reflect(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_05357e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_05357e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_05357e(); + return; +} diff --git a/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c653e766a0 --- /dev/null +++ b/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void reflect_b61e10() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = reflect(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_b61e10(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_b61e10(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_b61e10(); + return; +} diff --git a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf902cd453 --- /dev/null +++ b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void reflect_f47fdb() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = reflect(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reflect_f47fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reflect_f47fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reflect_f47fdb(); + return; +} diff --git a/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..87895aece3 --- /dev/null +++ b/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void refract_7e02e6() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float arg_2 = 1.0f; + float4 res = refract(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_7e02e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_7e02e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_7e02e6(); + return; +} diff --git a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf241e068d --- /dev/null +++ b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void refract_cbc1d2() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float arg_2 = 1.0f; + float3 res = refract(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_cbc1d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_cbc1d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_cbc1d2(); + return; +} diff --git a/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c5ef8a7aa --- /dev/null +++ b/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void refract_cd905f() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float arg_2 = 1.0f; + float2 res = refract(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + refract_cd905f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + refract_cd905f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + refract_cd905f(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e6556ff63 --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_222177() { + int2 arg_0 = (0).xx; + int2 res = asint(reversebits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_222177(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_222177(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_222177(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cfe947703f --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_35fea9() { + uint4 arg_0 = (0u).xxxx; + uint4 res = reversebits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_35fea9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_35fea9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_35fea9(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e89294502d --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_4dbd6f() { + int4 arg_0 = (0).xxxx; + int4 res = asint(reversebits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_4dbd6f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_4dbd6f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_4dbd6f(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3ab61c5c3 --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_7c4269() { + int arg_0 = 1; + int res = asint(reversebits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_7c4269(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_7c4269(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_7c4269(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7592e9c39b --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_a6ccd4() { + uint3 arg_0 = (0u).xxx; + uint3 res = reversebits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_a6ccd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_a6ccd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_a6ccd4(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1676f541f5 --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_c21bc1() { + int3 arg_0 = (0).xxx; + int3 res = asint(reversebits(asuint(arg_0))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_c21bc1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_c21bc1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_c21bc1(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d4ce3f279 --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_e1f4c1() { + uint2 arg_0 = (0u).xx; + uint2 res = reversebits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_e1f4c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_e1f4c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_e1f4c1(); + return; +} diff --git a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..357463196d --- /dev/null +++ b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void reverseBits_e31adf() { + uint arg_0 = 1u; + uint res = reversebits(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + reverseBits_e31adf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + reverseBits_e31adf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + reverseBits_e31adf(); + return; +} diff --git a/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/round/106c0b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/round/106c0b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01f6555b8a --- /dev/null +++ b/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void round_106c0b() { + float4 arg_0 = (0.0f).xxxx; + float4 res = round(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_106c0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_106c0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_106c0b(); + return; +} diff --git a/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.hlsl b/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/round/1c7897.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/round/1c7897.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bcc74fd261 --- /dev/null +++ b/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void round_1c7897() { + float3 arg_0 = (0.0f).xxx; + float3 res = round(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_1c7897(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_1c7897(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_1c7897(); + return; +} diff --git a/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/round/52c84d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/round/52c84d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..48b5930c0f --- /dev/null +++ b/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void round_52c84d() { + float2 arg_0 = (0.0f).xx; + float2 res = round(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_52c84d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_52c84d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_52c84d(); + return; +} diff --git a/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.hlsl b/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/round/9edc38.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/round/9edc38.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f68cfd024f --- /dev/null +++ b/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void round_9edc38() { + float arg_0 = 1.0f; + float res = round(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + round_9edc38(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + round_9edc38(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + round_9edc38(); + return; +} diff --git a/test/tint/builtins/gen/var/select/00b848.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/00b848.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/00b848.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/00b848.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/00b848.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/00b848.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2142a74f2 --- /dev/null +++ b/test/tint/builtins/gen/var/select/00b848.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_00b848() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + bool2 arg_2 = (false).xx; + int2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_00b848(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_00b848(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_00b848(); + return; +} diff --git a/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..633a71105c --- /dev/null +++ b/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_01e2cd() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + bool3 arg_2 = (false).xxx; + int3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_01e2cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_01e2cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_01e2cd(); + return; +} diff --git a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/087ea4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/087ea4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d7f59159c3 --- /dev/null +++ b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_087ea4() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + bool arg_2 = false; + uint4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_087ea4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_087ea4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_087ea4(); + return; +} diff --git a/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/1e960b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/1e960b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..96128cc432 --- /dev/null +++ b/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_1e960b() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + bool2 arg_2 = (false).xx; + uint2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_1e960b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_1e960b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_1e960b(); + return; +} diff --git a/test/tint/builtins/gen/var/select/266aff.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/266aff.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/266aff.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/266aff.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/266aff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/266aff.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1615eb0b40 --- /dev/null +++ b/test/tint/builtins/gen/var/select/266aff.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_266aff() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + bool2 arg_2 = (false).xx; + float2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_266aff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_266aff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_266aff(); + return; +} diff --git a/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/28a27e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/28a27e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9528d884fb --- /dev/null +++ b/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_28a27e() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + bool3 arg_2 = (false).xxx; + uint3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_28a27e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_28a27e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_28a27e(); + return; +} diff --git a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60e232d3d0 --- /dev/null +++ b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_3c25ce() { + bool3 arg_0 = (false).xxx; + bool3 arg_1 = (false).xxx; + bool arg_2 = false; + bool3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_3c25ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_3c25ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_3c25ce(); + return; +} diff --git a/test/tint/builtins/gen/var/select/416e14.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/416e14.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/416e14.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/416e14.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/416e14.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/416e14.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a55bde8425 --- /dev/null +++ b/test/tint/builtins/gen/var/select/416e14.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_416e14() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + bool arg_2 = false; + float res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_416e14(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_416e14(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_416e14(); + return; +} diff --git a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/51b047.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/51b047.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09f6e9eb33 --- /dev/null +++ b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_51b047() { + uint2 arg_0 = (0u).xx; + uint2 arg_1 = (0u).xx; + bool arg_2 = false; + uint2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_51b047(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_51b047(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_51b047(); + return; +} diff --git a/test/tint/builtins/gen/var/select/713567.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/713567.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/713567.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/713567.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/713567.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/713567.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..52e530540b --- /dev/null +++ b/test/tint/builtins/gen/var/select/713567.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_713567() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + bool arg_2 = false; + float4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_713567(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_713567(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_713567(); + return; +} diff --git a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/78be5f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/78be5f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3bf8eb476 --- /dev/null +++ b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_78be5f() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + bool arg_2 = false; + float3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_78be5f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_78be5f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_78be5f(); + return; +} diff --git a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b9c340cdd5 --- /dev/null +++ b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_80a9a9() { + bool3 arg_0 = (false).xxx; + bool3 arg_1 = (false).xxx; + bool3 arg_2 = (false).xxx; + bool3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_80a9a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_80a9a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_80a9a9(); + return; +} diff --git a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ea69af14b --- /dev/null +++ b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_8fa62c() { + int3 arg_0 = (0).xxx; + int3 arg_1 = (0).xxx; + bool arg_2 = false; + int3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_8fa62c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_8fa62c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_8fa62c(); + return; +} diff --git a/test/tint/builtins/gen/var/select/99f883.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/99f883.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/99f883.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/99f883.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/99f883.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/99f883.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c6f25eb063 --- /dev/null +++ b/test/tint/builtins/gen/var/select/99f883.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_99f883() { + uint arg_0 = 1u; + uint arg_1 = 1u; + bool arg_2 = false; + uint res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_99f883(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_99f883(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_99f883(); + return; +} diff --git a/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/a2860e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/a2860e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bc3e47e6a2 --- /dev/null +++ b/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_a2860e() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + bool4 arg_2 = (false).xxxx; + int4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_a2860e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_a2860e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_a2860e(); + return; +} diff --git a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/ab069f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/ab069f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0fb1845622 --- /dev/null +++ b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_ab069f() { + int4 arg_0 = (0).xxxx; + int4 arg_1 = (0).xxxx; + bool arg_2 = false; + int4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ab069f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ab069f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ab069f(); + return; +} diff --git a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/b04721.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/b04721.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c96cebe0db --- /dev/null +++ b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_b04721() { + uint3 arg_0 = (0u).xxx; + uint3 arg_1 = (0u).xxx; + bool arg_2 = false; + uint3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_b04721(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_b04721(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_b04721(); + return; +} diff --git a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/bb447f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/bb447f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d4428816a5 --- /dev/null +++ b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_bb447f() { + int2 arg_0 = (0).xx; + int2 arg_1 = (0).xx; + bool arg_2 = false; + int2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bb447f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bb447f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bb447f(); + return; +} diff --git a/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd3ff6110e --- /dev/null +++ b/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_bb8aae() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + bool4 arg_2 = (false).xxxx; + float4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bb8aae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bb8aae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bb8aae(); + return; +} diff --git a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a4862745eb --- /dev/null +++ b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_bf3d29() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + bool arg_2 = false; + float2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_bf3d29(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_bf3d29(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_bf3d29(); + return; +} diff --git a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c47c75a787 --- /dev/null +++ b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_c31f9e() { + bool arg_0 = false; + bool arg_1 = false; + bool arg_2 = false; + bool res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c31f9e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c31f9e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c31f9e(); + return; +} diff --git a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09571cb4c4 --- /dev/null +++ b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_c41bd1() { + bool4 arg_0 = (false).xxxx; + bool4 arg_1 = (false).xxxx; + bool arg_2 = false; + bool4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c41bd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c41bd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c41bd1(); + return; +} diff --git a/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..640511b0db --- /dev/null +++ b/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_c4a4ef() { + uint4 arg_0 = (0u).xxxx; + uint4 arg_1 = (0u).xxxx; + bool4 arg_2 = (false).xxxx; + uint4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_c4a4ef(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_c4a4ef(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_c4a4ef(); + return; +} diff --git a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/cb9301.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/cb9301.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..712794e7a1 --- /dev/null +++ b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_cb9301() { + bool2 arg_0 = (false).xx; + bool2 arg_1 = (false).xx; + bool2 arg_2 = (false).xx; + bool2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_cb9301(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_cb9301(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_cb9301(); + return; +} diff --git a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/e3e028.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/e3e028.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1f55573525 --- /dev/null +++ b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_e3e028() { + bool4 arg_0 = (false).xxxx; + bool4 arg_1 = (false).xxxx; + bool4 arg_2 = (false).xxxx; + bool4 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_e3e028(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_e3e028(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_e3e028(); + return; +} diff --git a/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7f7af298c --- /dev/null +++ b/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_ebfea2() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + bool3 arg_2 = (false).xxx; + float3 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ebfea2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ebfea2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ebfea2(); + return; +} diff --git a/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9c3ec95a49 --- /dev/null +++ b/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_ed8a15() { + int arg_0 = 1; + int arg_1 = 1; + bool arg_2 = false; + int res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_ed8a15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_ed8a15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_ed8a15(); + return; +} diff --git a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.hlsl b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c5056e4117 --- /dev/null +++ b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void select_fb7e53() { + bool2 arg_0 = (false).xx; + bool2 arg_1 = (false).xx; + bool arg_2 = false; + bool2 res = (arg_2 ? arg_1 : arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + select_fb7e53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + select_fb7e53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + select_fb7e53(); + return; +} diff --git a/test/tint/builtins/gen/var/sign/159665.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sign/159665.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sign/159665.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sign/159665.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sign/159665.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/159665.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c8fde0111 --- /dev/null +++ b/test/tint/builtins/gen/var/sign/159665.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sign_159665() { + float3 arg_0 = (0.0f).xxx; + float3 res = sign(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_159665(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_159665(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_159665(); + return; +} diff --git a/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..19c3470a89 --- /dev/null +++ b/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sign_b8f634() { + float4 arg_0 = (0.0f).xxxx; + float4 res = sign(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_b8f634(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_b8f634(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_b8f634(); + return; +} diff --git a/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9abf6c402c --- /dev/null +++ b/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sign_d065d8() { + float2 arg_0 = (0.0f).xx; + float2 res = sign(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_d065d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_d065d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_d065d8(); + return; +} diff --git a/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d0ef005da9 --- /dev/null +++ b/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sign_dd790e() { + float arg_0 = 1.0f; + float res = sign(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sign_dd790e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sign_dd790e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sign_dd790e(); + return; +} diff --git a/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sin/01f241.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sin/01f241.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d2419e7827 --- /dev/null +++ b/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sin_01f241() { + float3 arg_0 = (0.0f).xxx; + float3 res = sin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_01f241(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_01f241(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_01f241(); + return; +} diff --git a/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..17d1855ce3 --- /dev/null +++ b/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sin_4e3979() { + float4 arg_0 = (0.0f).xxxx; + float4 res = sin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_4e3979(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_4e3979(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_4e3979(); + return; +} diff --git a/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..001dc1b9fd --- /dev/null +++ b/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sin_b78c91() { + float arg_0 = 1.0f; + float res = sin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_b78c91(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_b78c91(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_b78c91(); + return; +} diff --git a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a06c569dce --- /dev/null +++ b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sin_fc8bc4() { + float2 arg_0 = (0.0f).xx; + float2 res = sin(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sin_fc8bc4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sin_fc8bc4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sin_fc8bc4(); + return; +} diff --git a/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7ae5522f15 --- /dev/null +++ b/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sinh_445e33() { + float4 arg_0 = (0.0f).xxxx; + float4 res = sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_445e33(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_445e33(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_445e33(); + return; +} diff --git a/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1aeb0cdadb --- /dev/null +++ b/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sinh_7bb598() { + float arg_0 = 1.0f; + float res = sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_7bb598(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_7bb598(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_7bb598(); + return; +} diff --git a/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1a64f6965 --- /dev/null +++ b/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sinh_b9860e() { + float2 arg_0 = (0.0f).xx; + float2 res = sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_b9860e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_b9860e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_b9860e(); + return; +} diff --git a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b600a69bf7 --- /dev/null +++ b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sinh_c9a5eb() { + float3 arg_0 = (0.0f).xxx; + float3 res = sinh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sinh_c9a5eb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sinh_c9a5eb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sinh_c9a5eb(); + return; +} diff --git a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.hlsl b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1d57c73c96 --- /dev/null +++ b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void smoothstep_392c19() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 arg_2 = (0.0f).xx; + float2 res = smoothstep(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_392c19(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_392c19(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_392c19(); + return; +} diff --git a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e9f0a25760 --- /dev/null +++ b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void smoothstep_40864c() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 arg_2 = (0.0f).xxxx; + float4 res = smoothstep(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_40864c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_40864c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_40864c(); + return; +} diff --git a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.hlsl b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b0bcfc6172 --- /dev/null +++ b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void smoothstep_6c4975() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float arg_2 = 1.0f; + float res = smoothstep(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_6c4975(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_6c4975(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_6c4975(); + return; +} diff --git a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.hlsl b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c8e7d3e18c --- /dev/null +++ b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void smoothstep_aad1db() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 arg_2 = (0.0f).xxx; + float3 res = smoothstep(arg_0, arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + smoothstep_aad1db(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + smoothstep_aad1db(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + smoothstep_aad1db(); + return; +} diff --git a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6db93fc191 --- /dev/null +++ b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sqrt_20c74e() { + float arg_0 = 1.0f; + float res = sqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_20c74e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_20c74e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_20c74e(); + return; +} diff --git a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d8ed56b0c --- /dev/null +++ b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sqrt_8c7024() { + float2 arg_0 = (0.0f).xx; + float2 res = sqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_8c7024(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_8c7024(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_8c7024(); + return; +} diff --git a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5534c3dd07 --- /dev/null +++ b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sqrt_aa0d7a() { + float4 arg_0 = (0.0f).xxxx; + float4 res = sqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_aa0d7a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_aa0d7a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_aa0d7a(); + return; +} diff --git a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d57de154ee --- /dev/null +++ b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void sqrt_f8c59a() { + float3 arg_0 = (0.0f).xxx; + float3 res = sqrt(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + sqrt_f8c59a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + sqrt_f8c59a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + sqrt_f8c59a(); + return; +} diff --git a/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/step/0b073b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/step/0b073b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..19c85c99c9 --- /dev/null +++ b/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void step_0b073b() { + float arg_0 = 1.0f; + float arg_1 = 1.0f; + float res = step(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_0b073b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_0b073b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_0b073b(); + return; +} diff --git a/test/tint/builtins/gen/var/step/19accd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/step/19accd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/step/19accd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/step/19accd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/step/19accd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/19accd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f94d6d23f4 --- /dev/null +++ b/test/tint/builtins/gen/var/step/19accd.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void step_19accd() { + float2 arg_0 = (0.0f).xx; + float2 arg_1 = (0.0f).xx; + float2 res = step(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_19accd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_19accd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_19accd(); + return; +} diff --git a/test/tint/builtins/gen/var/step/334303.wgsl.expected.hlsl b/test/tint/builtins/gen/var/step/334303.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/step/334303.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/step/334303.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/step/334303.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/334303.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df6ff2ace5 --- /dev/null +++ b/test/tint/builtins/gen/var/step/334303.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void step_334303() { + float3 arg_0 = (0.0f).xxx; + float3 arg_1 = (0.0f).xxx; + float3 res = step(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_334303(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_334303(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_334303(); + return; +} diff --git a/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.hlsl b/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/step/e2b337.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/step/e2b337.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94366a619a --- /dev/null +++ b/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void step_e2b337() { + float4 arg_0 = (0.0f).xxxx; + float4 arg_1 = (0.0f).xxxx; + float4 res = step(arg_0, arg_1); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + step_e2b337(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + step_e2b337(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + step_e2b337(); + return; +} diff --git a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8fb7cf9462 --- /dev/null +++ b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +void storageBarrier_d87211() { + DeviceMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void compute_main() { + storageBarrier_d87211(); + return; +} diff --git a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8fb7cf9462 --- /dev/null +++ b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void storageBarrier_d87211() { + DeviceMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void compute_main() { + storageBarrier_d87211(); + return; +} diff --git a/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bec2384f9e --- /dev/null +++ b/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tan_244e2a() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_244e2a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_244e2a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_244e2a(); + return; +} diff --git a/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b3863b59f3 --- /dev/null +++ b/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tan_2f030e() { + float arg_0 = 1.0f; + float res = tan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_2f030e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_2f030e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_2f030e(); + return; +} diff --git a/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1dec135b54 --- /dev/null +++ b/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tan_7ea104() { + float3 arg_0 = (0.0f).xxx; + float3 res = tan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_7ea104(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_7ea104(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_7ea104(); + return; +} diff --git a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..935530ef2f --- /dev/null +++ b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tan_8ce3e9() { + float2 arg_0 = (0.0f).xx; + float2 res = tan(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tan_8ce3e9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tan_8ce3e9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tan_8ce3e9(); + return; +} diff --git a/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3860bf4586 --- /dev/null +++ b/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tanh_5663c5() { + float4 arg_0 = (0.0f).xxxx; + float4 res = tanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_5663c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_5663c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_5663c5(); + return; +} diff --git a/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..be9254c249 --- /dev/null +++ b/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tanh_5724b3() { + float2 arg_0 = (0.0f).xx; + float2 res = tanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_5724b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_5724b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_5724b3(); + return; +} diff --git a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2687494dd6 --- /dev/null +++ b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tanh_9f9fb9() { + float3 arg_0 = (0.0f).xxx; + float3 res = tanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_9f9fb9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_9f9fb9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_9f9fb9(); + return; +} diff --git a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38d4981b80 --- /dev/null +++ b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void tanh_c15fdb() { + float arg_0 = 1.0f; + float res = tanh(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + tanh_c15fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + tanh_c15fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + tanh_c15fdb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..29d0c12d90 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_002b2a() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_002b2a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_002b2a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_002b2a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..29d0c12d90 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_002b2a() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_002b2a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_002b2a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_002b2a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..56fb818a4f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_012b82() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_012b82(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_012b82(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_012b82(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..56fb818a4f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_012b82() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_012b82(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_012b82(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_012b82(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..83011fff55 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_08753d() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_08753d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_08753d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_08753d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..83011fff55 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_08753d() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_08753d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_08753d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_08753d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3de620cf2c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_0c4772() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0c4772(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0c4772(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0c4772(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3de620cf2c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_0c4772() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0c4772(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0c4772(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0c4772(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e10fdf6f36 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_0cce40() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0cce40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0cce40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0cce40(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e10fdf6f36 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_0cce40() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0cce40(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0cce40(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0cce40(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3b9fd521cc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_0cf2ff() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0cf2ff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0cf2ff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0cf2ff(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3b9fd521cc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_0cf2ff() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0cf2ff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0cf2ff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0cf2ff(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..848d8b7dae --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_0d8b7e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0d8b7e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0d8b7e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0d8b7e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..848d8b7dae --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_0d8b7e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0d8b7e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0d8b7e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0d8b7e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0f338cc3fc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_0e32ee() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0e32ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0e32ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0e32ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f338cc3fc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_0e32ee() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0e32ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0e32ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0e32ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..5bef2982da --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_0f3c50() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0f3c50(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0f3c50(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0f3c50(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5bef2982da --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_0f3c50() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_0f3c50(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_0f3c50(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_0f3c50(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cedbfad032 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_1191a5() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1191a5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1191a5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1191a5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cedbfad032 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_1191a5() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1191a5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1191a5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1191a5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ae5d7780f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_12c9bb() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_12c9bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_12c9bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_12c9bb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..af1e9bd856 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_147998() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_147998(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_147998(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_147998(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af1e9bd856 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_147998() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_147998(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_147998(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_147998(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..02565baa5f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_16036c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_16036c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_16036c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_16036c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..02565baa5f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_16036c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_16036c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_16036c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_16036c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1ffa3d3b90 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_1b71f0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1b71f0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1b71f0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1b71f0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1ffa3d3b90 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_1b71f0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1b71f0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1b71f0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1b71f0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..26140a05d7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_1d6c26() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1d6c26(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1d6c26(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1d6c26(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26140a05d7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_1d6c26() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1d6c26(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1d6c26(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1d6c26(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..16444c0f2a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_1e9e39() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1e9e39(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1e9e39(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1e9e39(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16444c0f2a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_1e9e39() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1e9e39(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1e9e39(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1e9e39(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e453d42df6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_1f20c5() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1f20c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1f20c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1f20c5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e453d42df6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_1f20c5() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_1f20c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_1f20c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_1f20c5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c91423eba6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_214dd4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_214dd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_214dd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_214dd4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c91423eba6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_214dd4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_214dd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_214dd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_214dd4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6e40306be9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_221f22() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_221f22(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_221f22(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_221f22(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43ab14cb2f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_267788() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_267788(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_267788(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_267788(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d66e9077c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_26bdfa() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_26bdfa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_26bdfa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_26bdfa(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7ccf32f5db --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_26ef6c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_26ef6c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_26ef6c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_26ef6c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7ccf32f5db --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_26ef6c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_26ef6c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_26ef6c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_26ef6c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..33dee501da --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_2ad087() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2ad087(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2ad087(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2ad087(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33dee501da --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_2ad087() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2ad087(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2ad087(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2ad087(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd507fafcb --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_2efa05() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2efa05(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2efa05(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2efa05(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b84004a0c3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_2f289f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2f289f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2f289f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2f289f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b84004a0c3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_2f289f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2f289f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2f289f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2f289f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..723a757349 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_2fe1cc() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_2fe1cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_2fe1cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_2fe1cc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..bc9b732479 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_318ecc() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_318ecc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_318ecc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_318ecc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bc9b732479 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_318ecc() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_318ecc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_318ecc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_318ecc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..db01f68004 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_340d06() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_340d06(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_340d06(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_340d06(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..db01f68004 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_340d06() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_340d06(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_340d06(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_340d06(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ee95c58978 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_398e30() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_398e30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_398e30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_398e30(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ee95c58978 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_398e30() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_398e30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_398e30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_398e30(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..347c92e0ac --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_3a94ea() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3a94ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3a94ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3a94ea(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..347c92e0ac --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_3a94ea() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3a94ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3a94ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3a94ea(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..05eedf3b92 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_3aca08() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3aca08(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3aca08(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3aca08(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..05eedf3b92 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_3aca08() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3aca08(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3aca08(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3aca08(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..78cd91bd88 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_3c5ad8() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3c5ad8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3c5ad8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3c5ad8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..78cd91bd88 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_3c5ad8() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_3c5ad8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_3c5ad8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_3c5ad8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ae5eb3529e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_4152a6() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4152a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4152a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4152a6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ae5eb3529e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_4152a6() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4152a6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4152a6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4152a6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d6a4e4bc97 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_423f99() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_423f99(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_423f99(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_423f99(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d6a4e4bc97 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_423f99() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_423f99(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_423f99(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_423f99(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..aab581e07d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_4267ee() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4267ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4267ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4267ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aab581e07d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_4267ee() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4267ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4267ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4267ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7c818175b1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_42d4e6() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_42d4e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_42d4e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_42d4e6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c818175b1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_42d4e6() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_42d4e6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_42d4e6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_42d4e6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9ec64be6c1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_48cb89() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_48cb89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_48cb89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_48cb89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9ec64be6c1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_48cb89() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_48cb89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_48cb89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_48cb89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9ceff5070d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_49d274() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_49d274(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_49d274(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_49d274(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9ceff5070d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_49d274() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_49d274(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_49d274(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_49d274(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8541c75d63 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_4df9a8() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4df9a8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4df9a8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4df9a8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8541c75d63 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_4df9a8() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_4df9a8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_4df9a8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_4df9a8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5b311bc1d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_50a9ee() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_50a9ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_50a9ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_50a9ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb503d71c5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_52045c() { + int arg_1 = 0; + int2 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_52045c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_52045c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_52045c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c3634a3b40 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_55b23e() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_55b23e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_55b23e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_55b23e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3634a3b40 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_55b23e() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_55b23e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_55b23e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_55b23e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..297d5dd29a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_579629() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_579629(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_579629(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_579629(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..297d5dd29a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_579629() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_579629(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_579629(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_579629(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f9df5efbd7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_57da0b() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_57da0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_57da0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_57da0b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f9df5efbd7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_57da0b() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_57da0b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_57da0b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_57da0b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8da8d7d569 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_57e28f() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_57e28f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_57e28f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_57e28f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8da8d7d569 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_57e28f() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_57e28f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_57e28f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_57e28f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e8a7b4b3f8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_58a515() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_58a515(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_58a515(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_58a515(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8a7b4b3f8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_58a515() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_58a515(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_58a515(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_58a515(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..488cb1754f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_5985f3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5985f3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5985f3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5985f3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..488cb1754f --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_5985f3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5985f3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5985f3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5985f3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..066fbdfdcc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_5caa5e() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5caa5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5caa5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5caa5e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..066fbdfdcc --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_5caa5e() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5caa5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5caa5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5caa5e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a88725c97e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_5e295d() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5e295d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5e295d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5e295d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a88725c97e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_5e295d() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_5e295d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_5e295d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_5e295d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d7ac1d3d72 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_60bf54() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_60bf54(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_60bf54(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_60bf54(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d7ac1d3d72 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_60bf54() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_60bf54(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_60bf54(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_60bf54(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f03906db15 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_63f3cf() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_63f3cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_63f3cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_63f3cf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f03906db15 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_63f3cf() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_63f3cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_63f3cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_63f3cf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c3723286d7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_68105c() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_68105c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_68105c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_68105c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3723286d7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_68105c() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_68105c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_68105c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_68105c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eeccbd6628 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_686ef2() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_686ef2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_686ef2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_686ef2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..52b2080c05 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_6adac6() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6adac6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6adac6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6adac6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..52b2080c05 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_6adac6() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6adac6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6adac6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6adac6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6e9cb1f014 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_6ec1b4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6ec1b4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6ec1b4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6ec1b4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6e9cb1f014 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_6ec1b4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6ec1b4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6ec1b4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6ec1b4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cd1a3a48fd --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_6f0d79() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6f0d79(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6f0d79(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6f0d79(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cd1a3a48fd --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_6f0d79() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_6f0d79(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_6f0d79(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_6f0d79(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..40c27c8f76 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_702c53() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_702c53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_702c53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_702c53(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..40c27c8f76 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_702c53() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_702c53(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_702c53(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_702c53(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..71a9484b3a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_72e5d6() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_72e5d6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_72e5d6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_72e5d6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d2bf772328 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_79df87() { + int arg_1 = 0; + int2 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_79df87(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_79df87(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_79df87(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9c0e675218 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_7bf826() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_7bf826(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_7bf826(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_7bf826(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9c0e675218 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_7bf826() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_7bf826(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_7bf826(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_7bf826(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9c6abe3894 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_7f5c2e() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_7f5c2e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_7f5c2e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_7f5c2e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9c6abe3894 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_7f5c2e() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_7f5c2e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_7f5c2e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_7f5c2e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f18db34932 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_8028f3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8028f3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8028f3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8028f3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f18db34932 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_8028f3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8028f3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8028f3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8028f3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a474cba784 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_811679() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_811679(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_811679(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_811679(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a474cba784 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_811679() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_811679(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_811679(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_811679(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..af2f262f81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_820596() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_820596(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_820596(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_820596(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af2f262f81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_820596() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_820596(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_820596(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_820596(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..efa903aa81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_83ee5a() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_83ee5a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_83ee5a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_83ee5a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..efa903aa81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_83ee5a() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_83ee5a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_83ee5a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_83ee5a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..383bb7d313 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_85d556() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_85d556(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_85d556(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_85d556(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b443c7a6d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_88ad17() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_88ad17(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_88ad17(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_88ad17(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e8a2fa1d4b --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_8aa4c4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8aa4c4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8aa4c4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8aa4c4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8a2fa1d4b --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_8aa4c4() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8aa4c4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8aa4c4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8aa4c4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..398823e556 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_8deb5e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8deb5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8deb5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8deb5e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..398823e556 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_8deb5e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8deb5e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8deb5e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8deb5e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..58462cf470 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_8f20bf() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8f20bf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8f20bf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8f20bf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..58462cf470 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_8f20bf() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8f20bf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8f20bf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8f20bf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ace86e03bd --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_8fca0f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8fca0f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8fca0f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8fca0f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ace86e03bd --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_8fca0f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_8fca0f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_8fca0f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_8fca0f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..26df72fa72 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_90340b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_90340b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_90340b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_90340b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26df72fa72 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_90340b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_90340b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_90340b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_90340b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..95dc10539c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_9042ab() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9042ab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9042ab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9042ab(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95dc10539c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_9042ab() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9042ab(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9042ab(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9042ab(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..452ad7f916 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_9393b0() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9393b0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9393b0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9393b0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1edab80e0e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_939fdb() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_939fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_939fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_939fdb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1edab80e0e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_939fdb() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_939fdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_939fdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_939fdb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7f1c1eb2a4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_962dcd() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_962dcd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_962dcd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_962dcd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f1c1eb2a4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_962dcd() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_962dcd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_962dcd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_962dcd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d97dcf7f31 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_9abfe5() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9abfe5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9abfe5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9abfe5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d97dcf7f31 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_9abfe5() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9abfe5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9abfe5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9abfe5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31b75d4d15 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_9c9c57() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9c9c57(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9c9c57(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9c9c57(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f500491b95 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_9da9e2() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9da9e2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9da9e2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9da9e2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f500491b95 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_9da9e2() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9da9e2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9da9e2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9da9e2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cf18843418 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_9eb8d8() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9eb8d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9eb8d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9eb8d8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cf18843418 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_9eb8d8() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9eb8d8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9eb8d8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9eb8d8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..384fdc350c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_9f8e46() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9f8e46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9f8e46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9f8e46(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..384fdc350c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_9f8e46() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_9f8e46(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_9f8e46(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_9f8e46(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3fcaee8dbf --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_a01845() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a01845(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a01845(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a01845(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..949e8b1a10 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_a7d565() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a7d565(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a7d565(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a7d565(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..949e8b1a10 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_a7d565() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a7d565(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a7d565(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a7d565(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..212bbcaf5b --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_a863f2() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a863f2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a863f2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a863f2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..212bbcaf5b --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_a863f2() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a863f2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a863f2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a863f2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d7f1f2582d --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_a9c9c1() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_a9c9c1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_a9c9c1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_a9c9c1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6cdc838b67 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_b0e16d() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b0e16d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b0e16d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b0e16d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f0d031de32 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_b3c954() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b3c954(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b3c954(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b3c954(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f0d031de32 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_b3c954() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b3c954(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b3c954(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b3c954(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..035c05f0e6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture1D arg_0 : register(t0, space1); + +void textureDimensions_b3e407() { + int arg_1 = 0; + int2 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b3e407(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b3e407(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b3e407(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7f3c930964 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_b91240() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b91240(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b91240(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b91240(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f3c930964 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_b91240() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_b91240(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_b91240(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_b91240(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1761c01751 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.dxc.hlsl @@ -0,0 +1,38 @@ +Texture2D ext_tex_plane_1 : register(t1, space1); +cbuffer cbuffer_ext_tex_params : register(b2, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_ba1481() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_ba1481(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_ba1481(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_ba1481(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1761c01751 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.fxc.hlsl @@ -0,0 +1,38 @@ +Texture2D ext_tex_plane_1 : register(t1, space1); +cbuffer cbuffer_ext_tex_params : register(b2, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_ba1481() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_ba1481(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_ba1481(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_ba1481(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..48b980a2d2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_bb3dde() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_bb3dde(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_bb3dde(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_bb3dde(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..48b980a2d2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_bb3dde() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_bb3dde(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_bb3dde(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_bb3dde(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e4ae3823e8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_c30e75() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_c30e75(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_c30e75(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_c30e75(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e4ae3823e8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_c30e75() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_c30e75(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_c30e75(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_c30e75(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4b69252d51 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_c7943d() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_c7943d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_c7943d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_c7943d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b69252d51 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_c7943d() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_c7943d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_c7943d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_c7943d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e20e81bcef --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_cc968c() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cc968c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cc968c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cc968c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e20e81bcef --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_cc968c() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cc968c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cc968c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cc968c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8030a26359 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_cccc8f() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cccc8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cccc8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cccc8f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8030a26359 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_cccc8f() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cccc8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cccc8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cccc8f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..107e7e6b32 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_cd76a7() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cd76a7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cd76a7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cd76a7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..107e7e6b32 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_cd76a7() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cd76a7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cd76a7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cd76a7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..895f7d05b6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_cdf473() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cdf473(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cdf473(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cdf473(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..895f7d05b6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_cdf473() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cdf473(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cdf473(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cdf473(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8b892fb9f9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_cec841() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cec841(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cec841(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cec841(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8b892fb9f9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureDimensions_cec841() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cec841(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cec841(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cec841(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f8b6211340 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_cf7e43() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cf7e43(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cf7e43(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cf7e43(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f8b6211340 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_cf7e43() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_cf7e43(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_cf7e43(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_cf7e43(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..bf2c107f3a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_d125bc() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_d125bc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_d125bc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_d125bc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf2c107f3a --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureDimensions_d125bc() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_d125bc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_d125bc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_d125bc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ccc18c3d9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_d83c45() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_d83c45(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_d83c45(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_d83c45(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b44a6b8646 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_daf7c0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_daf7c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_daf7c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_daf7c0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b44a6b8646 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_daf7c0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_daf7c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_daf7c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_daf7c0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..20e9146625 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_dc2dd0() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_dc2dd0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_dc2dd0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_dc2dd0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20e9146625 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureDimensions_dc2dd0() { + int tint_tmp; + arg_0.GetDimensions(tint_tmp); + int res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_dc2dd0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_dc2dd0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_dc2dd0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3be868f09c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_e927be() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_e927be(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_e927be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_e927be(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3be868f09c --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureDimensions_e927be() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_e927be(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_e927be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_e927be(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..510eef86c0 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_e9e96c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_e9e96c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_e9e96c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_e9e96c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..510eef86c0 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_e9e96c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_e9e96c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_e9e96c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_e9e96c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4bc53da64e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_ef5b89() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_ef5b89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_ef5b89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_ef5b89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4bc53da64e --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_ef5b89() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_ef5b89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_ef5b89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_ef5b89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..359fc0bd59 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture3D arg_0 : register(t0, space1); + +void textureDimensions_efc8a4() { + int arg_1 = 0; + int4 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int3 res = tint_tmp.xyz; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_efc8a4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_efc8a4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_efc8a4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1609032503 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_f60bdb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f60bdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f60bdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f60bdb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1609032503 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureDimensions_f60bdb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f60bdb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f60bdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f60bdb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54d1c39bf6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_f7145b() { + int arg_1 = 0; + int3 tint_tmp; + arg_0.GetDimensions(arg_1, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f7145b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f7145b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f7145b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..9e231e6b57 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_f931c7() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f931c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f931c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f931c7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9e231e6b57 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureDimensions_f931c7() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_f931c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_f931c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_f931c7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4bfdddf6b2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_fa9859() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fa9859(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fa9859(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fa9859(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4bfdddf6b2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureDimensions_fa9859() { + int2 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y); + int2 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fa9859(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fa9859(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fa9859(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3f6c71f974 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_fb5670() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fb5670(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fb5670(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fb5670(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3f6c71f974 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureDimensions_fb5670() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int2 res = tint_tmp.xy; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fb5670(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fb5670(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fb5670(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f02946b4e5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_fcac78() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fcac78(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fcac78(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fcac78(); + return; +} diff --git a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f02946b4e5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureDimensions_fcac78() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int3 res = tint_tmp; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureDimensions_fcac78(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureDimensions_fcac78(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureDimensions_fcac78(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eab22776f4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_10c554() { + float3 arg_2 = (0.0f).xxx; + float4 res = arg_0.Gather(arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_10c554(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_10c554(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_10c554(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..36412fad8e --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_1f7f6b() { + float2 arg_2 = (0.0f).xx; + float4 res = arg_0.Gather(arg_1, arg_2, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_1f7f6b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_1f7f6b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_1f7f6b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7aa31c9885 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_22e930() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + float4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_22e930(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_22e930(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_22e930(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d64cb3118 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_2cc066() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + uint4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_2cc066(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_2cc066(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_2cc066(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..995319a09a --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_2e0ed5() { + float2 arg_2 = (0.0f).xx; + float4 res = arg_0.Gather(arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_2e0ed5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_2e0ed5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_2e0ed5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6843bb16f9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_32c4e8() { + float3 arg_3 = (0.0f).xxx; + float4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_32c4e8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_32c4e8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_32c4e8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2845979813 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_3b32cc() { + float3 arg_3 = (0.0f).xxx; + uint4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_3b32cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_3b32cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_3b32cc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95e40237e6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_43025d() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float4 res = arg_0.Gather(arg_1, float4(arg_2, float(arg_3))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_43025d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_43025d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_43025d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..42046f3c0d --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_49b07f() { + float2 arg_3 = (0.0f).xx; + uint4 res = arg_1.GatherGreen(arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_49b07f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_49b07f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_49b07f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5016110b55 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_4b8103() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + float4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_4b8103(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_4b8103(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_4b8103(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f449a19774 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5266da() { + float2 arg_3 = (0.0f).xx; + float4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5266da(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5266da(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5266da(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..39a0d15a2e --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5ba85f() { + float3 arg_3 = (0.0f).xxx; + int4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5ba85f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5ba85f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5ba85f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..50701a2fdf --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_5bd491() { + float2 arg_3 = (0.0f).xx; + uint4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_5bd491(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_5bd491(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_5bd491(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b0055f8cf --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_751f8a() { + float3 arg_3 = (0.0f).xxx; + int arg_4 = 1; + float4 res = arg_1.GatherGreen(arg_2, float4(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_751f8a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_751f8a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_751f8a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af880b4c3c --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_7c3828() { + float2 arg_3 = (0.0f).xx; + int4 res = arg_1.GatherGreen(arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_7c3828(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_7c3828(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_7c3828(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..52dcf0fa89 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_8b754c() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + int4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_8b754c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_8b754c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_8b754c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..00950b5ffd --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_9a6358() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float4 res = arg_0.Gather(arg_1, float3(arg_2, float(arg_3))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_9a6358(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_9a6358(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_9a6358(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2cf56d1ba9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_af55b3() { + float2 arg_3 = (0.0f).xx; + float4 res = arg_1.GatherGreen(arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_af55b3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_af55b3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_af55b3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f718f3661 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_bb3ac5() { + float2 arg_3 = (0.0f).xx; + int4 res = arg_1.GatherGreen(arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_bb3ac5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_bb3ac5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_bb3ac5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..76b208b9f9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_c0640c() { + float3 arg_3 = (0.0f).xxx; + int arg_4 = 1; + int4 res = arg_1.GatherGreen(arg_2, float4(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_c0640c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_c0640c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_c0640c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6fdf9e4239 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_d1f187() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + uint4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_d1f187(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_d1f187(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_d1f187(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..961f7f3b57 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureGather_d90605() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float4 res = arg_0.Gather(arg_1, float3(arg_2, float(arg_3)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_d90605(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_d90605(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_d90605(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..303164a498 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_e9d390() { + float2 arg_3 = (0.0f).xx; + int arg_4 = 1; + int4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4)), (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_e9d390(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_e9d390(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_e9d390(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7b6ba868b --- /dev/null +++ b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCubeArray arg_1 : register(t1, space1); +SamplerState arg_2 : register(s2, space1); + +void textureGather_f2c6e3() { + float3 arg_3 = (0.0f).xxx; + int arg_4 = 1; + uint4 res = arg_1.GatherGreen(arg_2, float4(arg_3, float(arg_4))); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGather_f2c6e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGather_f2c6e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGather_f2c6e3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..294d4d3441 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_182fd4() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_182fd4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_182fd4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_182fd4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c92a22bdaf --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_313add() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_313add(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_313add(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_313add(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0284d85ec --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_60d2d1() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, float4(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_60d2d1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_60d2d1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_60d2d1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c7d0f4904 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_6d9352() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_6d9352(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_6d9352(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_6d9352(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c0b2cced51 --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_783e65() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, float3(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_783e65(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_783e65(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_783e65(); + return; +} diff --git a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eef0720cda --- /dev/null +++ b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureGatherCompare_f585cc() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.GatherCmp(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureGatherCompare_f585cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureGatherCompare_f585cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureGatherCompare_f585cc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af201f2382 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_19cf87() { + int2 arg_1 = (0).xx; + int arg_2 = 0; + float res = arg_0.Load(int3(arg_1, arg_2)).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_19cf87(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_19cf87(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_19cf87(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a7976a797 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_1b8588() { + int arg_1 = 1; + int arg_2 = 0; + uint4 res = arg_0.Load(int2(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_1b8588(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_1b8588(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_1b8588(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9a90498483 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_1f2016() { + int3 arg_1 = (0).xxx; + int arg_2 = 0; + float4 res = arg_0.Load(int4(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_1f2016(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_1f2016(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_1f2016(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..26f5c566d9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_484344() { + int2 arg_1 = (0).xx; + int arg_2 = 0; + float4 res = arg_0.Load(int3(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_484344(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_484344(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_484344(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..62f5574e15 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_4fd803() { + int3 arg_1 = (0).xxx; + int arg_2 = 0; + int4 res = arg_0.Load(int4(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_4fd803(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_4fd803(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_4fd803(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6560358766 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_5a2f9d() { + int arg_1 = 1; + int arg_2 = 0; + int4 res = arg_0.Load(int2(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_5a2f9d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_5a2f9d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_5a2f9d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..38bda4923b --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_6154d4() { + int2 arg_1 = (0).xx; + int arg_2 = 0; + uint4 res = arg_0.Load(int3(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_6154d4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_6154d4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_6154d4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b05e1bbdd4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_6273b1() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float res = arg_0.Load(int3(arg_1, 0), arg_2).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_6273b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_6273b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_6273b1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..058dfb24b4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_79e697() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int arg_3 = 0; + int4 res = arg_0.Load(int4(int3(arg_1, arg_2), arg_3)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_79e697(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_79e697(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_79e697(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eac35c3ca4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_7c90e5() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int arg_3 = 0; + uint4 res = arg_0.Load(int4(int3(arg_1, arg_2), arg_3)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_7c90e5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_7c90e5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_7c90e5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f125cbe389 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureLoad_81c381() { + int arg_1 = 1; + int arg_2 = 0; + float4 res = arg_0.Load(int2(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_81c381(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_81c381(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_81c381(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b22cbff7a8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_87be85() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int arg_3 = 0; + float4 res = arg_0.Load(int4(int3(arg_1, arg_2), arg_3)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_87be85(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_87be85(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_87be85(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4661657d0b --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.fxc.hlsl @@ -0,0 +1,112 @@ +struct GammaTransferParams { + float G; + float A; + float B; + float C; + float D; + float E; + float F; + uint padding; +}; +struct ExternalTextureParams { + uint numPlanes; + uint doYuvToRgbConversionOnly; + float3x4 yuvToRgbConversionMatrix; + GammaTransferParams gammaDecodeParams; + GammaTransferParams gammaEncodeParams; + float3x3 gamutConversionMatrix; +}; + +Texture2D ext_tex_plane_1 : register(t1, space1); +cbuffer cbuffer_ext_tex_params : register(b2, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); + +float3 gammaCorrection(float3 v, GammaTransferParams params) { + const bool3 cond = (abs(v) < float3((params.D).xxx)); + const float3 t = (sign(v) * ((params.C * abs(v)) + params.F)); + const float3 f = (sign(v) * (pow(((params.A * abs(v)) + params.B), float3((params.G).xxx)) + params.E)); + return (cond ? t : f); +} + +float4 textureLoadExternal(Texture2D plane0, Texture2D plane1, int2 coord, ExternalTextureParams params) { + float3 color = float3(0.0f, 0.0f, 0.0f); + if ((params.numPlanes == 1u)) { + color = plane0.Load(int3(coord, 0)).rgb; + } else { + color = mul(params.yuvToRgbConversionMatrix, float4(plane0.Load(int3(coord, 0)).r, plane1.Load(int3(coord, 0)).rg, 1.0f)); + } + if ((params.doYuvToRgbConversionOnly == 0u)) { + color = gammaCorrection(color, params.gammaDecodeParams); + color = mul(color, params.gamutConversionMatrix); + color = gammaCorrection(color, params.gammaEncodeParams); + } + return float4(color, 1.0f); +} + +float3x4 tint_symbol_3(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])); +} + +GammaTransferParams tint_symbol_5(uint4 buffer[11], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 4u)) / 4; + const uint scalar_offset_5 = ((offset + 8u)) / 4; + const uint scalar_offset_6 = ((offset + 12u)) / 4; + const uint scalar_offset_7 = ((offset + 16u)) / 4; + const uint scalar_offset_8 = ((offset + 20u)) / 4; + const uint scalar_offset_9 = ((offset + 24u)) / 4; + const uint scalar_offset_10 = ((offset + 28u)) / 4; + const GammaTransferParams tint_symbol_9 = {asfloat(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), asfloat(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), asfloat(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4]), asfloat(buffer[scalar_offset_6 / 4][scalar_offset_6 % 4]), asfloat(buffer[scalar_offset_7 / 4][scalar_offset_7 % 4]), asfloat(buffer[scalar_offset_8 / 4][scalar_offset_8 % 4]), asfloat(buffer[scalar_offset_9 / 4][scalar_offset_9 % 4]), buffer[scalar_offset_10 / 4][scalar_offset_10 % 4]}; + return tint_symbol_9; +} + +float3x3 tint_symbol_7(uint4 buffer[11], uint offset) { + const uint scalar_offset_11 = ((offset + 0u)) / 4; + const uint scalar_offset_12 = ((offset + 16u)) / 4; + const uint scalar_offset_13 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset_11 / 4].xyz), asfloat(buffer[scalar_offset_12 / 4].xyz), asfloat(buffer[scalar_offset_13 / 4].xyz)); +} + +ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { + const uint scalar_offset_14 = ((offset + 0u)) / 4; + const uint scalar_offset_15 = ((offset + 4u)) / 4; + const ExternalTextureParams tint_symbol_10 = {buffer[scalar_offset_14 / 4][scalar_offset_14 % 4], buffer[scalar_offset_15 / 4][scalar_offset_15 % 4], tint_symbol_3(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 64u)), tint_symbol_5(buffer, (offset + 96u)), tint_symbol_7(buffer, (offset + 128u))}; + return tint_symbol_10; +} + +void textureLoad_8acf41() { + int2 arg_1 = (0).xx; + float4 res = textureLoadExternal(arg_0, ext_tex_plane_1, arg_1, tint_symbol_1(ext_tex_params, 0u)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_8acf41(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_8acf41(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_8acf41(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b354532f59 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureLoad_9b2667() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int arg_3 = 0; + float res = arg_0.Load(int4(int3(arg_1, arg_2), arg_3)).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_9b2667(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_9b2667(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_9b2667(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c8c40f9263 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_a583c9() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 res = arg_0.Load(arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_a583c9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_a583c9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_a583c9(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a44b10ec40 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureLoad_a9a9f5() { + int3 arg_1 = (0).xxx; + int arg_2 = 0; + uint4 res = arg_0.Load(int4(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_a9a9f5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_a9a9f5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_a9a9f5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..772ad7ddaf --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureLoad_c2a480() { + int2 arg_1 = (0).xx; + int arg_2 = 0; + int4 res = arg_0.Load(int3(arg_1, arg_2)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_c2a480(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_c2a480(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_c2a480(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20193dae9a --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_c378ee() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 res = arg_0.Load(arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_c378ee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_c378ee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_c378ee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2599303c42 --- /dev/null +++ b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureLoad_e3d2cc() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 res = arg_0.Load(arg_1, arg_2); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureLoad_e3d2cc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureLoad_e3d2cc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureLoad_e3d2cc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c54de32f98 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_024820() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_024820(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_024820(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_024820(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c54de32f98 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_024820() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_024820(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_024820(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_024820(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ec0865280f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_053df7() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_053df7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_053df7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_053df7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec0865280f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_053df7() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_053df7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_053df7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_053df7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0f9f61ae48 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_058cc3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_058cc3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_058cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_058cc3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0f9f61ae48 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_058cc3() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_058cc3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_058cc3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_058cc3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c52cd47ecc --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_09d05d() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_09d05d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_09d05d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_09d05d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c52cd47ecc --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_09d05d() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_09d05d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_09d05d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_09d05d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4d9ac8afb4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_13b4ce() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_13b4ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_13b4ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_13b4ce(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d9ac8afb4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_13b4ce() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_13b4ce(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_13b4ce(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_13b4ce(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8611a5211c --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_22e53b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_22e53b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_22e53b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_22e53b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8611a5211c --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_22e53b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_22e53b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_22e53b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_22e53b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..59664cc21b --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_562013() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_562013(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_562013(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_562013(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..59664cc21b --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_562013() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_562013(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_562013(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_562013(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..063ac3bee8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_5d59cd() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_5d59cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_5d59cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_5d59cd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..063ac3bee8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_5d59cd() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_5d59cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_5d59cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_5d59cd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cefd82036d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_68a65b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_68a65b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_68a65b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_68a65b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cefd82036d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_68a65b() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_68a65b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_68a65b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_68a65b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..198c36ba40 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_778bd1() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_778bd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_778bd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_778bd1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..198c36ba40 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_778bd1() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_778bd1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_778bd1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_778bd1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..edd423aea6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_7f1937() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_7f1937(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_7f1937(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_7f1937(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..edd423aea6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_7f1937() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_7f1937(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_7f1937(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_7f1937(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..bd6cdc4517 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_85f980() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_85f980(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_85f980(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_85f980(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd6cdc4517 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLayers_85f980() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_85f980(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_85f980(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_85f980(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..5c563c486d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_87953e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_87953e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_87953e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_87953e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5c563c486d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_87953e() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_87953e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_87953e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_87953e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0991385af2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_893e7c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_893e7c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_893e7c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_893e7c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0991385af2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_893e7c() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_893e7c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_893e7c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_893e7c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..63205b7d81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_9700fb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_9700fb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_9700fb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_9700fb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..63205b7d81 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_9700fb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_9700fb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_9700fb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_9700fb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d9cf5006ba --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_a216d2() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_a216d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_a216d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_a216d2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d9cf5006ba --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_a216d2() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_a216d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_a216d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_a216d2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ca5a80c50a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_cd5dc8() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_cd5dc8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_cd5dc8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_cd5dc8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ca5a80c50a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_cd5dc8() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_cd5dc8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_cd5dc8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_cd5dc8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a8c82b0521 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_d5b228() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_d5b228(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_d5b228(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_d5b228(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a8c82b0521 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_d5b228() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_d5b228(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_d5b228(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_d5b228(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6aca3c5454 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_e31be1() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_e31be1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_e31be1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_e31be1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6aca3c5454 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_e31be1() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_e31be1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_e31be1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_e31be1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..07d21c43e3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_e653c0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_e653c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_e653c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_e653c0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..07d21c43e3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLayers_e653c0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_e653c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_e653c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_e653c0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b49235b30 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_ee942f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_ee942f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_ee942f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_ee942f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b49235b30 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_ee942f() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_ee942f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_ee942f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_ee942f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4f341b1db5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_f33005() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_f33005(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_f33005(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_f33005(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f341b1db5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_f33005() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_f33005(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_f33005(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_f33005(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..5ded29d872 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_fcec98() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_fcec98(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_fcec98(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_fcec98(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ded29d872 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_fcec98() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_fcec98(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_fcec98(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_fcec98(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4ff6d2cbd5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_ff5e89() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_ff5e89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_ff5e89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_ff5e89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ff6d2cbd5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureNumLayers_ff5e89() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLayers_ff5e89(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLayers_ff5e89(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLayers_ff5e89(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7688db98ff --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_076cb5() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_076cb5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_076cb5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_076cb5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7688db98ff --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_076cb5() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_076cb5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_076cb5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_076cb5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..633e7beb77 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_080d95() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_080d95(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_080d95(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_080d95(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..633e7beb77 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_080d95() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_080d95(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_080d95(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_080d95(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fa2c6733dd --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_09ddd0() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_09ddd0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_09ddd0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_09ddd0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa2c6733dd --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_09ddd0() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_09ddd0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_09ddd0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_09ddd0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..608355f226 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_105988() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_105988(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_105988(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_105988(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..608355f226 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_105988() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_105988(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_105988(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_105988(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..938309a8d8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_1e6f3b() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_1e6f3b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_1e6f3b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_1e6f3b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..938309a8d8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_1e6f3b() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_1e6f3b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_1e6f3b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_1e6f3b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..230c77c842 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_23f750() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_23f750(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_23f750(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_23f750(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..230c77c842 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_23f750() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_23f750(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_23f750(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_23f750(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..969b67aee9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_2c3575() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_2c3575(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_2c3575(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_2c3575(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..969b67aee9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_2c3575() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_2c3575(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_2c3575(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_2c3575(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8caa7566e4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_32a0ae() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_32a0ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_32a0ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_32a0ae(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8caa7566e4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_32a0ae() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_32a0ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_32a0ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_32a0ae(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f6385792ca --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_5101cf() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_5101cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_5101cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_5101cf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f6385792ca --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_5101cf() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_5101cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_5101cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_5101cf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e41c4df7b1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_51b5bb() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_51b5bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_51b5bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_51b5bb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e41c4df7b1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture1D arg_0 : register(t0, space1); + +void textureNumLevels_51b5bb() { + int2 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y); + int res = tint_tmp.y; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_51b5bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_51b5bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_51b5bb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1dc79b11bb --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_897aaf() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_897aaf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_897aaf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_897aaf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1dc79b11bb --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_897aaf() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_897aaf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_897aaf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_897aaf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..621c54766b --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_9da7a5() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_9da7a5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_9da7a5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_9da7a5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..621c54766b --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_9da7a5() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_9da7a5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_9da7a5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_9da7a5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..97c379dd7f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_a91c03() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_a91c03(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_a91c03(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_a91c03(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..97c379dd7f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_a91c03() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_a91c03(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_a91c03(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_a91c03(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6511a2d27a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_aee7c8() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_aee7c8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_aee7c8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_aee7c8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6511a2d27a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_aee7c8() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_aee7c8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_aee7c8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_aee7c8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..cd908dca1e --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_b1b12b() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_b1b12b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_b1b12b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_b1b12b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cd908dca1e --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_b1b12b() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_b1b12b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_b1b12b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_b1b12b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..92162ad12d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_b4f5ea() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_b4f5ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_b4f5ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_b4f5ea(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..92162ad12d --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_b4f5ea() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_b4f5ea(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_b4f5ea(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_b4f5ea(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..34731d5b4e --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_d004a9() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_d004a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_d004a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_d004a9(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34731d5b4e --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_d004a9() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_d004a9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_d004a9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_d004a9(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..01307a423f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_dca09e() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_dca09e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_dca09e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_dca09e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01307a423f --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture3D arg_0 : register(t0, space1); + +void textureNumLevels_dca09e() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_dca09e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_dca09e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_dca09e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..a6f8a6f769 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_e67231() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_e67231(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_e67231(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_e67231(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a6f8a6f769 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2D arg_0 : register(t0, space1); + +void textureNumLevels_e67231() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_e67231(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_e67231(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_e67231(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..75d40ead62 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_ed078b() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_ed078b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_ed078b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_ed078b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..75d40ead62 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCube arg_0 : register(t0, space1); + +void textureNumLevels_ed078b() { + int3 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_ed078b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_ed078b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_ed078b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3a16309ca7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_f46ec6() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_f46ec6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_f46ec6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_f46ec6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3a16309ca7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +TextureCubeArray arg_0 : register(t0, space1); + +void textureNumLevels_f46ec6() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_f46ec6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_f46ec6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_f46ec6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..05d604d60a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_f5828d() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_f5828d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_f5828d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_f5828d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..05d604d60a --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DArray arg_0 : register(t0, space1); + +void textureNumLevels_f5828d() { + int4 tint_tmp; + arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w); + int res = tint_tmp.w; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumLevels_f5828d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumLevels_f5828d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumLevels_f5828d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6c3feafdaa --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_2c6f14() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_2c6f14(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_2c6f14(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_2c6f14(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c3feafdaa --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_2c6f14() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_2c6f14(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_2c6f14(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_2c6f14(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..415abda1e8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_42f8bb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_42f8bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_42f8bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_42f8bb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..415abda1e8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_42f8bb() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_42f8bb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_42f8bb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_42f8bb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4dbf2f0a56 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_449d23() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_449d23(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_449d23(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_449d23(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4dbf2f0a56 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_449d23() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_449d23(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_449d23(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_449d23(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0eb375a965 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.dxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_a3c8a0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_a3c8a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_a3c8a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_a3c8a0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0eb375a965 --- /dev/null +++ b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +Texture2DMS arg_0 : register(t0, space1); + +void textureNumSamples_a3c8a0() { + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + int res = tint_tmp.z; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureNumSamples_a3c8a0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureNumSamples_a3c8a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureNumSamples_a3c8a0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4bd60c002c --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_0dff6c() { + float2 arg_2 = (0.0f).xx; + float res = arg_0.Sample(arg_1, arg_2, (0).xx).x; +} + +void fragment_main() { + textureSample_0dff6c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..87521f1266 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_17e988() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float4 res = arg_0.Sample(arg_1, float3(arg_2, float(arg_3)), (0).xx); +} + +void fragment_main() { + textureSample_17e988(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1528b90d0a --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_2149ec() { + float3 arg_2 = (0.0f).xxx; + float4 res = arg_0.Sample(arg_1, arg_2, (0).xxx); +} + +void fragment_main() { + textureSample_2149ec(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ffedf8fcf9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_38bbb9() { + float2 arg_2 = (0.0f).xx; + float res = arg_0.Sample(arg_1, arg_2).x; +} + +void fragment_main() { + textureSample_38bbb9(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..29a54eaca8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_3b50bd() { + float3 arg_2 = (0.0f).xxx; + float4 res = arg_0.Sample(arg_1, arg_2); +} + +void fragment_main() { + textureSample_3b50bd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c779be1509 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_4dd1bf() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float4 res = arg_0.Sample(arg_1, float4(arg_2, float(arg_3))); +} + +void fragment_main() { + textureSample_4dd1bf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..32dce227fd --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_51b514() { + float2 arg_2 = (0.0f).xx; + float4 res = arg_0.Sample(arg_1, arg_2); +} + +void fragment_main() { + textureSample_51b514(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a9339e032 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_60bf45() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float res = arg_0.Sample(arg_1, float3(arg_2, float(arg_3)), (0).xx).x; +} + +void fragment_main() { + textureSample_60bf45(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01c97bce1e --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_6717ca() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float4 res = arg_0.Sample(arg_1, float3(arg_2, float(arg_3))); +} + +void fragment_main() { + textureSample_6717ca(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e62e87512f --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture1D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_6e64fb() { + float arg_2 = 1.0f; + float4 res = arg_0.Sample(arg_1, arg_2); +} + +void fragment_main() { + textureSample_6e64fb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88b7a82131 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_7e9ffd() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float res = arg_0.Sample(arg_1, float3(arg_2, float(arg_3))).x; +} + +void fragment_main() { + textureSample_7e9ffd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d96272b6b2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_85c4ba() { + float2 arg_2 = (0.0f).xx; + float4 res = arg_0.Sample(arg_1, arg_2, (0).xx); +} + +void fragment_main() { + textureSample_85c4ba(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..209b7d33cf --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_c2f4e8() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float res = arg_0.Sample(arg_1, float4(arg_2, float(arg_3))).x; +} + +void fragment_main() { + textureSample_c2f4e8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..171df8aec5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_e53267() { + float3 arg_2 = (0.0f).xxx; + float4 res = arg_0.Sample(arg_1, arg_2); +} + +void fragment_main() { + textureSample_e53267(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35bbed727f --- /dev/null +++ b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSample_ea7030() { + float3 arg_2 = (0.0f).xxx; + float res = arg_0.Sample(arg_1, arg_2).x; +} + +void fragment_main() { + textureSample_ea7030(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6fd71337d3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_53b9f7() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, arg_2, arg_3); +} + +void fragment_main() { + textureSampleBias_53b9f7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa703bc6ab --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_594824() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, arg_2, arg_3, (0).xxx); +} + +void fragment_main() { + textureSampleBias_594824(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95c453b6eb --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_6a9113() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, arg_2, arg_3); +} + +void fragment_main() { + textureSampleBias_6a9113(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..27ee32dc62 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_80e579() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, float3(arg_2, float(arg_3)), arg_4); +} + +void fragment_main() { + textureSampleBias_80e579(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..83ce4b85a5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_9dbb51() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx); +} + +void fragment_main() { + textureSampleBias_9dbb51(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..89d28fcd69 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_a161cf() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, arg_2, arg_3, (0).xx); +} + +void fragment_main() { + textureSampleBias_a161cf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..653f13e9c4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_d3fa1b() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, arg_2, arg_3); +} + +void fragment_main() { + textureSampleBias_d3fa1b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4c225b0104 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleBias_eed7c4() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleBias(arg_1, float4(arg_2, float(arg_3)), arg_4); +} + +void fragment_main() { + textureSampleBias_eed7c4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3bc8810b56 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_3a5923() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmp(arg_1, arg_2, arg_3); +} + +void fragment_main() { + textureSampleCompare_3a5923(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..01de180398 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_63fb83() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmp(arg_1, arg_2, arg_3); +} + +void fragment_main() { + textureSampleCompare_63fb83(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..06ac88bc5c --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_a3ca7e() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmp(arg_1, float4(arg_2, float(arg_3)), arg_4); +} + +void fragment_main() { + textureSampleCompare_a3ca7e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad6956408e --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_af1051() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmp(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx); +} + +void fragment_main() { + textureSampleCompare_af1051(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aed9ea373a --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_dd431d() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmp(arg_1, float3(arg_2, float(arg_3)), arg_4); +} + +void fragment_main() { + textureSampleCompare_dd431d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..21bf5e0222 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompare_dec064() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmp(arg_1, arg_2, arg_3, (0).xx); +} + +void fragment_main() { + textureSampleCompare_dec064(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dfdafaafad --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_1116ed() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, float3(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_1116ed(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_1116ed(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_1116ed(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0b30fbcff --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_1568e3() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_1568e3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_1568e3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_1568e3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c47f096ba8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_2ad2b1() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_2ad2b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_2ad2b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_2ad2b1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7910d95baa --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_4cf3a2() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, float4(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_4cf3a2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_4cf3a2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_4cf3a2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6365c43b70 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_7f2b9a() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_7f2b9a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_7f2b9a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_7f2b9a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43587976e3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerComparisonState arg_1 : register(s1, space1); + +void textureSampleCompareLevel_b6e47c() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float res = arg_0.SampleCmpLevelZero(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleCompareLevel_b6e47c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleCompareLevel_b6e47c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleCompareLevel_b6e47c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..037d976713 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_21402b() { + float3 arg_2 = (0.0f).xxx; + float3 arg_3 = (0.0f).xxx; + float3 arg_4 = (0.0f).xxx; + float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_21402b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_21402b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_21402b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..51d6b37c44 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_2ecd8f() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float2 arg_4 = (0.0f).xx; + float2 arg_5 = (0.0f).xx; + float4 res = arg_0.SampleGrad(arg_1, float3(arg_2, float(arg_3)), arg_4, arg_5); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_2ecd8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_2ecd8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_2ecd8f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b184cd79b9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_521263() { + float2 arg_2 = (0.0f).xx; + float2 arg_3 = (0.0f).xx; + float2 arg_4 = (0.0f).xx; + float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_521263(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_521263(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_521263(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..14508e1a60 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_5312f4() { + float3 arg_2 = (0.0f).xxx; + float3 arg_3 = (0.0f).xxx; + float3 arg_4 = (0.0f).xxx; + float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_5312f4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_5312f4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_5312f4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..695dd3062e --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_5884dd() { + float3 arg_2 = (0.0f).xxx; + float3 arg_3 = (0.0f).xxx; + float3 arg_4 = (0.0f).xxx; + float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_5884dd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_5884dd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_5884dd(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..203eca8fb1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_d4e3c5() { + float2 arg_2 = (0.0f).xx; + float2 arg_3 = (0.0f).xx; + float2 arg_4 = (0.0f).xx; + float4 res = arg_0.SampleGrad(arg_1, arg_2, arg_3, arg_4, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_d4e3c5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_d4e3c5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_d4e3c5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..91e62c1e3a --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_d65515() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float2 arg_4 = (0.0f).xx; + float2 arg_5 = (0.0f).xx; + float4 res = arg_0.SampleGrad(arg_1, float3(arg_2, float(arg_3)), arg_4, arg_5, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_d65515(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_d65515(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_d65515(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1f111fbf1a --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleGrad_e383db() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float3 arg_4 = (0.0f).xxx; + float3 arg_5 = (0.0f).xxx; + float4 res = arg_0.SampleGrad(arg_1, float4(arg_2, float(arg_3)), arg_4, arg_5); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleGrad_e383db(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleGrad_e383db(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleGrad_e383db(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd23cee6f9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_02be59() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 0; + float res = arg_0.SampleLevel(arg_1, arg_2, arg_3).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_02be59(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_02be59(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_02be59(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d57bb5e533 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_0b0a1b() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, arg_2, arg_3, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_0b0a1b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_0b0a1b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_0b0a1b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd1c612315 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_0bdd9a() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, float4(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_0bdd9a(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_0bdd9a(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_0bdd9a(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..db87195d36 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_1b0291() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 0; + float res = arg_0.SampleLevel(arg_1, arg_2, arg_3).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_1b0291(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_1b0291(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_1b0291(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f04b03a14 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_1bf73e() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + int arg_4 = 0; + float res = arg_0.SampleLevel(arg_1, float3(arg_2, float(arg_3)), arg_4).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_1bf73e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_1bf73e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_1bf73e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..997a9e9d52 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_302be4() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, float3(arg_2, float(arg_3)), arg_4); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_302be4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_302be4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_302be4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..419b8c9a18 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_36780e() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + int arg_4 = 0; + float res = arg_0.SampleLevel(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_36780e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_36780e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_36780e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1b58de933 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_749baf() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 0; + float res = arg_0.SampleLevel(arg_1, arg_2, arg_3, (0).xx).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_749baf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_749baf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_749baf(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20a6a9824d --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.fxc.hlsl @@ -0,0 +1,113 @@ +struct GammaTransferParams { + float G; + float A; + float B; + float C; + float D; + float E; + float F; + uint padding; +}; +struct ExternalTextureParams { + uint numPlanes; + uint doYuvToRgbConversionOnly; + float3x4 yuvToRgbConversionMatrix; + GammaTransferParams gammaDecodeParams; + GammaTransferParams gammaEncodeParams; + float3x3 gamutConversionMatrix; +}; + +Texture2D ext_tex_plane_1 : register(t2, space1); +cbuffer cbuffer_ext_tex_params : register(b3, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +float3 gammaCorrection(float3 v, GammaTransferParams params) { + const bool3 cond = (abs(v) < float3((params.D).xxx)); + const float3 t = (sign(v) * ((params.C * abs(v)) + params.F)); + const float3 f = (sign(v) * (pow(((params.A * abs(v)) + params.B), float3((params.G).xxx)) + params.E)); + return (cond ? t : f); +} + +float4 textureSampleExternal(Texture2D plane0, Texture2D plane1, SamplerState smp, float2 coord, ExternalTextureParams params) { + float3 color = float3(0.0f, 0.0f, 0.0f); + if ((params.numPlanes == 1u)) { + color = plane0.SampleLevel(smp, coord, 0.0f).rgb; + } else { + color = mul(params.yuvToRgbConversionMatrix, float4(plane0.SampleLevel(smp, coord, 0.0f).r, plane1.SampleLevel(smp, coord, 0.0f).rg, 1.0f)); + } + if ((params.doYuvToRgbConversionOnly == 0u)) { + color = gammaCorrection(color, params.gammaDecodeParams); + color = mul(color, params.gamutConversionMatrix); + color = gammaCorrection(color, params.gammaEncodeParams); + } + return float4(color, 1.0f); +} + +float3x4 tint_symbol_3(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])); +} + +GammaTransferParams tint_symbol_5(uint4 buffer[11], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 4u)) / 4; + const uint scalar_offset_5 = ((offset + 8u)) / 4; + const uint scalar_offset_6 = ((offset + 12u)) / 4; + const uint scalar_offset_7 = ((offset + 16u)) / 4; + const uint scalar_offset_8 = ((offset + 20u)) / 4; + const uint scalar_offset_9 = ((offset + 24u)) / 4; + const uint scalar_offset_10 = ((offset + 28u)) / 4; + const GammaTransferParams tint_symbol_9 = {asfloat(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), asfloat(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), asfloat(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4]), asfloat(buffer[scalar_offset_6 / 4][scalar_offset_6 % 4]), asfloat(buffer[scalar_offset_7 / 4][scalar_offset_7 % 4]), asfloat(buffer[scalar_offset_8 / 4][scalar_offset_8 % 4]), asfloat(buffer[scalar_offset_9 / 4][scalar_offset_9 % 4]), buffer[scalar_offset_10 / 4][scalar_offset_10 % 4]}; + return tint_symbol_9; +} + +float3x3 tint_symbol_7(uint4 buffer[11], uint offset) { + const uint scalar_offset_11 = ((offset + 0u)) / 4; + const uint scalar_offset_12 = ((offset + 16u)) / 4; + const uint scalar_offset_13 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset_11 / 4].xyz), asfloat(buffer[scalar_offset_12 / 4].xyz), asfloat(buffer[scalar_offset_13 / 4].xyz)); +} + +ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { + const uint scalar_offset_14 = ((offset + 0u)) / 4; + const uint scalar_offset_15 = ((offset + 4u)) / 4; + const ExternalTextureParams tint_symbol_10 = {buffer[scalar_offset_14 / 4][scalar_offset_14 % 4], buffer[scalar_offset_15 / 4][scalar_offset_15 % 4], tint_symbol_3(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 64u)), tint_symbol_5(buffer, (offset + 96u)), tint_symbol_7(buffer, (offset + 128u))}; + return tint_symbol_10; +} + +void textureSampleLevel_979816() { + float2 arg_2 = (0.0f).xx; + float4 res = textureSampleExternal(arg_0, ext_tex_plane_1, arg_1, arg_2, tint_symbol_1(ext_tex_params, 0u)); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_979816(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_979816(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_979816(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cabcb9012a --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_abfcc0() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_abfcc0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_abfcc0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_abfcc0(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d003c3bf0f --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +TextureCubeArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_ae5e39() { + float3 arg_2 = (0.0f).xxx; + int arg_3 = 1; + int arg_4 = 0; + float res = arg_0.SampleLevel(arg_1, float4(arg_2, float(arg_3)), arg_4).x; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_ae5e39(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_ae5e39(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_ae5e39(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..df52dfd933 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2DArray arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_b7c55c() { + float2 arg_2 = (0.0f).xx; + int arg_3 = 1; + float arg_4 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, float3(arg_2, float(arg_3)), arg_4, (0).xx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_b7c55c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_b7c55c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_b7c55c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5a4de66d2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +TextureCube arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_c32df7() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_c32df7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_c32df7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_c32df7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..812fee1354 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture2D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_c6aca6() { + float2 arg_2 = (0.0f).xx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, arg_2, arg_3); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_c6aca6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_c6aca6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_c6aca6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c3bad7651 --- /dev/null +++ b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +Texture3D arg_0 : register(t0, space1); +SamplerState arg_1 : register(s1, space1); + +void textureSampleLevel_dcbecb() { + float3 arg_2 = (0.0f).xxx; + float arg_3 = 1.0f; + float4 res = arg_0.SampleLevel(arg_1, arg_2, arg_3, (0).xxx); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureSampleLevel_dcbecb(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureSampleLevel_dcbecb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureSampleLevel_dcbecb(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c83a95c0fd --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_05ce15() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_05ce15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_05ce15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_05ce15(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8adf145298 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_064c7f() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_064c7f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_064c7f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_064c7f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..092e801f92 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_068641() { + int3 arg_1 = (0).xxx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_068641(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_068641(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_068641(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0e877b0d3 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_0af6b5() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_0af6b5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_0af6b5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_0af6b5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2c960efa6f --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_0c3dff() { + int2 arg_1 = (0).xx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_0c3dff(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_0c3dff(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_0c3dff(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e256ac82da --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_102722() { + int arg_1 = 1; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_102722(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_102722(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_102722(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9bbd9cf51d --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_1bbd08() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_1bbd08(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_1bbd08(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_1bbd08(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4fe7a79eec --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_1c02e7() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 arg_3 = (0).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_1c02e7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_1c02e7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_1c02e7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ac28249652 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_22d955() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 arg_3 = (0u).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_22d955(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_22d955(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_22d955(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57341d9428 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_26bf70() { + int2 arg_1 = (0).xx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_26bf70(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_26bf70(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_26bf70(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..63eefce1cc --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_2796b4() { + int3 arg_1 = (0).xxx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2796b4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2796b4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2796b4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..299e980785 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2ac6c7() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2ac6c7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2ac6c7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2ac6c7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..36b1326f29 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2eb2a4() { + int arg_1 = 1; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2eb2a4(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2eb2a4(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2eb2a4(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5d63a7b6ae --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_2ed2a3() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_2ed2a3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_2ed2a3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_2ed2a3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33865302fc --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_31745b() { + int2 arg_1 = (0).xx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_31745b(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_31745b(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_31745b(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c217b20a2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_32f368() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_32f368(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_32f368(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_32f368(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1070c26429 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_331aee() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_331aee(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_331aee(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_331aee(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6e867ecc1c --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_38e8d7() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 arg_3 = (0u).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_38e8d7(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_38e8d7(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_38e8d7(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f682606ef8 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_3a52ac() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 arg_3 = (0).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3a52ac(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3a52ac(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3a52ac(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e18ed4d8d4 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_3bb7a1() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3bb7a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3bb7a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3bb7a1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7092f585ae --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_3bec15() { + int arg_1 = 1; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_3bec15(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_3bec15(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_3bec15(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3af481a9be --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_441ba8() { + int3 arg_1 = (0).xxx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_441ba8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_441ba8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_441ba8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ee4b614355 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_4fc057() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_4fc057(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_4fc057(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_4fc057(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f6002770bf --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_5a2f8f() { + int arg_1 = 1; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_5a2f8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_5a2f8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_5a2f8f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..15c91c67eb --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_60975f() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_60975f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_60975f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_60975f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..613ddb2446 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_682fd6() { + int2 arg_1 = (0).xx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_682fd6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_682fd6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_682fd6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d1842f9a0f --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_6b75c3() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6b75c3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6b75c3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6b75c3(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dc45c996a0 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_6b80d2() { + int arg_1 = 1; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6b80d2(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6b80d2(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6b80d2(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..030b9a173c --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_6cff2e() { + int2 arg_1 = (0).xx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6cff2e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6cff2e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6cff2e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2188ce1d44 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_6da692() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 arg_3 = (0u).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_6da692(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_6da692(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_6da692(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..96475461bf --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_731349() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_731349(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_731349(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_731349(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..74afe66697 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_752da6() { + int2 arg_1 = (0).xx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_752da6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_752da6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_752da6(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04dafb025f --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_77c0ae() { + int2 arg_1 = (0).xx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_77c0ae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_77c0ae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_77c0ae(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d31432b373 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_7cec8d() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 arg_3 = (0).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_7cec8d(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_7cec8d(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_7cec8d(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d80e547de --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_7f7fae() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_7f7fae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_7f7fae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_7f7fae(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f2f0dd3b7d --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_804942() { + int2 arg_1 = (0).xx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_804942(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_804942(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_804942(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b251d9f807 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_805dae() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_805dae(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_805dae(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_805dae(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b606a3a1ab --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_83bcc1() { + int arg_1 = 1; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_83bcc1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_83bcc1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_83bcc1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9c937a509e --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_872747() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_872747(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_872747(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_872747(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..24d93ef7cf --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_8e0479() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 arg_3 = (0u).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_8e0479(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_8e0479(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_8e0479(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..513e3775f0 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_8f71a1() { + int3 arg_1 = (0).xxx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_8f71a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_8f71a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_8f71a1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abe1eac2a2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_969534() { + int arg_1 = 1; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_969534(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_969534(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_969534(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f6dae1cba2 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_9a3ecc() { + int3 arg_1 = (0).xxx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9a3ecc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9a3ecc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9a3ecc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..63531a6046 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_9d9cd5() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9d9cd5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9d9cd5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9d9cd5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c02acb52b --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_9e3ec5() { + int2 arg_1 = (0).xx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_9e3ec5(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_9e3ec5(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_9e3ec5(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b36799d5e1 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ac67aa() { + int3 arg_1 = (0).xxx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ac67aa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ac67aa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ac67aa(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e961147c9 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_b706b1() { + int3 arg_1 = (0).xxx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_b706b1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_b706b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_b706b1(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..366a2e7824 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_bbcb7f() { + int2 arg_1 = (0).xx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_bbcb7f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_bbcb7f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_bbcb7f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67ff8b2119 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture2D arg_0 : register(u0, space1); + +void textureStore_be6e30() { + int2 arg_1 = (0).xx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_be6e30(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_be6e30(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_be6e30(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c75cb0ba5b --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_bf775c() { + int arg_1 = 1; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_bf775c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_bf775c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_bf775c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c52db8f8be --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_c5af1e() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_c5af1e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_c5af1e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_c5af1e(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf1dd2cb3c --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_c863be() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + float4 arg_3 = (0.0f).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_c863be(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_c863be(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_c863be(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e4f893ab01 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_d73b5c() { + int arg_1 = 1; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_d73b5c(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_d73b5c(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_d73b5c(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..303f614926 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_dd7d81() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_dd7d81(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_dd7d81(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_dd7d81(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8bda58b0d5 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_dde364() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + uint4 arg_3 = (0u).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_dde364(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_dde364(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_dde364(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3a6acf9920 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_e885e8() { + int arg_1 = 1; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_e885e8(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_e885e8(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_e885e8(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..55d4e79233 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_eb702f() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_eb702f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_eb702f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_eb702f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c798708dd7 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_eb78b9() { + int3 arg_1 = (0).xxx; + int4 arg_2 = (0).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_eb78b9(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_eb78b9(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_eb78b9(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a6ce8c7b0f --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ee6acc() { + int3 arg_1 = (0).xxx; + float4 arg_2 = (0.0f).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ee6acc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ee6acc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ee6acc(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ded9f9515a --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_ef9f2f() { + int3 arg_1 = (0).xxx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_ef9f2f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_ef9f2f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_ef9f2f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94111fb252 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture3D arg_0 : register(u0, space1); + +void textureStore_f8dead() { + int3 arg_1 = (0).xxx; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_f8dead(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_f8dead(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_f8dead(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..129bfb8de6 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_f9be83() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 arg_3 = (0).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_f9be83(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_f9be83(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_f9be83(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7e5b23d042 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.fxc.hlsl @@ -0,0 +1,34 @@ +RWTexture1D arg_0 : register(u0, space1); + +void textureStore_fb9a8f() { + int arg_1 = 1; + uint4 arg_2 = (0u).xxxx; + arg_0[arg_1] = arg_2; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_fb9a8f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_fb9a8f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_fb9a8f(); + return; +} diff --git a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.hlsl b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..46a154da23 --- /dev/null +++ b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.fxc.hlsl @@ -0,0 +1,35 @@ +RWTexture2DArray arg_0 : register(u0, space1); + +void textureStore_fbf53f() { + int2 arg_1 = (0).xx; + int arg_2 = 1; + int4 arg_3 = (0).xxxx; + arg_0[int3(arg_1, arg_2)] = arg_3; +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + textureStore_fbf53f(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + textureStore_fbf53f(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + textureStore_fbf53f(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1dad91c813 --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_2585cd() { + float4x3 arg_0 = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); + float3x4 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_2585cd(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_2585cd(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_2585cd(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c777bd0397 --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_31d679() { + float2x2 arg_0 = float2x2((0.0f).xx, (0.0f).xx); + float2x2 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_31d679(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_31d679(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_31d679(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c3edf30d28 --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_31e37e() { + float4x2 arg_0 = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); + float2x4 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_31e37e(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_31e37e(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_31e37e(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6c67d928be --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_4ce359() { + float2x4 arg_0 = float2x4((0.0f).xxxx, (0.0f).xxxx); + float4x2 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_4ce359(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_4ce359(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_4ce359(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..129d6ca1df --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_4dc9a1() { + float2x3 arg_0 = float2x3((0.0f).xxx, (0.0f).xxx); + float3x2 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_4dc9a1(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_4dc9a1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_4dc9a1(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/854336.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/854336.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a4fa125515 --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_854336() { + float3x3 arg_0 = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); + float3x3 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_854336(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_854336(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_854336(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eb1524a143 --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_c1b600() { + float4x4 arg_0 = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + float4x4 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_c1b600(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_c1b600(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_c1b600(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2a984c8f8d --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_d8f8ba() { + float3x4 arg_0 = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + float4x3 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_d8f8ba(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_d8f8ba(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_d8f8ba(); + return; +} diff --git a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.hlsl b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3b65766bb --- /dev/null +++ b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void transpose_ed4bdc() { + float3x2 arg_0 = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); + float2x3 res = transpose(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + transpose_ed4bdc(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + transpose_ed4bdc(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + transpose_ed4bdc(); + return; +} diff --git a/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.hlsl b/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7ac694bc9 --- /dev/null +++ b/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void trunc_562d05() { + float3 arg_0 = (0.0f).xxx; + float3 res = trunc(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_562d05(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_562d05(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_562d05(); + return; +} diff --git a/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.hlsl b/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b69f9649eb --- /dev/null +++ b/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void trunc_e183aa() { + float4 arg_0 = (0.0f).xxxx; + float4 res = trunc(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_e183aa(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_e183aa(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_e183aa(); + return; +} diff --git a/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.hlsl b/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f13d9aa9c --- /dev/null +++ b/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void trunc_eb83df() { + float arg_0 = 1.0f; + float res = trunc(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_eb83df(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_eb83df(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_eb83df(); + return; +} diff --git a/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..79c0c0e8f5 --- /dev/null +++ b/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +void trunc_f370d3() { + float2 arg_0 = (0.0f).xx; + float2 res = trunc(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + trunc_f370d3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + trunc_f370d3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + trunc_f370d3(); + return; +} diff --git a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.hlsl b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1497db89b3 --- /dev/null +++ b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +float2 tint_unpack2x16float(uint param_0) { + uint i = param_0; + return f16tof32(uint2(i & 0xffff, i >> 16)); +} + +void unpack2x16float_32a5cf() { + uint arg_0 = 1u; + float2 res = tint_unpack2x16float(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16float_32a5cf(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16float_32a5cf(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16float_32a5cf(); + return; +} diff --git a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.hlsl b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ab650e8f52 --- /dev/null +++ b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +float2 tint_unpack2x16snorm(uint param_0) { + int j = int(param_0); + int2 i = int2(j << 16, j) >> 16; + return clamp(float2(i) / 32767.0, -1.0, 1.0); +} + +void unpack2x16snorm_b4aea6() { + uint arg_0 = 1u; + float2 res = tint_unpack2x16snorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16snorm_b4aea6(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16snorm_b4aea6(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16snorm_b4aea6(); + return; +} diff --git a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.hlsl b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..acf38cabbc --- /dev/null +++ b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +float2 tint_unpack2x16unorm(uint param_0) { + uint j = param_0; + uint2 i = uint2(j & 0xffff, j >> 16); + return float2(i) / 65535.0; +} + +void unpack2x16unorm_7699c0() { + uint arg_0 = 1u; + float2 res = tint_unpack2x16unorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack2x16unorm_7699c0(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack2x16unorm_7699c0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack2x16unorm_7699c0(); + return; +} diff --git a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.hlsl b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b7cc7308a4 --- /dev/null +++ b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +float4 tint_unpack4x8snorm(uint param_0) { + int j = int(param_0); + int4 i = int4(j << 24, j << 16, j << 8, j) >> 24; + return clamp(float4(i) / 127.0, -1.0, 1.0); +} + +void unpack4x8snorm_523fb3() { + uint arg_0 = 1u; + float4 res = tint_unpack4x8snorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack4x8snorm_523fb3(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack4x8snorm_523fb3(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack4x8snorm_523fb3(); + return; +} diff --git a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.hlsl b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.hlsl rename to test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8cbb85395a --- /dev/null +++ b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +float4 tint_unpack4x8unorm(uint param_0) { + uint j = param_0; + uint4 i = uint4(j & 0xff, (j >> 8) & 0xff, (j >> 16) & 0xff, j >> 24); + return float4(i) / 255.0; +} + +void unpack4x8unorm_750c74() { + uint arg_0 = 1u; + float4 res = tint_unpack4x8unorm(arg_0); +} + +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + unpack4x8unorm_750c74(); + return (0.0f).xxxx; +} + +tint_symbol vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + unpack4x8unorm_750c74(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + unpack4x8unorm_750c74(); + return; +} diff --git a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..8879f79963 --- /dev/null +++ b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +void workgroupBarrier_a17f7f() { + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void compute_main() { + workgroupBarrier_a17f7f(); + return; +} diff --git a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8879f79963 --- /dev/null +++ b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +void workgroupBarrier_a17f7f() { + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void compute_main() { + workgroupBarrier_a17f7f(); + return; +} diff --git a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/insertBits/scalar/i32.spvasm.expected.hlsl rename to test/tint/builtins/insertBits/scalar/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..8819221525 --- /dev/null +++ b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +int tint_insert_bits(int v, int n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & int(mask)) | (v & int(~(mask)))); +} + +void f_1() { + int v = 0; + int n = 0; + uint offset_1 = 0u; + uint count = 0u; + const int x_15 = tint_insert_bits(v, n, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/insertBits/scalar/u32.spvasm.expected.hlsl rename to test/tint/builtins/insertBits/scalar/u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3d759c7e1c --- /dev/null +++ b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +uint tint_insert_bits(uint v, uint n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << s) & mask) | (v & ~(mask))); +} + +void f_1() { + uint v = 0u; + uint n = 0u; + uint offset_1 = 0u; + uint count = 0u; + const uint x_12 = tint_insert_bits(v, n, offset_1, count); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl rename to test/tint/builtins/insertBits/vec3/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.fxc.hlsl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..65915104b3 --- /dev/null +++ b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & int3((int(mask)).xxx)) | (v & int3((int(~(mask))).xxx))); +} + +void f_1() { + 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); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl rename to test/tint/builtins/insertBits/vec3/u32.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.fxc.hlsl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..9d914838a0 --- /dev/null +++ b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.fxc.hlsl @@ -0,0 +1,21 @@ +uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { + const uint s = min(offset, 32u); + const uint e = min(32u, (s + count)); + const uint mask = (((1u << s) - 1u) ^ ((1u << e) - 1u)); + return (((n << uint3((s).xxx)) & uint3((mask).xxx)) | (v & uint3((~(mask)).xxx))); +} + +void f_1() { + 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); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/builtins/modf.wgsl.expected.hlsl b/test/tint/builtins/modf.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/modf.wgsl.expected.hlsl rename to test/tint/builtins/modf.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/modf.wgsl.expected.fxc.hlsl b/test/tint/builtins/modf.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d2bdca4499 --- /dev/null +++ b/test/tint/builtins/modf.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct modf_result { + float fract; + float whole; +}; +modf_result tint_modf(float param_0) { + float whole; + float fract = modf(param_0, whole); + modf_result result = {fract, whole}; + return result; +} + +[numthreads(1, 1, 1)] +void main() { + const modf_result res = tint_modf(1.230000019f); + const float fract = res.fract; + const float whole = res.whole; + return; +} diff --git a/test/tint/builtins/radians.spvasm.expected.hlsl b/test/tint/builtins/radians.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/radians.spvasm.expected.hlsl rename to test/tint/builtins/radians.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/radians.spvasm.expected.fxc.hlsl b/test/tint/builtins/radians.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b573cec1c6 --- /dev/null +++ b/test/tint/builtins/radians.spvasm.expected.fxc.hlsl @@ -0,0 +1,17 @@ +float tint_radians(float param_0) { + return param_0 * 0.017453292519943295474; +} + +void main_1() { + float a = 0.0f; + float b = 0.0f; + a = 42.0f; + b = tint_radians(a); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/builtins/repeated_use.wgsl.expected.hlsl b/test/tint/builtins/repeated_use.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/repeated_use.wgsl.expected.hlsl rename to test/tint/builtins/repeated_use.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/repeated_use.wgsl.expected.fxc.hlsl b/test/tint/builtins/repeated_use.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..721724d053 --- /dev/null +++ b/test/tint/builtins/repeated_use.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +float4 tint_degrees(float4 param_0) { + return param_0 * 57.295779513082322865; +} + +float3 tint_degrees_1(float3 param_0) { + return param_0 * 57.295779513082322865; +} + +float2 tint_degrees_2(float2 param_0) { + return param_0 * 57.295779513082322865; +} + +float tint_degrees_3(float param_0) { + return param_0 * 57.295779513082322865; +} + +[numthreads(1, 1, 1)] +void main() { + tint_degrees((0.0f).xxxx); + tint_degrees((1.0f).xxxx); + tint_degrees(float4(1.0f, 2.0f, 3.0f, 4.0f)); + 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((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); + tint_degrees_3(3.0f); + return; +} diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl rename to test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.fxc.hlsl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1f9139f59b --- /dev/null +++ b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.fxc.hlsl @@ -0,0 +1,63 @@ +Texture2DMS arg_0 : register(t0, space1); +static float4 tint_symbol_1 = (0.0f).xxxx; + +void textureDimensions_f60bdb() { + 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); + res = x_16; + return; +} + +void tint_symbol_2(float4 tint_symbol) { + tint_symbol_1 = tint_symbol; + return; +} + +void vertex_main_1() { + textureDimensions_f60bdb(); + tint_symbol_2((0.0f).xxxx); + return; +} + +struct vertex_main_out { + float4 tint_symbol_1_1; +}; +struct tint_symbol_3 { + float4 tint_symbol_1_1 : SV_Position; +}; + +vertex_main_out vertex_main_inner() { + vertex_main_1(); + const vertex_main_out tint_symbol_4 = {tint_symbol_1}; + return tint_symbol_4; +} + +tint_symbol_3 vertex_main() { + const vertex_main_out inner_result = vertex_main_inner(); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; + return wrapper_result; +} + +void fragment_main_1() { + textureDimensions_f60bdb(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + textureDimensions_f60bdb(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/f32/alpha.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f63ae88f46 --- /dev/null +++ b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/f32/blue.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/f32/blue.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..56e8a18b7b --- /dev/null +++ b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/f32/green.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/f32/green.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/f32/green.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/f32/green.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c56f1aaa6e --- /dev/null +++ b/test/tint/builtins/textureGather/f32/green.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/f32/red.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/f32/red.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/f32/red.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/f32/red.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..21d576122b --- /dev/null +++ b/test/tint/builtins/textureGather/f32/red.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/i32/alpha.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/i32/alpha.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f3e0cbe4ee --- /dev/null +++ b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/i32/blue.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/i32/blue.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4590910bc7 --- /dev/null +++ b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/i32/green.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/i32/green.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/i32/green.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/i32/green.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a642fc96df --- /dev/null +++ b/test/tint/builtins/textureGather/i32/green.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/i32/red.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/i32/red.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/i32/red.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/i32/red.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1f0d11ff7 --- /dev/null +++ b/test/tint/builtins/textureGather/i32/red.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/u32/alpha.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/u32/alpha.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..abad934a81 --- /dev/null +++ b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/u32/blue.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/u32/blue.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..54ed2add9c --- /dev/null +++ b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/u32/green.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/u32/green.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/u32/green.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/u32/green.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95d7018c6d --- /dev/null +++ b/test/tint/builtins/textureGather/u32/green.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureGather/u32/red.wgsl.expected.hlsl rename to test/tint/builtins/textureGather/u32/red.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureGather/u32/red.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureGather/u32/red.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ba8405fa44 --- /dev/null +++ b/test/tint/builtins/textureGather/u32/red.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +Texture2D t : register(t0, space1); +SamplerState s : register(s1, space1); + +void main() { + 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.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureLoad/depth_ms.spvasm.expected.hlsl rename to test/tint/builtins/textureLoad/depth_ms.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.fxc.hlsl b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..79113c0419 --- /dev/null +++ b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.fxc.hlsl @@ -0,0 +1,61 @@ +Texture2DMS arg_0 : register(t0, space1); +static float4 tint_symbol_1 = (0.0f).xxxx; + +void textureLoad_6273b1() { + float res = 0.0f; + const float4 x_17 = float4(arg_0.Load(int3(0, 0, 0), 1).x, 0.0f, 0.0f, 0.0f); + res = x_17.x; + return; +} + +void tint_symbol_2(float4 tint_symbol) { + tint_symbol_1 = tint_symbol; + return; +} + +void vertex_main_1() { + textureLoad_6273b1(); + tint_symbol_2((0.0f).xxxx); + return; +} + +struct vertex_main_out { + float4 tint_symbol_1_1; +}; +struct tint_symbol_3 { + float4 tint_symbol_1_1 : SV_Position; +}; + +vertex_main_out vertex_main_inner() { + vertex_main_1(); + const vertex_main_out tint_symbol_4 = {tint_symbol_1}; + return tint_symbol_4; +} + +tint_symbol_3 vertex_main() { + const vertex_main_out inner_result = vertex_main_inner(); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; + return wrapper_result; +} + +void fragment_main_1() { + textureLoad_6273b1(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + textureLoad_6273b1(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl rename to test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2f84d98a3 --- /dev/null +++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.fxc.hlsl @@ -0,0 +1,115 @@ +struct GammaTransferParams { + float G; + float A; + float B; + float C; + float D; + float E; + float F; + uint padding; +}; +struct ExternalTextureParams { + uint numPlanes; + uint doYuvToRgbConversionOnly; + float3x4 yuvToRgbConversionMatrix; + GammaTransferParams gammaDecodeParams; + GammaTransferParams gammaEncodeParams; + float3x3 gamutConversionMatrix; +}; + +Texture2D ext_tex_plane_1 : register(t1, space1); +cbuffer cbuffer_ext_tex_params : register(b2, space1) { + uint4 ext_tex_params[11]; +}; +Texture2D arg_0 : register(t0, space1); + +float3 gammaCorrection(float3 v, GammaTransferParams params) { + const bool3 cond = (abs(v) < float3((params.D).xxx)); + const float3 t = (sign(v) * ((params.C * abs(v)) + params.F)); + const float3 f = (sign(v) * (pow(((params.A * abs(v)) + params.B), float3((params.G).xxx)) + params.E)); + return (cond ? t : f); +} + +float4 textureLoadExternal(Texture2D plane0, Texture2D plane1, int2 coord, ExternalTextureParams params) { + float3 color = float3(0.0f, 0.0f, 0.0f); + if ((params.numPlanes == 1u)) { + color = plane0.Load(int3(coord, 0)).rgb; + } else { + color = mul(params.yuvToRgbConversionMatrix, float4(plane0.Load(int3(coord, 0)).r, plane1.Load(int3(coord, 0)).rg, 1.0f)); + } + if ((params.doYuvToRgbConversionOnly == 0u)) { + color = gammaCorrection(color, params.gammaDecodeParams); + color = mul(color, params.gamutConversionMatrix); + color = gammaCorrection(color, params.gammaEncodeParams); + } + return float4(color, 1.0f); +} + +float4 textureLoad2d(Texture2D tint_symbol, Texture2D ext_tex_plane_1_1, ExternalTextureParams ext_tex_params_1, int2 coords) { + return textureLoadExternal(tint_symbol, ext_tex_plane_1_1, coords, ext_tex_params_1); +} + +float3x4 tint_symbol_4(uint4 buffer[11], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4])); +} + +GammaTransferParams tint_symbol_6(uint4 buffer[11], uint offset) { + const uint scalar_offset_3 = ((offset + 0u)) / 4; + const uint scalar_offset_4 = ((offset + 4u)) / 4; + const uint scalar_offset_5 = ((offset + 8u)) / 4; + const uint scalar_offset_6 = ((offset + 12u)) / 4; + const uint scalar_offset_7 = ((offset + 16u)) / 4; + const uint scalar_offset_8 = ((offset + 20u)) / 4; + const uint scalar_offset_9 = ((offset + 24u)) / 4; + const uint scalar_offset_10 = ((offset + 28u)) / 4; + const GammaTransferParams tint_symbol_10 = {asfloat(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), asfloat(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), asfloat(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4]), asfloat(buffer[scalar_offset_6 / 4][scalar_offset_6 % 4]), asfloat(buffer[scalar_offset_7 / 4][scalar_offset_7 % 4]), asfloat(buffer[scalar_offset_8 / 4][scalar_offset_8 % 4]), asfloat(buffer[scalar_offset_9 / 4][scalar_offset_9 % 4]), buffer[scalar_offset_10 / 4][scalar_offset_10 % 4]}; + return tint_symbol_10; +} + +float3x3 tint_symbol_8(uint4 buffer[11], uint offset) { + const uint scalar_offset_11 = ((offset + 0u)) / 4; + const uint scalar_offset_12 = ((offset + 16u)) / 4; + const uint scalar_offset_13 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset_11 / 4].xyz), asfloat(buffer[scalar_offset_12 / 4].xyz), asfloat(buffer[scalar_offset_13 / 4].xyz)); +} + +ExternalTextureParams tint_symbol_2(uint4 buffer[11], uint offset) { + const uint scalar_offset_14 = ((offset + 0u)) / 4; + const uint scalar_offset_15 = ((offset + 4u)) / 4; + const ExternalTextureParams tint_symbol_11 = {buffer[scalar_offset_14 / 4][scalar_offset_14 % 4], buffer[scalar_offset_15 / 4][scalar_offset_15 % 4], tint_symbol_4(buffer, (offset + 16u)), tint_symbol_6(buffer, (offset + 64u)), tint_symbol_6(buffer, (offset + 96u)), tint_symbol_8(buffer, (offset + 128u))}; + return tint_symbol_11; +} + +void doTextureLoad() { + float4 res = textureLoad2d(arg_0, ext_tex_plane_1, tint_symbol_2(ext_tex_params, 0u), (0).xx); +} + +struct tint_symbol_1 { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + doTextureLoad(); + return (0.0f).xxxx; +} + +tint_symbol_1 vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + doTextureLoad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + doTextureLoad(); + return; +} diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl rename to test/tint/builtins/textureLoad/texture_param.wgsl.expected.dxc.hlsl diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.fxc.hlsl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e4f441ebd0 --- /dev/null +++ b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +Texture2D arg_0 : register(t0, space1); + +int4 textureLoad2d(Texture2D tint_symbol, int2 coords, int level) { + return tint_symbol.Load(int3(coords, level)); +} + +void doTextureLoad() { + int4 res = textureLoad2d(arg_0, (0).xx, 0); +} + +struct tint_symbol_1 { + float4 value : SV_Position; +}; + +float4 vertex_main_inner() { + doTextureLoad(); + return (0.0f).xxxx; +} + +tint_symbol_1 vertex_main() { + const float4 inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +void fragment_main() { + doTextureLoad(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + doTextureLoad(); + return; +} diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl rename to test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.dxc.hlsl diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.fxc.hlsl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..2fd5b5e493 --- /dev/null +++ b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.fxc.hlsl @@ -0,0 +1,63 @@ +Texture2DMS arg_0 : register(t0, space1); +static float4 tint_symbol_1 = (0.0f).xxxx; + +void textureNumSamples_a3c8a0() { + int res = 0; + int3 tint_tmp; + arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); + const int x_16 = tint_tmp.z; + res = x_16; + return; +} + +void tint_symbol_2(float4 tint_symbol) { + tint_symbol_1 = tint_symbol; + return; +} + +void vertex_main_1() { + textureNumSamples_a3c8a0(); + tint_symbol_2((0.0f).xxxx); + return; +} + +struct vertex_main_out { + float4 tint_symbol_1_1; +}; +struct tint_symbol_3 { + float4 tint_symbol_1_1 : SV_Position; +}; + +vertex_main_out vertex_main_inner() { + vertex_main_1(); + const vertex_main_out tint_symbol_4 = {tint_symbol_1}; + return tint_symbol_4; +} + +tint_symbol_3 vertex_main() { + const vertex_main_out inner_result = vertex_main_inner(); + tint_symbol_3 wrapper_result = (tint_symbol_3)0; + wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; + return wrapper_result; +} + +void fragment_main_1() { + textureNumSamples_a3c8a0(); + return; +} + +void fragment_main() { + fragment_main_1(); + return; +} + +void compute_main_1() { + textureNumSamples_a3c8a0(); + return; +} + +[numthreads(1, 1, 1)] +void compute_main() { + compute_main_1(); + return; +} diff --git a/test/tint/const/global/global.wgsl.expected.hlsl b/test/tint/const/global/global.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/const/global/global.wgsl.expected.hlsl rename to test/tint/const/global/global.wgsl.expected.dxc.hlsl diff --git a/test/tint/const/global/global.wgsl.expected.fxc.hlsl b/test/tint/const/global/global.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc2c4c660b --- /dev/null +++ b/test/tint/const/global/global.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + int v1 = 1; + uint v2 = 1u; + float v3 = 1.0f; + int3 v4 = (1).xxx; + uint3 v5 = (1u).xxx; + float3 v6 = (1.0f).xxx; + float3x3 v7 = float3x3((1.0f).xxx, (1.0f).xxx, (1.0f).xxx); + float v9[10] = (float[10])0; + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/const/inferred/function.wgsl.expected.hlsl b/test/tint/const/inferred/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/const/inferred/function.wgsl.expected.hlsl rename to test/tint/const/inferred/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/const/inferred/function.wgsl.expected.fxc.hlsl b/test/tint/const/inferred/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f60a041791 --- /dev/null +++ b/test/tint/const/inferred/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +void const_decls() { +} + +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e20dd0701c --- /dev/null +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + return; +} diff --git a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7d73fa9945 --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f + 2.0f); + return; +} diff --git a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9a9dd1f034 --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 + 2); + return; +} diff --git a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f540a8170e --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u + 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bab272bbf2 --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a + b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1b2562e535 --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(1, 2, 3); + const int3 r = (a + b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5b43e9e11b --- /dev/null +++ b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(1u, 2u, 3u); + const uint3 r = (a + b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a7fe143d2d --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5875ef7090 --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..056ee37a82 --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2fa34ecac4 --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ff77a02d6 --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a + b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5bf855478c --- /dev/null +++ b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a + b); + return; +} diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..17423e395b --- /dev/null +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const bool r = (true & false); + return; +} diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..632b46c6aa --- /dev/null +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 & 2); + return; +} diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0024712e1e --- /dev/null +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u & 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0975dc9df6 --- /dev/null +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const bool3 a = bool3(true, true, false); + const bool3 b = bool3(true, false, true); + const bool3 r = (a & b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34f8f47958 --- /dev/null +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a & b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e74758f29 --- /dev/null +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a & b); + return; +} diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4818fbd5c7 --- /dev/null +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 | 2); + return; +} diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90fd8af65d --- /dev/null +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u | 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d9541386b --- /dev/null +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a | b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e2c7a5014 --- /dev/null +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a | b); + return; +} diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f3a33ad1eb --- /dev/null +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 ^ 2); + return; +} diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e4b9090cb --- /dev/null +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u ^ 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..db0a3c1aed --- /dev/null +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a ^ b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e29687a334 --- /dev/null +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a ^ b); + return; +} diff --git a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e9f00ff091 --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f / 2.0f); + return; +} diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8fe265a729 --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 / 2); + return; +} diff --git a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1d7c0cdfa --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u / 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3eabba064d --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a / b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c41e7ef6d6 --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(1, 2, 3); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ac675e22d1 --- /dev/null +++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(1u, 2u, 3u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1645a27ab --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..672f46ec18 --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f4dc9cb10 --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7ae0123dbd --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..98c4e64f45 --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f2a501ee5 --- /dev/null +++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a06ee90be9 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f / 0.0f); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67f002e540 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 / 1); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60e18ed73b --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u / 1u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..85db3bff58 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(0.0f, 2.0f, 0.0f); + const float3 r = (a / b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..99ed924ffe --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(0, 2, 0); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1ebcc7f0ca --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c661ab1e6c --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a44ac5b09 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..18d1da5a71 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a / 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..94b990b7f2 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..30d26ca22f --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(0, 5, 0); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c337dc39a8 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bf3a16e737 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 1.0f; + float b = 0.0f; + const float r = (a / (b + b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ed443002a --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int value_or_one_if_zero_int(int value) { + return value == 0 ? 1 : value; +} + +[numthreads(1, 1, 1)] +void f() { + int a = 1; + int b = 0; + const int r = (a / value_or_one_if_zero_int((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec658be559 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint a = 1u; + uint b = 0u; + const uint r = (a / value_or_one_if_zero_uint((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..399b2b9c6a --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 4.0f; + float3 b = float3(0.0f, 2.0f, 0.0f); + const float3 r = (a / (b + b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f23bda330e --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int3 value_or_one_if_zero_int3(int3 value) { + return value == int3(0, 0, 0) ? int3(1, 1, 1) : value; +} + +[numthreads(1, 1, 1)] +void f() { + int a = 4; + int3 b = int3(0, 2, 0); + const int3 r = (a / value_or_one_if_zero_int3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ec3621c697 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint3 value_or_one_if_zero_uint3(uint3 value) { + return value == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint a = 4u; + uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a / value_or_one_if_zero_uint3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..85f1063e05 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float b = 0.0f; + const float3 r = (a / (b + b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..964d2751f3 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int value_or_one_if_zero_int(int value) { + return value == 0 ? 1 : value; +} + +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int b = 0; + const int3 r = (a / value_or_one_if_zero_int((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4bd21bd64 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint b = 0u; + const uint3 r = (a / value_or_one_if_zero_uint((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..413547827e --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float3 b = float3(0.0f, 5.0f, 0.0f); + const float3 r = (a / (b + b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fefc614241 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int3 value_or_one_if_zero_int3(int3 value) { + return value == int3(0, 0, 0) ? int3(1, 1, 1) : value; +} + +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int3 b = int3(0, 5, 0); + const int3 r = (a / value_or_one_if_zero_int3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..841bf62a9f --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint3 value_or_one_if_zero_uint3(uint3 value) { + return value == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a / value_or_one_if_zero_uint3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..47c924ed1f --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 1.0f; + float b = 0.0f; + const float r = (a / b); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..111cfc9df4 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int a = 1; + int b = 0; + const int r = (a / (b == 0 ? 1 : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..289c446b63 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint a = 1u; + uint b = 0u; + const uint r = (a / (b == 0u ? 1u : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f9cc203c7 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 4.0f; + float3 b = float3(0.0f, 2.0f, 0.0f); + const float3 r = (a / b); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..24f0e8fde9 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int a = 4; + int3 b = int3(0, 2, 0); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0692d218e0 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint a = 4u; + uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8d9066901f --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float b = 0.0f; + const float3 r = (a / b); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f87f70de4 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int b = 0; + const int3 r = (a / (b == 0 ? 1 : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..012cb29b31 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint b = 0u; + const uint3 r = (a / (b == 0u ? 1u : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ed2f85934 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float3 b = float3(0.0f, 5.0f, 0.0f); + const float3 r = (a / b); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3e1ba7ffa9 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int3 b = int3(0, 5, 0); + const int3 r = (a / (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + return; +} diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5f022e4092 --- /dev/null +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a / (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9b54fe4a73 --- /dev/null +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 << 2u); + return; +} diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3195ab7638 --- /dev/null +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u << 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d43dfb6f80 --- /dev/null +++ b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const uint3 b = uint3(4u, 5u, 6u); + const int3 r = (a << b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2de16f0c9b --- /dev/null +++ b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a << b); + return; +} diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d9e671ccd --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f % 2.0f); + return; +} diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9088e51d9f --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 % 2); + return; +} diff --git a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e5e11c531a --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u % 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b2653df18a --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a % b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..847b0fbbe2 --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(1, 2, 3); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..396d57a875 --- /dev/null +++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(1u, 2u, 3u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3aca50d29f --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a % 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1abee48ed0 --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a % 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2d051d102 --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a % 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..87e4dd4a72 --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..86d89a53e5 --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5d234b8432 --- /dev/null +++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d3de7dbaa6 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f % 0.0f); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b79aad9396 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 % 1); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..241c5f5c2b --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u % 1u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dfe722c849 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(0, 2, 0); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5583772270 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6906266038 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a % 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d8b0b4eef --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a % 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ea2fbd98f --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ce3cfcaaaa --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(0, 5, 0); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ef3ed4541b --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..468c33d586 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 1.0f; + float b = 0.0f; + const float r = (a % (b + b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd4f932ff7 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int value_or_one_if_zero_int(int value) { + return value == 0 ? 1 : value; +} + +[numthreads(1, 1, 1)] +void f() { + int a = 1; + int b = 0; + const int r = (a % value_or_one_if_zero_int((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f8f7511f41 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint a = 1u; + uint b = 0u; + const uint r = (a % value_or_one_if_zero_uint((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8e8a7d0533 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int3 value_or_one_if_zero_int3(int3 value) { + return value == int3(0, 0, 0) ? int3(1, 1, 1) : value; +} + +[numthreads(1, 1, 1)] +void f() { + int a = 4; + int3 b = int3(0, 2, 0); + const int3 r = (a % value_or_one_if_zero_int3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2330363261 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint3 value_or_one_if_zero_uint3(uint3 value) { + return value == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint a = 4u; + uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a % value_or_one_if_zero_uint3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ea6b4cbb42 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int value_or_one_if_zero_int(int value) { + return value == 0 ? 1 : value; +} + +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int b = 0; + const int3 r = (a % value_or_one_if_zero_int((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dca1662c8d --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint value_or_one_if_zero_uint(uint value) { + return value == 0u ? 1u : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint b = 0u; + const uint3 r = (a % value_or_one_if_zero_uint((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8d2155076d --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float3 b = float3(0.0f, 5.0f, 0.0f); + const float3 r = (a % (b + b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f33a43d8ef --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +int3 value_or_one_if_zero_int3(int3 value) { + return value == int3(0, 0, 0) ? int3(1, 1, 1) : value; +} + +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int3 b = int3(0, 5, 0); + const int3 r = (a % value_or_one_if_zero_int3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f112cf8458 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +uint3 value_or_one_if_zero_uint3(uint3 value) { + return value == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : value; +} + +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a % value_or_one_if_zero_uint3((b + b))); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d43aff25b --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float a = 1.0f; + float b = 0.0f; + const float r = (a % b); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f27720ec7 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int a = 1; + int b = 0; + const int r = (a % (b == 0 ? 1 : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc3d3c11d4 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint a = 1u; + uint b = 0u; + const uint r = (a % (b == 0u ? 1u : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0b14c77017 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int a = 4; + int3 b = int3(0, 2, 0); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fa88822f21 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint a = 4u; + uint3 b = uint3(0u, 2u, 0u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..208637ee75 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int b = 0; + const int3 r = (a % (b == 0 ? 1 : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0cb79cfea2 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint b = 0u; + const uint3 r = (a % (b == 0u ? 1u : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..636719b6d6 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + float3 a = float3(1.0f, 2.0f, 3.0f); + float3 b = float3(0.0f, 5.0f, 0.0f); + const float3 r = (a % b); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..97e59e6254 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + int3 a = int3(1, 2, 3); + int3 b = int3(0, 5, 0); + const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b)); + return; +} diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b041731b55 --- /dev/null +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + uint3 a = uint3(1u, 2u, 3u); + uint3 b = uint3(0u, 5u, 0u); + const uint3 r = (a % (b == uint3(0u, 0u, 0u) ? uint3(1u, 1u, 1u) : b)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c502b098d5 --- /dev/null +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + return; +} diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6e12e5cfc5 --- /dev/null +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +cbuffer cbuffer_data : register(b0, space0) { + uint4 data[3]; +}; + +float3x2 tint_symbol_2(uint4 buffer[3], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + uint4 ubo_load = buffer[scalar_offset / 4]; + const uint scalar_offset_1 = ((offset + 8u)) / 4; + uint4 ubo_load_1 = buffer[scalar_offset_1 / 4]; + const uint scalar_offset_2 = ((offset + 16u)) / 4; + uint4 ubo_load_2 = buffer[scalar_offset_2 / 4]; + return float3x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy)), asfloat(((scalar_offset_2 & 2) ? ubo_load_2.zw : ubo_load_2.xy))); +} + +void main() { + const float2 x = mul(asfloat(data[2].xyz), tint_symbol_2(data, 0u)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..22af87eee1 --- /dev/null +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + return; +} diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c680c08b29 --- /dev/null +++ b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +cbuffer cbuffer_data : register(b0, space0) { + uint4 data[4]; +}; + +float3x3 tint_symbol_2(uint4 buffer[4], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz), asfloat(buffer[scalar_offset_2 / 4].xyz)); +} + +void main() { + const float3 x = mul(asfloat(data[3].xyz), tint_symbol_2(data, 0u)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f4028af0e --- /dev/null +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + return; +} diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a2d27f9b82 --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f * 2.0f); + return; +} diff --git a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4b93ecb2bf --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 * 2); + return; +} diff --git a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4623783d4f --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u * 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ab39cdc7f0 --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a * b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6d7c62af51 --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(1, 2, 3); + const int3 r = (a * b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..73ec042b26 --- /dev/null +++ b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(1u, 2u, 3u); + const uint3 r = (a * b); + return; +} diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4bd768f2a7 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +cbuffer cbuffer_data : register(b0, space0) { + uint4 data[4]; +}; + +float3x3 tint_symbol_3(uint4 buffer[4], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + return float3x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz), asfloat(buffer[scalar_offset_2 / 4].xyz)); +} + +void main() { + const float3 x = mul(tint_symbol_3(data, 0u), asfloat(data[3].xyz)); + return; +} diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..574af42142 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +cbuffer cbuffer_data : register(b0, space0) { + uint4 data[5]; +}; + +float4x3 tint_symbol_3(uint4 buffer[5], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const uint scalar_offset_3 = ((offset + 48u)) / 4; + return float4x3(asfloat(buffer[scalar_offset / 4].xyz), asfloat(buffer[scalar_offset_1 / 4].xyz), asfloat(buffer[scalar_offset_2 / 4].xyz), asfloat(buffer[scalar_offset_3 / 4].xyz)); +} + +void main() { + const float4 x = mul(tint_symbol_3(data, 0u), asfloat(data[4].xyz)); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..646399da07 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a * 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e86c189375 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a * 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d61b59a580 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a * 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8a51b14eeb --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d532aaf513 --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a * b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5db3034bcc --- /dev/null +++ b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a * b); + return; +} diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..861995c7bc --- /dev/null +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 >> 2u); + return; +} diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4e90e73f1d --- /dev/null +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u >> 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2520c5e787 --- /dev/null +++ b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const uint3 b = uint3(4u, 5u, 6u); + const int3 r = (a >> b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1c57ee7a4d --- /dev/null +++ b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a >> b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9d1b2b3fb1 --- /dev/null +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + return; +} diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..04ab363789 --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float r = (1.0f - 2.0f); + return; +} diff --git a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f995b55ca --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int r = (1 - 2); + return; +} diff --git a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..23719acecc --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint r = (1u - 2u); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d714c62fc1 --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const float a = 4.0f; + const float3 b = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a - b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1e67f1327e --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int a = 4; + const int3 b = int3(1, 2, 3); + const int3 r = (a - b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90f540d219 --- /dev/null +++ b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint a = 4u; + const uint3 b = uint3(1u, 2u, 3u); + const uint3 r = (a - b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0476c62e45 --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 r = (a - 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8db37c95f4 --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 r = (a - 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a9b7eefbc --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 r = (a - 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4a568e530 --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +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); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e8a26227e0 --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = int3(4, 5, 6); + const int3 r = (a - b); + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a8d03f66d --- /dev/null +++ b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = uint3(4u, 5u, 6u); + const uint3 r = (a - b); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2e5fee687b --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float b = asfloat(1.0f); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e7f1a217a5 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int b = asint(1.0f); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..289a1d5241 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint b = asuint(1.0f); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2fcce4faea --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float b = asfloat(1); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4fc4846484 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int b = asint(1); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d85da9add3 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint b = asuint(1); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6044ed9a5c --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint b = asuint(-2147483648); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a00f3bdd8 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const float b = asfloat(1u); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2650dff4d6 --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const int b = asint(1u); + return; +} diff --git a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..62d26becba --- /dev/null +++ b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void f() { + const uint b = asuint(1u); + return; +} diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6ce40345d --- /dev/null +++ b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const float3 b = asfloat(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ebeb519e8 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const int3 b = asint(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9490820770 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const float3 a = float3(1.0f, 2.0f, 3.0f); + const uint3 b = asuint(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..73bb1187e9 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const float3 b = asfloat(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2304f932c2 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const int3 b = asint(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..80e6646d61 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const int3 a = int3(1, 2, 3); + const uint3 b = asuint(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..72084e94a0 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const float3 b = asfloat(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..66223231b8 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const int3 b = asint(a); + return; +} diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl rename to test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..71f2935211 --- /dev/null +++ b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void f() { + const uint3 a = uint3(1u, 2u, 3u); + const uint3 b = asuint(a); + return; +} diff --git a/test/tint/expressions/index/let/let/literal/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/literal/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/literal/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/array.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/literal/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/array.wgsl.expected.fxc.hlsl 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.fxc.hlsl 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/literal/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/literal/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/literal/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/literal/vector.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/index/let/let/param/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/param/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/param/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/param/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/let/param/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/let/param/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..520cdf8768 --- /dev/null +++ b/test/tint/expressions/index/let/let/param/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f(int x) { + const int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[x]; +} 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/param/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/param/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..332312c0bc --- /dev/null +++ b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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]; +} 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/let/param/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/let/param/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/let/param/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5629258475 --- /dev/null +++ b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f(int x) { + const float3 v = float3(1.0f, 2.0f, 3.0f); + return v[x]; +} diff --git a/test/tint/expressions/index/let/literal/array.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/let/literal/array.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7174cfacca --- /dev/null +++ b/test/tint/expressions/index/let/literal/array.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + const int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[1]; +} diff --git a/test/tint/expressions/index/let/literal/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/literal/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7174cfacca --- /dev/null +++ b/test/tint/expressions/index/let/literal/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + const int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[1]; +} diff --git a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ad2d36bf30 --- /dev/null +++ b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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]; +} diff --git a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad2d36bf30 --- /dev/null +++ b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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]; +} diff --git a/test/tint/expressions/index/let/literal/vector.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/let/literal/vector.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..ede611872b --- /dev/null +++ b/test/tint/expressions/index/let/literal/vector.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f() { + const float3 v = float3(1.0f, 2.0f, 3.0f); + return v[1]; +} diff --git a/test/tint/expressions/index/let/literal/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/literal/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ede611872b --- /dev/null +++ b/test/tint/expressions/index/let/literal/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f() { + const float3 v = float3(1.0f, 2.0f, 3.0f); + return v[1]; +} diff --git a/test/tint/expressions/index/let/param/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/param/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/param/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/param/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/param/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/param/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28830b2165 --- /dev/null +++ b/test/tint/expressions/index/let/param/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f(int i) { + const int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[i]; +} diff --git a/test/tint/expressions/index/let/param/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/param/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/param/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/param/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/param/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/param/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3714c1c0fd --- /dev/null +++ b/test/tint/expressions/index/let/param/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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]; +} diff --git a/test/tint/expressions/index/let/param/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/param/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/param/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/param/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/let/param/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/let/param/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16cccbf289 --- /dev/null +++ b/test/tint/expressions/index/let/param/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f(int i) { + const float3 v = float3(1.0f, 2.0f, 3.0f); + return v[i]; +} diff --git a/test/tint/expressions/index/let/var/literal/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/var/literal/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/array.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/array.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/literal/array.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/array.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/let/var/literal/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/literal/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/let/var/literal/vector.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/index/var/literal/array.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/literal/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/literal/array.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/literal/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/literal/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43387185c0 --- /dev/null +++ b/test/tint/expressions/index/var/let/literal/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[1]; +} diff --git a/test/tint/expressions/index/var/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/literal/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b1ea5a0e1 --- /dev/null +++ b/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float3 f() { + float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); + return m[1]; +} diff --git a/test/tint/expressions/index/var/literal/vector.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/literal/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/literal/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7297f63a51 --- /dev/null +++ b/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f() { + float3 v = float3(1.0f, 2.0f, 3.0f); + return v[1]; +} diff --git a/test/tint/expressions/index/var/let/param/array.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/param/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/param/array.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/param/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/param/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/param/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09ebc7d3f4 --- /dev/null +++ b/test/tint/expressions/index/var/let/param/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f(int x) { + int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[x]; +} diff --git a/test/tint/expressions/index/var/let/param/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/param/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/param/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/param/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/param/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/param/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e71fa03f7d --- /dev/null +++ b/test/tint/expressions/index/var/let/param/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float3 f(int x) { + 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]; +} diff --git a/test/tint/expressions/index/var/let/param/vector.wgsl.expected.hlsl b/test/tint/expressions/index/var/let/param/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/let/param/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/var/let/param/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/let/param/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/let/param/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..590b92e92a --- /dev/null +++ b/test/tint/expressions/index/var/let/param/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f(int x) { + float3 v = float3(1.0f, 2.0f, 3.0f); + return v[x]; +} diff --git a/test/tint/expressions/index/var/literal/array.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/var/literal/array.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..43387185c0 --- /dev/null +++ b/test/tint/expressions/index/var/literal/array.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[1]; +} diff --git a/test/tint/expressions/index/var/literal/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/literal/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43387185c0 --- /dev/null +++ b/test/tint/expressions/index/var/literal/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[1]; +} diff --git a/test/tint/expressions/index/var/literal/matrix.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/var/literal/matrix.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7b1ea5a0e1 --- /dev/null +++ b/test/tint/expressions/index/var/literal/matrix.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float3 f() { + float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); + return m[1]; +} diff --git a/test/tint/expressions/index/var/literal/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/literal/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b1ea5a0e1 --- /dev/null +++ b/test/tint/expressions/index/var/literal/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float3 f() { + float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); + return m[1]; +} diff --git a/test/tint/expressions/index/var/literal/vector.wgsl.expected.dxc.hlsl b/test/tint/expressions/index/var/literal/vector.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7297f63a51 --- /dev/null +++ b/test/tint/expressions/index/var/literal/vector.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f() { + float3 v = float3(1.0f, 2.0f, 3.0f); + return v[1]; +} diff --git a/test/tint/expressions/index/var/literal/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/literal/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7297f63a51 --- /dev/null +++ b/test/tint/expressions/index/var/literal/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f() { + float3 v = float3(1.0f, 2.0f, 3.0f); + return v[1]; +} diff --git a/test/tint/expressions/index/var/param/array.wgsl.expected.hlsl b/test/tint/expressions/index/var/param/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/param/array.wgsl.expected.hlsl rename to test/tint/expressions/index/var/param/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/param/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/param/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f0e32a075d --- /dev/null +++ b/test/tint/expressions/index/var/param/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f(int i) { + int a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; + return a[i]; +} diff --git a/test/tint/expressions/index/var/param/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/var/param/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/param/matrix.wgsl.expected.hlsl rename to test/tint/expressions/index/var/param/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/param/matrix.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/param/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..724ad8824e --- /dev/null +++ b/test/tint/expressions/index/var/param/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float3 f(int i) { + 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]; +} diff --git a/test/tint/expressions/index/var/param/vector.wgsl.expected.hlsl b/test/tint/expressions/index/var/param/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/index/var/param/vector.wgsl.expected.hlsl rename to test/tint/expressions/index/var/param/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/index/var/param/vector.wgsl.expected.fxc.hlsl b/test/tint/expressions/index/var/param/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d046c84bdc --- /dev/null +++ b/test/tint/expressions/index/var/param/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float f(int i) { + float3 v = float3(1.0f, 2.0f, 3.0f); + return v[i]; +} diff --git a/test/tint/expressions/literals/-inf.spvasm.expected.hlsl b/test/tint/expressions/literals/-inf.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/literals/-inf.spvasm.expected.hlsl rename to test/tint/expressions/literals/-inf.spvasm.expected.dxc.hlsl diff --git a/test/tint/expressions/literals/-inf.spvasm.expected.fxc.hlsl b/test/tint/expressions/literals/-inf.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e4f9b252d3 --- /dev/null +++ b/test/tint/expressions/literals/-inf.spvasm.expected.fxc.hlsl @@ -0,0 +1,26 @@ +static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + out_var_SV_TARGET = (asfloat(0xff800000u)).xxxx; + return; +} + +struct main_out { + float4 out_var_SV_TARGET_1; +}; +struct tint_symbol { + float4 out_var_SV_TARGET_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_1 = {out_var_SV_TARGET}; + return tint_symbol_1; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1; + return wrapper_result; +} diff --git a/test/tint/expressions/literals/inf.spvasm.expected.hlsl b/test/tint/expressions/literals/inf.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/literals/inf.spvasm.expected.hlsl rename to test/tint/expressions/literals/inf.spvasm.expected.dxc.hlsl diff --git a/test/tint/expressions/literals/inf.spvasm.expected.fxc.hlsl b/test/tint/expressions/literals/inf.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1ce8ff8bc6 --- /dev/null +++ b/test/tint/expressions/literals/inf.spvasm.expected.fxc.hlsl @@ -0,0 +1,26 @@ +static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + out_var_SV_TARGET = (asfloat(0x7f800000u)).xxxx; + return; +} + +struct main_out { + float4 out_var_SV_TARGET_1; +}; +struct tint_symbol { + float4 out_var_SV_TARGET_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_1 = {out_var_SV_TARGET}; + return tint_symbol_1; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1; + return wrapper_result; +} diff --git a/test/tint/expressions/literals/intmin.wgsl.expected.hlsl b/test/tint/expressions/literals/intmin.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/literals/intmin.wgsl.expected.hlsl rename to test/tint/expressions/literals/intmin.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/literals/intmin.wgsl.expected.fxc.hlsl b/test/tint/expressions/literals/intmin.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90844e8065 --- /dev/null +++ b/test/tint/expressions/literals/intmin.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int add_int_min_explicit() { + int a = -2147483648; + int b = (a + 1); + int c = (-2147483648 + 1); + return c; +} diff --git a/test/tint/expressions/literals/nan.spvasm.expected.hlsl b/test/tint/expressions/literals/nan.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/literals/nan.spvasm.expected.hlsl rename to test/tint/expressions/literals/nan.spvasm.expected.dxc.hlsl diff --git a/test/tint/expressions/literals/nan.spvasm.expected.fxc.hlsl b/test/tint/expressions/literals/nan.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..110eb4066d --- /dev/null +++ b/test/tint/expressions/literals/nan.spvasm.expected.fxc.hlsl @@ -0,0 +1,26 @@ +static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + out_var_SV_TARGET = float4(asfloat(0x7fc00000u), asfloat(0x7fc00000u), asfloat(0x7fc00000u), asfloat(0x7fc00000u)); + return; +} + +struct main_out { + float4 out_var_SV_TARGET_1; +}; +struct tint_symbol { + float4 out_var_SV_TARGET_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_1 = {out_var_SV_TARGET}; + return tint_symbol_1; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.out_var_SV_TARGET_1 = inner_result.out_var_SV_TARGET_1; + return wrapper_result; +} diff --git a/test/tint/expressions/splat/call/bool.wgsl.expected.hlsl b/test/tint/expressions/splat/call/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/call/bool.wgsl.expected.hlsl rename to test/tint/expressions/splat/call/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/call/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/call/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5a0bf4e6a8 --- /dev/null +++ b/test/tint/expressions/splat/call/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +bool get_bool() { + return true; +} + +void f() { + const bool tint_symbol = get_bool(); + bool2 v2 = bool2((tint_symbol).xx); + const bool tint_symbol_1 = get_bool(); + bool3 v3 = bool3((tint_symbol_1).xxx); + const bool tint_symbol_2 = get_bool(); + bool4 v4 = bool4((tint_symbol_2).xxxx); +} diff --git a/test/tint/expressions/splat/call/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/call/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/call/f32.wgsl.expected.hlsl rename to test/tint/expressions/splat/call/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/call/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/call/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..541bccfbdd --- /dev/null +++ b/test/tint/expressions/splat/call/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +float get_f32() { + return 1.0f; +} + +void f() { + const float tint_symbol = get_f32(); + float2 v2 = float2((tint_symbol).xx); + const float tint_symbol_1 = get_f32(); + float3 v3 = float3((tint_symbol_1).xxx); + const float tint_symbol_2 = get_f32(); + float4 v4 = float4((tint_symbol_2).xxxx); +} diff --git a/test/tint/expressions/splat/call/i32.wgsl.expected.hlsl b/test/tint/expressions/splat/call/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/call/i32.wgsl.expected.hlsl rename to test/tint/expressions/splat/call/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/call/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/call/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b4334fef41 --- /dev/null +++ b/test/tint/expressions/splat/call/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int get_i32() { + return 1; +} + +void f() { + const int tint_symbol = get_i32(); + int2 v2 = int2((tint_symbol).xx); + const int tint_symbol_1 = get_i32(); + int3 v3 = int3((tint_symbol_1).xxx); + const int tint_symbol_2 = get_i32(); + int4 v4 = int4((tint_symbol_2).xxxx); +} diff --git a/test/tint/expressions/splat/call/u32.wgsl.expected.hlsl b/test/tint/expressions/splat/call/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/call/u32.wgsl.expected.hlsl rename to test/tint/expressions/splat/call/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/call/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/call/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e7dc61757 --- /dev/null +++ b/test/tint/expressions/splat/call/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +uint get_u32() { + return 1u; +} + +void f() { + const uint tint_symbol = get_u32(); + uint2 v2 = uint2((tint_symbol).xx); + const uint tint_symbol_1 = get_u32(); + uint3 v3 = uint3((tint_symbol_1).xxx); + const uint tint_symbol_2 = get_u32(); + uint4 v4 = uint4((tint_symbol_2).xxxx); +} diff --git a/test/tint/expressions/splat/expression/bool.wgsl.expected.hlsl b/test/tint/expressions/splat/expression/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/expression/bool.wgsl.expected.hlsl rename to test/tint/expressions/splat/expression/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/expression/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/expression/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..544f39d0ef --- /dev/null +++ b/test/tint/expressions/splat/expression/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + bool tint_tmp = true; + if (!tint_tmp) { + tint_tmp = false; + } + bool2 v2 = bool2(((tint_tmp)).xx); + bool tint_tmp_1 = true; + if (!tint_tmp_1) { + tint_tmp_1 = false; + } + bool3 v3 = bool3(((tint_tmp_1)).xxx); + bool tint_tmp_2 = true; + if (!tint_tmp_2) { + tint_tmp_2 = false; + } + bool4 v4 = bool4(((tint_tmp_2)).xxxx); +} diff --git a/test/tint/expressions/splat/expression/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/expression/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/expression/f32.wgsl.expected.hlsl rename to test/tint/expressions/splat/expression/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/expression/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/expression/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9ed6e5ab17 --- /dev/null +++ b/test/tint/expressions/splat/expression/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float2 v2 = float2(((1.0f + 2.0f)).xx); + float3 v3 = float3(((1.0f + 2.0f)).xxx); + float4 v4 = float4(((1.0f + 2.0f)).xxxx); +} diff --git a/test/tint/expressions/splat/expression/i32.wgsl.expected.hlsl b/test/tint/expressions/splat/expression/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/expression/i32.wgsl.expected.hlsl rename to test/tint/expressions/splat/expression/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/expression/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/expression/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a1fa76f6a --- /dev/null +++ b/test/tint/expressions/splat/expression/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int2 v2 = int2(((1 + 2)).xx); + int3 v3 = int3(((1 + 2)).xxx); + int4 v4 = int4(((1 + 2)).xxxx); +} diff --git a/test/tint/expressions/splat/expression/u32.wgsl.expected.hlsl b/test/tint/expressions/splat/expression/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/expression/u32.wgsl.expected.hlsl rename to test/tint/expressions/splat/expression/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/expression/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/expression/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..afbc8e2e88 --- /dev/null +++ b/test/tint/expressions/splat/expression/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint2 v2 = uint2(((1u + 2u)).xx); + uint3 v3 = uint3(((1u + 2u)).xxx); + uint4 v4 = uint4(((1u + 2u)).xxxx); +} diff --git a/test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl b/test/tint/expressions/splat/immediate/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl rename to test/tint/expressions/splat/immediate/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/immediate/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/immediate/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ee704106c --- /dev/null +++ b/test/tint/expressions/splat/immediate/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/immediate/f32.wgsl.expected.hlsl rename to test/tint/expressions/splat/immediate/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/immediate/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/immediate/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8efc94d4c3 --- /dev/null +++ b/test/tint/expressions/splat/immediate/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/immediate/i32.wgsl.expected.hlsl rename to test/tint/expressions/splat/immediate/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/immediate/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/immediate/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7d6156280d --- /dev/null +++ b/test/tint/expressions/splat/immediate/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/immediate/u32.wgsl.expected.hlsl rename to test/tint/expressions/splat/immediate/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/immediate/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/immediate/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..44f0407422 --- /dev/null +++ b/test/tint/expressions/splat/immediate/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint2 v2 = (1u).xx; + uint3 v3 = (1u).xxx; + uint4 v4 = (1u).xxxx; +} diff --git a/test/tint/expressions/splat/var/bool.wgsl.expected.hlsl b/test/tint/expressions/splat/var/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/var/bool.wgsl.expected.hlsl rename to test/tint/expressions/splat/var/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/var/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/var/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..76b97e29d8 --- /dev/null +++ b/test/tint/expressions/splat/var/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + bool tint_tmp = true; + if (!tint_tmp) { + tint_tmp = false; + } + bool v = (tint_tmp); + bool2 v2 = bool2((v).xx); + bool3 v3 = bool3((v).xxx); + bool4 v4 = bool4((v).xxxx); +} diff --git a/test/tint/expressions/splat/var/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/var/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/var/f32.wgsl.expected.hlsl rename to test/tint/expressions/splat/var/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/var/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/var/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..00091d7f6e --- /dev/null +++ b/test/tint/expressions/splat/var/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float v = (1.0f + 2.0f); + float2 v2 = float2((v).xx); + float3 v3 = float3((v).xxx); + float4 v4 = float4((v).xxxx); +} diff --git a/test/tint/expressions/splat/var/i32.wgsl.expected.hlsl b/test/tint/expressions/splat/var/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/var/i32.wgsl.expected.hlsl rename to test/tint/expressions/splat/var/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/var/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/var/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9905a8e6b --- /dev/null +++ b/test/tint/expressions/splat/var/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int v = (1 + 2); + int2 v2 = int2((v).xx); + int3 v3 = int3((v).xxx); + int4 v4 = int4((v).xxxx); +} diff --git a/test/tint/expressions/splat/var/u32.wgsl.expected.hlsl b/test/tint/expressions/splat/var/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/var/u32.wgsl.expected.hlsl rename to test/tint/expressions/splat/var/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/var/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/var/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5e51b8dc15 --- /dev/null +++ b/test/tint/expressions/splat/var/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint v = (1u + 2u); + uint2 v2 = uint2((v).xx); + uint3 v3 = uint3((v).xxx); + uint4 v4 = uint4((v).xxxx); +} diff --git a/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl rename to test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bc8913a3c0 --- /dev/null +++ b/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float a = 1.0f; + float b = 1.0f; + float c = 1.0f; +} diff --git a/test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0fa0de4ab --- /dev/null +++ b/test/tint/expressions/swizzle/read/packed_vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,132 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +cbuffer cbuffer_U : register(b0, space0) { + uint4 U[1]; +}; + +void f() { + float3 v = asfloat(U[0].xyz); + float x = asfloat(U[0].x); + float y = asfloat(U[0].y); + float z = asfloat(U[0].z); + float2 xx = asfloat(U[0].xyz).xx; + float2 xy = asfloat(U[0].xyz).xy; + float2 xz = asfloat(U[0].xyz).xz; + float2 yx = asfloat(U[0].xyz).yx; + float2 yy = asfloat(U[0].xyz).yy; + float2 yz = asfloat(U[0].xyz).yz; + float2 zx = asfloat(U[0].xyz).zx; + float2 zy = asfloat(U[0].xyz).zy; + float2 zz = asfloat(U[0].xyz).zz; + float3 xxx = asfloat(U[0].xyz).xxx; + float3 xxy = asfloat(U[0].xyz).xxy; + float3 xxz = asfloat(U[0].xyz).xxz; + float3 xyx = asfloat(U[0].xyz).xyx; + float3 xyy = asfloat(U[0].xyz).xyy; + float3 xyz = asfloat(U[0].xyz).xyz; + float3 xzx = asfloat(U[0].xyz).xzx; + float3 xzy = asfloat(U[0].xyz).xzy; + float3 xzz = asfloat(U[0].xyz).xzz; + float3 yxx = asfloat(U[0].xyz).yxx; + float3 yxy = asfloat(U[0].xyz).yxy; + float3 yxz = asfloat(U[0].xyz).yxz; + float3 yyx = asfloat(U[0].xyz).yyx; + float3 yyy = asfloat(U[0].xyz).yyy; + float3 yyz = asfloat(U[0].xyz).yyz; + float3 yzx = asfloat(U[0].xyz).yzx; + float3 yzy = asfloat(U[0].xyz).yzy; + float3 yzz = asfloat(U[0].xyz).yzz; + float3 zxx = asfloat(U[0].xyz).zxx; + float3 zxy = asfloat(U[0].xyz).zxy; + float3 zxz = asfloat(U[0].xyz).zxz; + float3 zyx = asfloat(U[0].xyz).zyx; + float3 zyy = asfloat(U[0].xyz).zyy; + float3 zyz = asfloat(U[0].xyz).zyz; + float3 zzx = asfloat(U[0].xyz).zzx; + float3 zzy = asfloat(U[0].xyz).zzy; + float3 zzz = asfloat(U[0].xyz).zzz; + float4 xxxx = asfloat(U[0].xyz).xxxx; + float4 xxxy = asfloat(U[0].xyz).xxxy; + float4 xxxz = asfloat(U[0].xyz).xxxz; + float4 xxyx = asfloat(U[0].xyz).xxyx; + float4 xxyy = asfloat(U[0].xyz).xxyy; + float4 xxyz = asfloat(U[0].xyz).xxyz; + float4 xxzx = asfloat(U[0].xyz).xxzx; + float4 xxzy = asfloat(U[0].xyz).xxzy; + float4 xxzz = asfloat(U[0].xyz).xxzz; + float4 xyxx = asfloat(U[0].xyz).xyxx; + float4 xyxy = asfloat(U[0].xyz).xyxy; + float4 xyxz = asfloat(U[0].xyz).xyxz; + float4 xyyx = asfloat(U[0].xyz).xyyx; + float4 xyyy = asfloat(U[0].xyz).xyyy; + float4 xyyz = asfloat(U[0].xyz).xyyz; + float4 xyzx = asfloat(U[0].xyz).xyzx; + float4 xyzy = asfloat(U[0].xyz).xyzy; + float4 xyzz = asfloat(U[0].xyz).xyzz; + float4 xzxx = asfloat(U[0].xyz).xzxx; + float4 xzxy = asfloat(U[0].xyz).xzxy; + float4 xzxz = asfloat(U[0].xyz).xzxz; + float4 xzyx = asfloat(U[0].xyz).xzyx; + float4 xzyy = asfloat(U[0].xyz).xzyy; + float4 xzyz = asfloat(U[0].xyz).xzyz; + float4 xzzx = asfloat(U[0].xyz).xzzx; + float4 xzzy = asfloat(U[0].xyz).xzzy; + float4 xzzz = asfloat(U[0].xyz).xzzz; + float4 yxxx = asfloat(U[0].xyz).yxxx; + float4 yxxy = asfloat(U[0].xyz).yxxy; + float4 yxxz = asfloat(U[0].xyz).yxxz; + float4 yxyx = asfloat(U[0].xyz).yxyx; + float4 yxyy = asfloat(U[0].xyz).yxyy; + float4 yxyz = asfloat(U[0].xyz).yxyz; + float4 yxzx = asfloat(U[0].xyz).yxzx; + float4 yxzy = asfloat(U[0].xyz).yxzy; + float4 yxzz = asfloat(U[0].xyz).yxzz; + float4 yyxx = asfloat(U[0].xyz).yyxx; + float4 yyxy = asfloat(U[0].xyz).yyxy; + float4 yyxz = asfloat(U[0].xyz).yyxz; + float4 yyyx = asfloat(U[0].xyz).yyyx; + float4 yyyy = asfloat(U[0].xyz).yyyy; + float4 yyyz = asfloat(U[0].xyz).yyyz; + float4 yyzx = asfloat(U[0].xyz).yyzx; + float4 yyzy = asfloat(U[0].xyz).yyzy; + float4 yyzz = asfloat(U[0].xyz).yyzz; + float4 yzxx = asfloat(U[0].xyz).yzxx; + float4 yzxy = asfloat(U[0].xyz).yzxy; + float4 yzxz = asfloat(U[0].xyz).yzxz; + float4 yzyx = asfloat(U[0].xyz).yzyx; + float4 yzyy = asfloat(U[0].xyz).yzyy; + float4 yzyz = asfloat(U[0].xyz).yzyz; + float4 yzzx = asfloat(U[0].xyz).yzzx; + float4 yzzy = asfloat(U[0].xyz).yzzy; + float4 yzzz = asfloat(U[0].xyz).yzzz; + float4 zxxx = asfloat(U[0].xyz).zxxx; + float4 zxxy = asfloat(U[0].xyz).zxxy; + float4 zxxz = asfloat(U[0].xyz).zxxz; + float4 zxyx = asfloat(U[0].xyz).zxyx; + float4 zxyy = asfloat(U[0].xyz).zxyy; + float4 zxyz = asfloat(U[0].xyz).zxyz; + float4 zxzx = asfloat(U[0].xyz).zxzx; + float4 zxzy = asfloat(U[0].xyz).zxzy; + float4 zxzz = asfloat(U[0].xyz).zxzz; + float4 zyxx = asfloat(U[0].xyz).zyxx; + float4 zyxy = asfloat(U[0].xyz).zyxy; + float4 zyxz = asfloat(U[0].xyz).zyxz; + float4 zyyx = asfloat(U[0].xyz).zyyx; + float4 zyyy = asfloat(U[0].xyz).zyyy; + float4 zyyz = asfloat(U[0].xyz).zyyz; + float4 zyzx = asfloat(U[0].xyz).zyzx; + float4 zyzy = asfloat(U[0].xyz).zyzy; + float4 zyzz = asfloat(U[0].xyz).zyzz; + float4 zzxx = asfloat(U[0].xyz).zzxx; + float4 zzxy = asfloat(U[0].xyz).zzxy; + float4 zzxz = asfloat(U[0].xyz).zzxz; + float4 zzyx = asfloat(U[0].xyz).zzyx; + float4 zzyy = asfloat(U[0].xyz).zzyy; + float4 zzyz = asfloat(U[0].xyz).zzyz; + float4 zzzx = asfloat(U[0].xyz).zzzx; + float4 zzzy = asfloat(U[0].xyz).zzzy; + float4 zzzz = asfloat(U[0].xyz).zzzz; +} diff --git a/test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..13b2315d12 --- /dev/null +++ b/test/tint/expressions/swizzle/read/packed_vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,132 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +cbuffer cbuffer_U : register(b0, space0) { + uint4 U[1]; +}; + +void f() { + int3 v = asint(U[0].xyz); + int x = asint(U[0].x); + int y = asint(U[0].y); + int z = asint(U[0].z); + int2 xx = asint(U[0].xyz).xx; + int2 xy = asint(U[0].xyz).xy; + int2 xz = asint(U[0].xyz).xz; + int2 yx = asint(U[0].xyz).yx; + int2 yy = asint(U[0].xyz).yy; + int2 yz = asint(U[0].xyz).yz; + int2 zx = asint(U[0].xyz).zx; + int2 zy = asint(U[0].xyz).zy; + int2 zz = asint(U[0].xyz).zz; + int3 xxx = asint(U[0].xyz).xxx; + int3 xxy = asint(U[0].xyz).xxy; + int3 xxz = asint(U[0].xyz).xxz; + int3 xyx = asint(U[0].xyz).xyx; + int3 xyy = asint(U[0].xyz).xyy; + int3 xyz = asint(U[0].xyz).xyz; + int3 xzx = asint(U[0].xyz).xzx; + int3 xzy = asint(U[0].xyz).xzy; + int3 xzz = asint(U[0].xyz).xzz; + int3 yxx = asint(U[0].xyz).yxx; + int3 yxy = asint(U[0].xyz).yxy; + int3 yxz = asint(U[0].xyz).yxz; + int3 yyx = asint(U[0].xyz).yyx; + int3 yyy = asint(U[0].xyz).yyy; + int3 yyz = asint(U[0].xyz).yyz; + int3 yzx = asint(U[0].xyz).yzx; + int3 yzy = asint(U[0].xyz).yzy; + int3 yzz = asint(U[0].xyz).yzz; + int3 zxx = asint(U[0].xyz).zxx; + int3 zxy = asint(U[0].xyz).zxy; + int3 zxz = asint(U[0].xyz).zxz; + int3 zyx = asint(U[0].xyz).zyx; + int3 zyy = asint(U[0].xyz).zyy; + int3 zyz = asint(U[0].xyz).zyz; + int3 zzx = asint(U[0].xyz).zzx; + int3 zzy = asint(U[0].xyz).zzy; + int3 zzz = asint(U[0].xyz).zzz; + int4 xxxx = asint(U[0].xyz).xxxx; + int4 xxxy = asint(U[0].xyz).xxxy; + int4 xxxz = asint(U[0].xyz).xxxz; + int4 xxyx = asint(U[0].xyz).xxyx; + int4 xxyy = asint(U[0].xyz).xxyy; + int4 xxyz = asint(U[0].xyz).xxyz; + int4 xxzx = asint(U[0].xyz).xxzx; + int4 xxzy = asint(U[0].xyz).xxzy; + int4 xxzz = asint(U[0].xyz).xxzz; + int4 xyxx = asint(U[0].xyz).xyxx; + int4 xyxy = asint(U[0].xyz).xyxy; + int4 xyxz = asint(U[0].xyz).xyxz; + int4 xyyx = asint(U[0].xyz).xyyx; + int4 xyyy = asint(U[0].xyz).xyyy; + int4 xyyz = asint(U[0].xyz).xyyz; + int4 xyzx = asint(U[0].xyz).xyzx; + int4 xyzy = asint(U[0].xyz).xyzy; + int4 xyzz = asint(U[0].xyz).xyzz; + int4 xzxx = asint(U[0].xyz).xzxx; + int4 xzxy = asint(U[0].xyz).xzxy; + int4 xzxz = asint(U[0].xyz).xzxz; + int4 xzyx = asint(U[0].xyz).xzyx; + int4 xzyy = asint(U[0].xyz).xzyy; + int4 xzyz = asint(U[0].xyz).xzyz; + int4 xzzx = asint(U[0].xyz).xzzx; + int4 xzzy = asint(U[0].xyz).xzzy; + int4 xzzz = asint(U[0].xyz).xzzz; + int4 yxxx = asint(U[0].xyz).yxxx; + int4 yxxy = asint(U[0].xyz).yxxy; + int4 yxxz = asint(U[0].xyz).yxxz; + int4 yxyx = asint(U[0].xyz).yxyx; + int4 yxyy = asint(U[0].xyz).yxyy; + int4 yxyz = asint(U[0].xyz).yxyz; + int4 yxzx = asint(U[0].xyz).yxzx; + int4 yxzy = asint(U[0].xyz).yxzy; + int4 yxzz = asint(U[0].xyz).yxzz; + int4 yyxx = asint(U[0].xyz).yyxx; + int4 yyxy = asint(U[0].xyz).yyxy; + int4 yyxz = asint(U[0].xyz).yyxz; + int4 yyyx = asint(U[0].xyz).yyyx; + int4 yyyy = asint(U[0].xyz).yyyy; + int4 yyyz = asint(U[0].xyz).yyyz; + int4 yyzx = asint(U[0].xyz).yyzx; + int4 yyzy = asint(U[0].xyz).yyzy; + int4 yyzz = asint(U[0].xyz).yyzz; + int4 yzxx = asint(U[0].xyz).yzxx; + int4 yzxy = asint(U[0].xyz).yzxy; + int4 yzxz = asint(U[0].xyz).yzxz; + int4 yzyx = asint(U[0].xyz).yzyx; + int4 yzyy = asint(U[0].xyz).yzyy; + int4 yzyz = asint(U[0].xyz).yzyz; + int4 yzzx = asint(U[0].xyz).yzzx; + int4 yzzy = asint(U[0].xyz).yzzy; + int4 yzzz = asint(U[0].xyz).yzzz; + int4 zxxx = asint(U[0].xyz).zxxx; + int4 zxxy = asint(U[0].xyz).zxxy; + int4 zxxz = asint(U[0].xyz).zxxz; + int4 zxyx = asint(U[0].xyz).zxyx; + int4 zxyy = asint(U[0].xyz).zxyy; + int4 zxyz = asint(U[0].xyz).zxyz; + int4 zxzx = asint(U[0].xyz).zxzx; + int4 zxzy = asint(U[0].xyz).zxzy; + int4 zxzz = asint(U[0].xyz).zxzz; + int4 zyxx = asint(U[0].xyz).zyxx; + int4 zyxy = asint(U[0].xyz).zyxy; + int4 zyxz = asint(U[0].xyz).zyxz; + int4 zyyx = asint(U[0].xyz).zyyx; + int4 zyyy = asint(U[0].xyz).zyyy; + int4 zyyz = asint(U[0].xyz).zyyz; + int4 zyzx = asint(U[0].xyz).zyzx; + int4 zyzy = asint(U[0].xyz).zyzy; + int4 zyzz = asint(U[0].xyz).zyzz; + int4 zzxx = asint(U[0].xyz).zzxx; + int4 zzxy = asint(U[0].xyz).zzxy; + int4 zzxz = asint(U[0].xyz).zzxz; + int4 zzyx = asint(U[0].xyz).zzyx; + int4 zzyy = asint(U[0].xyz).zzyy; + int4 zzyz = asint(U[0].xyz).zzyz; + int4 zzzx = asint(U[0].xyz).zzzx; + int4 zzzy = asint(U[0].xyz).zzzy; + int4 zzzz = asint(U[0].xyz).zzzz; +} diff --git a/test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..72d8077c21 --- /dev/null +++ b/test/tint/expressions/swizzle/read/packed_vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,132 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +cbuffer cbuffer_U : register(b0, space0) { + uint4 U[1]; +}; + +void f() { + uint3 v = U[0].xyz; + uint x = U[0].x; + uint y = U[0].y; + uint z = U[0].z; + uint2 xx = U[0].xyz.xx; + uint2 xy = U[0].xyz.xy; + uint2 xz = U[0].xyz.xz; + uint2 yx = U[0].xyz.yx; + uint2 yy = U[0].xyz.yy; + uint2 yz = U[0].xyz.yz; + uint2 zx = U[0].xyz.zx; + uint2 zy = U[0].xyz.zy; + uint2 zz = U[0].xyz.zz; + uint3 xxx = U[0].xyz.xxx; + uint3 xxy = U[0].xyz.xxy; + uint3 xxz = U[0].xyz.xxz; + uint3 xyx = U[0].xyz.xyx; + uint3 xyy = U[0].xyz.xyy; + uint3 xyz = U[0].xyz.xyz; + uint3 xzx = U[0].xyz.xzx; + uint3 xzy = U[0].xyz.xzy; + uint3 xzz = U[0].xyz.xzz; + uint3 yxx = U[0].xyz.yxx; + uint3 yxy = U[0].xyz.yxy; + uint3 yxz = U[0].xyz.yxz; + uint3 yyx = U[0].xyz.yyx; + uint3 yyy = U[0].xyz.yyy; + uint3 yyz = U[0].xyz.yyz; + uint3 yzx = U[0].xyz.yzx; + uint3 yzy = U[0].xyz.yzy; + uint3 yzz = U[0].xyz.yzz; + uint3 zxx = U[0].xyz.zxx; + uint3 zxy = U[0].xyz.zxy; + uint3 zxz = U[0].xyz.zxz; + uint3 zyx = U[0].xyz.zyx; + uint3 zyy = U[0].xyz.zyy; + uint3 zyz = U[0].xyz.zyz; + uint3 zzx = U[0].xyz.zzx; + uint3 zzy = U[0].xyz.zzy; + uint3 zzz = U[0].xyz.zzz; + uint4 xxxx = U[0].xyz.xxxx; + uint4 xxxy = U[0].xyz.xxxy; + uint4 xxxz = U[0].xyz.xxxz; + uint4 xxyx = U[0].xyz.xxyx; + uint4 xxyy = U[0].xyz.xxyy; + uint4 xxyz = U[0].xyz.xxyz; + uint4 xxzx = U[0].xyz.xxzx; + uint4 xxzy = U[0].xyz.xxzy; + uint4 xxzz = U[0].xyz.xxzz; + uint4 xyxx = U[0].xyz.xyxx; + uint4 xyxy = U[0].xyz.xyxy; + uint4 xyxz = U[0].xyz.xyxz; + uint4 xyyx = U[0].xyz.xyyx; + uint4 xyyy = U[0].xyz.xyyy; + uint4 xyyz = U[0].xyz.xyyz; + uint4 xyzx = U[0].xyz.xyzx; + uint4 xyzy = U[0].xyz.xyzy; + uint4 xyzz = U[0].xyz.xyzz; + uint4 xzxx = U[0].xyz.xzxx; + uint4 xzxy = U[0].xyz.xzxy; + uint4 xzxz = U[0].xyz.xzxz; + uint4 xzyx = U[0].xyz.xzyx; + uint4 xzyy = U[0].xyz.xzyy; + uint4 xzyz = U[0].xyz.xzyz; + uint4 xzzx = U[0].xyz.xzzx; + uint4 xzzy = U[0].xyz.xzzy; + uint4 xzzz = U[0].xyz.xzzz; + uint4 yxxx = U[0].xyz.yxxx; + uint4 yxxy = U[0].xyz.yxxy; + uint4 yxxz = U[0].xyz.yxxz; + uint4 yxyx = U[0].xyz.yxyx; + uint4 yxyy = U[0].xyz.yxyy; + uint4 yxyz = U[0].xyz.yxyz; + uint4 yxzx = U[0].xyz.yxzx; + uint4 yxzy = U[0].xyz.yxzy; + uint4 yxzz = U[0].xyz.yxzz; + uint4 yyxx = U[0].xyz.yyxx; + uint4 yyxy = U[0].xyz.yyxy; + uint4 yyxz = U[0].xyz.yyxz; + uint4 yyyx = U[0].xyz.yyyx; + uint4 yyyy = U[0].xyz.yyyy; + uint4 yyyz = U[0].xyz.yyyz; + uint4 yyzx = U[0].xyz.yyzx; + uint4 yyzy = U[0].xyz.yyzy; + uint4 yyzz = U[0].xyz.yyzz; + uint4 yzxx = U[0].xyz.yzxx; + uint4 yzxy = U[0].xyz.yzxy; + uint4 yzxz = U[0].xyz.yzxz; + uint4 yzyx = U[0].xyz.yzyx; + uint4 yzyy = U[0].xyz.yzyy; + uint4 yzyz = U[0].xyz.yzyz; + uint4 yzzx = U[0].xyz.yzzx; + uint4 yzzy = U[0].xyz.yzzy; + uint4 yzzz = U[0].xyz.yzzz; + uint4 zxxx = U[0].xyz.zxxx; + uint4 zxxy = U[0].xyz.zxxy; + uint4 zxxz = U[0].xyz.zxxz; + uint4 zxyx = U[0].xyz.zxyx; + uint4 zxyy = U[0].xyz.zxyy; + uint4 zxyz = U[0].xyz.zxyz; + uint4 zxzx = U[0].xyz.zxzx; + uint4 zxzy = U[0].xyz.zxzy; + uint4 zxzz = U[0].xyz.zxzz; + uint4 zyxx = U[0].xyz.zyxx; + uint4 zyxy = U[0].xyz.zyxy; + uint4 zyxz = U[0].xyz.zyxz; + uint4 zyyx = U[0].xyz.zyyx; + uint4 zyyy = U[0].xyz.zyyy; + uint4 zyyz = U[0].xyz.zyyz; + uint4 zyzx = U[0].xyz.zyzx; + uint4 zyzy = U[0].xyz.zyzy; + uint4 zyzz = U[0].xyz.zyzz; + uint4 zzxx = U[0].xyz.zzxx; + uint4 zzxy = U[0].xyz.zzxy; + uint4 zzxz = U[0].xyz.zzxz; + uint4 zzyx = U[0].xyz.zzyx; + uint4 zzyy = U[0].xyz.zzyy; + uint4 zzyz = U[0].xyz.zzyz; + uint4 zzzx = U[0].xyz.zzzx; + uint4 zzzy = U[0].xyz.zzzy; + uint4 zzzz = U[0].xyz.zzzz; +} diff --git a/test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9f65e9211d --- /dev/null +++ b/test/tint/expressions/swizzle/read/vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,134 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + float3 v; +}; + +static S P = (S)0; + +void f() { + float3 v = P.v; + float x = P.v.x; + float y = P.v.y; + float z = P.v.z; + float2 xx = P.v.xx; + float2 xy = P.v.xy; + float2 xz = P.v.xz; + float2 yx = P.v.yx; + float2 yy = P.v.yy; + float2 yz = P.v.yz; + float2 zx = P.v.zx; + float2 zy = P.v.zy; + float2 zz = P.v.zz; + float3 xxx = P.v.xxx; + float3 xxy = P.v.xxy; + float3 xxz = P.v.xxz; + float3 xyx = P.v.xyx; + float3 xyy = P.v.xyy; + float3 xyz = P.v.xyz; + float3 xzx = P.v.xzx; + float3 xzy = P.v.xzy; + float3 xzz = P.v.xzz; + float3 yxx = P.v.yxx; + float3 yxy = P.v.yxy; + float3 yxz = P.v.yxz; + float3 yyx = P.v.yyx; + float3 yyy = P.v.yyy; + float3 yyz = P.v.yyz; + float3 yzx = P.v.yzx; + float3 yzy = P.v.yzy; + float3 yzz = P.v.yzz; + float3 zxx = P.v.zxx; + float3 zxy = P.v.zxy; + float3 zxz = P.v.zxz; + float3 zyx = P.v.zyx; + float3 zyy = P.v.zyy; + float3 zyz = P.v.zyz; + float3 zzx = P.v.zzx; + float3 zzy = P.v.zzy; + float3 zzz = P.v.zzz; + float4 xxxx = P.v.xxxx; + float4 xxxy = P.v.xxxy; + float4 xxxz = P.v.xxxz; + float4 xxyx = P.v.xxyx; + float4 xxyy = P.v.xxyy; + float4 xxyz = P.v.xxyz; + float4 xxzx = P.v.xxzx; + float4 xxzy = P.v.xxzy; + float4 xxzz = P.v.xxzz; + float4 xyxx = P.v.xyxx; + float4 xyxy = P.v.xyxy; + float4 xyxz = P.v.xyxz; + float4 xyyx = P.v.xyyx; + float4 xyyy = P.v.xyyy; + float4 xyyz = P.v.xyyz; + float4 xyzx = P.v.xyzx; + float4 xyzy = P.v.xyzy; + float4 xyzz = P.v.xyzz; + float4 xzxx = P.v.xzxx; + float4 xzxy = P.v.xzxy; + float4 xzxz = P.v.xzxz; + float4 xzyx = P.v.xzyx; + float4 xzyy = P.v.xzyy; + float4 xzyz = P.v.xzyz; + float4 xzzx = P.v.xzzx; + float4 xzzy = P.v.xzzy; + float4 xzzz = P.v.xzzz; + float4 yxxx = P.v.yxxx; + float4 yxxy = P.v.yxxy; + float4 yxxz = P.v.yxxz; + float4 yxyx = P.v.yxyx; + float4 yxyy = P.v.yxyy; + float4 yxyz = P.v.yxyz; + float4 yxzx = P.v.yxzx; + float4 yxzy = P.v.yxzy; + float4 yxzz = P.v.yxzz; + float4 yyxx = P.v.yyxx; + float4 yyxy = P.v.yyxy; + float4 yyxz = P.v.yyxz; + float4 yyyx = P.v.yyyx; + float4 yyyy = P.v.yyyy; + float4 yyyz = P.v.yyyz; + float4 yyzx = P.v.yyzx; + float4 yyzy = P.v.yyzy; + float4 yyzz = P.v.yyzz; + float4 yzxx = P.v.yzxx; + float4 yzxy = P.v.yzxy; + float4 yzxz = P.v.yzxz; + float4 yzyx = P.v.yzyx; + float4 yzyy = P.v.yzyy; + float4 yzyz = P.v.yzyz; + float4 yzzx = P.v.yzzx; + float4 yzzy = P.v.yzzy; + float4 yzzz = P.v.yzzz; + float4 zxxx = P.v.zxxx; + float4 zxxy = P.v.zxxy; + float4 zxxz = P.v.zxxz; + float4 zxyx = P.v.zxyx; + float4 zxyy = P.v.zxyy; + float4 zxyz = P.v.zxyz; + float4 zxzx = P.v.zxzx; + float4 zxzy = P.v.zxzy; + float4 zxzz = P.v.zxzz; + float4 zyxx = P.v.zyxx; + float4 zyxy = P.v.zyxy; + float4 zyxz = P.v.zyxz; + float4 zyyx = P.v.zyyx; + float4 zyyy = P.v.zyyy; + float4 zyyz = P.v.zyyz; + float4 zyzx = P.v.zyzx; + float4 zyzy = P.v.zyzy; + float4 zyzz = P.v.zyzz; + float4 zzxx = P.v.zzxx; + float4 zzxy = P.v.zzxy; + float4 zzxz = P.v.zzxz; + float4 zzyx = P.v.zzyx; + float4 zzyy = P.v.zzyy; + float4 zzyz = P.v.zzyz; + float4 zzzx = P.v.zzzx; + float4 zzzy = P.v.zzzy; + float4 zzzz = P.v.zzzz; +} diff --git a/test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b6314fba50 --- /dev/null +++ b/test/tint/expressions/swizzle/read/vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,134 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int3 v; +}; + +static S P = (S)0; + +void f() { + int3 v = P.v; + int x = P.v.x; + int y = P.v.y; + int z = P.v.z; + int2 xx = P.v.xx; + int2 xy = P.v.xy; + int2 xz = P.v.xz; + int2 yx = P.v.yx; + int2 yy = P.v.yy; + int2 yz = P.v.yz; + int2 zx = P.v.zx; + int2 zy = P.v.zy; + int2 zz = P.v.zz; + int3 xxx = P.v.xxx; + int3 xxy = P.v.xxy; + int3 xxz = P.v.xxz; + int3 xyx = P.v.xyx; + int3 xyy = P.v.xyy; + int3 xyz = P.v.xyz; + int3 xzx = P.v.xzx; + int3 xzy = P.v.xzy; + int3 xzz = P.v.xzz; + int3 yxx = P.v.yxx; + int3 yxy = P.v.yxy; + int3 yxz = P.v.yxz; + int3 yyx = P.v.yyx; + int3 yyy = P.v.yyy; + int3 yyz = P.v.yyz; + int3 yzx = P.v.yzx; + int3 yzy = P.v.yzy; + int3 yzz = P.v.yzz; + int3 zxx = P.v.zxx; + int3 zxy = P.v.zxy; + int3 zxz = P.v.zxz; + int3 zyx = P.v.zyx; + int3 zyy = P.v.zyy; + int3 zyz = P.v.zyz; + int3 zzx = P.v.zzx; + int3 zzy = P.v.zzy; + int3 zzz = P.v.zzz; + int4 xxxx = P.v.xxxx; + int4 xxxy = P.v.xxxy; + int4 xxxz = P.v.xxxz; + int4 xxyx = P.v.xxyx; + int4 xxyy = P.v.xxyy; + int4 xxyz = P.v.xxyz; + int4 xxzx = P.v.xxzx; + int4 xxzy = P.v.xxzy; + int4 xxzz = P.v.xxzz; + int4 xyxx = P.v.xyxx; + int4 xyxy = P.v.xyxy; + int4 xyxz = P.v.xyxz; + int4 xyyx = P.v.xyyx; + int4 xyyy = P.v.xyyy; + int4 xyyz = P.v.xyyz; + int4 xyzx = P.v.xyzx; + int4 xyzy = P.v.xyzy; + int4 xyzz = P.v.xyzz; + int4 xzxx = P.v.xzxx; + int4 xzxy = P.v.xzxy; + int4 xzxz = P.v.xzxz; + int4 xzyx = P.v.xzyx; + int4 xzyy = P.v.xzyy; + int4 xzyz = P.v.xzyz; + int4 xzzx = P.v.xzzx; + int4 xzzy = P.v.xzzy; + int4 xzzz = P.v.xzzz; + int4 yxxx = P.v.yxxx; + int4 yxxy = P.v.yxxy; + int4 yxxz = P.v.yxxz; + int4 yxyx = P.v.yxyx; + int4 yxyy = P.v.yxyy; + int4 yxyz = P.v.yxyz; + int4 yxzx = P.v.yxzx; + int4 yxzy = P.v.yxzy; + int4 yxzz = P.v.yxzz; + int4 yyxx = P.v.yyxx; + int4 yyxy = P.v.yyxy; + int4 yyxz = P.v.yyxz; + int4 yyyx = P.v.yyyx; + int4 yyyy = P.v.yyyy; + int4 yyyz = P.v.yyyz; + int4 yyzx = P.v.yyzx; + int4 yyzy = P.v.yyzy; + int4 yyzz = P.v.yyzz; + int4 yzxx = P.v.yzxx; + int4 yzxy = P.v.yzxy; + int4 yzxz = P.v.yzxz; + int4 yzyx = P.v.yzyx; + int4 yzyy = P.v.yzyy; + int4 yzyz = P.v.yzyz; + int4 yzzx = P.v.yzzx; + int4 yzzy = P.v.yzzy; + int4 yzzz = P.v.yzzz; + int4 zxxx = P.v.zxxx; + int4 zxxy = P.v.zxxy; + int4 zxxz = P.v.zxxz; + int4 zxyx = P.v.zxyx; + int4 zxyy = P.v.zxyy; + int4 zxyz = P.v.zxyz; + int4 zxzx = P.v.zxzx; + int4 zxzy = P.v.zxzy; + int4 zxzz = P.v.zxzz; + int4 zyxx = P.v.zyxx; + int4 zyxy = P.v.zyxy; + int4 zyxz = P.v.zyxz; + int4 zyyx = P.v.zyyx; + int4 zyyy = P.v.zyyy; + int4 zyyz = P.v.zyyz; + int4 zyzx = P.v.zyzx; + int4 zyzy = P.v.zyzy; + int4 zyzz = P.v.zyzz; + int4 zzxx = P.v.zzxx; + int4 zzxy = P.v.zzxy; + int4 zzxz = P.v.zzxz; + int4 zzyx = P.v.zzyx; + int4 zzyy = P.v.zzyy; + int4 zzyz = P.v.zzyz; + int4 zzzx = P.v.zzzx; + int4 zzzy = P.v.zzzy; + int4 zzzz = P.v.zzzz; +} diff --git a/test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..79fb83777f --- /dev/null +++ b/test/tint/expressions/swizzle/read/vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,134 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + uint3 v; +}; + +static S P = (S)0; + +void f() { + uint3 v = P.v; + uint x = P.v.x; + uint y = P.v.y; + uint z = P.v.z; + uint2 xx = P.v.xx; + uint2 xy = P.v.xy; + uint2 xz = P.v.xz; + uint2 yx = P.v.yx; + uint2 yy = P.v.yy; + uint2 yz = P.v.yz; + uint2 zx = P.v.zx; + uint2 zy = P.v.zy; + uint2 zz = P.v.zz; + uint3 xxx = P.v.xxx; + uint3 xxy = P.v.xxy; + uint3 xxz = P.v.xxz; + uint3 xyx = P.v.xyx; + uint3 xyy = P.v.xyy; + uint3 xyz = P.v.xyz; + uint3 xzx = P.v.xzx; + uint3 xzy = P.v.xzy; + uint3 xzz = P.v.xzz; + uint3 yxx = P.v.yxx; + uint3 yxy = P.v.yxy; + uint3 yxz = P.v.yxz; + uint3 yyx = P.v.yyx; + uint3 yyy = P.v.yyy; + uint3 yyz = P.v.yyz; + uint3 yzx = P.v.yzx; + uint3 yzy = P.v.yzy; + uint3 yzz = P.v.yzz; + uint3 zxx = P.v.zxx; + uint3 zxy = P.v.zxy; + uint3 zxz = P.v.zxz; + uint3 zyx = P.v.zyx; + uint3 zyy = P.v.zyy; + uint3 zyz = P.v.zyz; + uint3 zzx = P.v.zzx; + uint3 zzy = P.v.zzy; + uint3 zzz = P.v.zzz; + uint4 xxxx = P.v.xxxx; + uint4 xxxy = P.v.xxxy; + uint4 xxxz = P.v.xxxz; + uint4 xxyx = P.v.xxyx; + uint4 xxyy = P.v.xxyy; + uint4 xxyz = P.v.xxyz; + uint4 xxzx = P.v.xxzx; + uint4 xxzy = P.v.xxzy; + uint4 xxzz = P.v.xxzz; + uint4 xyxx = P.v.xyxx; + uint4 xyxy = P.v.xyxy; + uint4 xyxz = P.v.xyxz; + uint4 xyyx = P.v.xyyx; + uint4 xyyy = P.v.xyyy; + uint4 xyyz = P.v.xyyz; + uint4 xyzx = P.v.xyzx; + uint4 xyzy = P.v.xyzy; + uint4 xyzz = P.v.xyzz; + uint4 xzxx = P.v.xzxx; + uint4 xzxy = P.v.xzxy; + uint4 xzxz = P.v.xzxz; + uint4 xzyx = P.v.xzyx; + uint4 xzyy = P.v.xzyy; + uint4 xzyz = P.v.xzyz; + uint4 xzzx = P.v.xzzx; + uint4 xzzy = P.v.xzzy; + uint4 xzzz = P.v.xzzz; + uint4 yxxx = P.v.yxxx; + uint4 yxxy = P.v.yxxy; + uint4 yxxz = P.v.yxxz; + uint4 yxyx = P.v.yxyx; + uint4 yxyy = P.v.yxyy; + uint4 yxyz = P.v.yxyz; + uint4 yxzx = P.v.yxzx; + uint4 yxzy = P.v.yxzy; + uint4 yxzz = P.v.yxzz; + uint4 yyxx = P.v.yyxx; + uint4 yyxy = P.v.yyxy; + uint4 yyxz = P.v.yyxz; + uint4 yyyx = P.v.yyyx; + uint4 yyyy = P.v.yyyy; + uint4 yyyz = P.v.yyyz; + uint4 yyzx = P.v.yyzx; + uint4 yyzy = P.v.yyzy; + uint4 yyzz = P.v.yyzz; + uint4 yzxx = P.v.yzxx; + uint4 yzxy = P.v.yzxy; + uint4 yzxz = P.v.yzxz; + uint4 yzyx = P.v.yzyx; + uint4 yzyy = P.v.yzyy; + uint4 yzyz = P.v.yzyz; + uint4 yzzx = P.v.yzzx; + uint4 yzzy = P.v.yzzy; + uint4 yzzz = P.v.yzzz; + uint4 zxxx = P.v.zxxx; + uint4 zxxy = P.v.zxxy; + uint4 zxxz = P.v.zxxz; + uint4 zxyx = P.v.zxyx; + uint4 zxyy = P.v.zxyy; + uint4 zxyz = P.v.zxyz; + uint4 zxzx = P.v.zxzx; + uint4 zxzy = P.v.zxzy; + uint4 zxzz = P.v.zxzz; + uint4 zyxx = P.v.zyxx; + uint4 zyxy = P.v.zyxy; + uint4 zyxz = P.v.zyxz; + uint4 zyyx = P.v.zyyx; + uint4 zyyy = P.v.zyyy; + uint4 zyyz = P.v.zyyz; + uint4 zyzx = P.v.zyzx; + uint4 zyzy = P.v.zyzy; + uint4 zyzz = P.v.zyzz; + uint4 zzxx = P.v.zzxx; + uint4 zzxy = P.v.zzxy; + uint4 zzxz = P.v.zzxz; + uint4 zzyx = P.v.zzyx; + uint4 zzyy = P.v.zzyy; + uint4 zzyz = P.v.zzyz; + uint4 zzzx = P.v.zzzx; + uint4 zzzy = P.v.zzzy; + uint4 zzzz = P.v.zzzz; +} diff --git a/test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bd302bc9a5 --- /dev/null +++ b/test/tint/expressions/swizzle/write/packed_vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer U : register(u0, space0); + +void f() { + U.Store3(0u, asuint(float3(1.0f, 2.0f, 3.0f))); + U.Store(0u, asuint(1.0f)); + U.Store(4u, asuint(2.0f)); + U.Store(8u, asuint(3.0f)); +} diff --git a/test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1be931da54 --- /dev/null +++ b/test/tint/expressions/swizzle/write/packed_vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer U : register(u0, space0); + +void f() { + U.Store3(0u, asuint(int3(1, 2, 3))); + U.Store(0u, asuint(1)); + U.Store(4u, asuint(2)); + U.Store(8u, asuint(3)); +} diff --git a/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fd7ff481b7 --- /dev/null +++ b/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer U : register(u0, space0); + +void f() { + U.Store3(0u, asuint(uint3(1u, 2u, 3u))); + U.Store(0u, asuint(1u)); + U.Store(4u, asuint(2u)); + U.Store(8u, asuint(3u)); +} diff --git a/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4cfaf20633 --- /dev/null +++ b/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + float3 v; +}; + +static S P = (S)0; + +void f() { + P.v = float3(1.0f, 2.0f, 3.0f); + P.v.x = 1.0f; + P.v.y = 2.0f; + P.v.z = 3.0f; +} diff --git a/test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3ecfbc847 --- /dev/null +++ b/test/tint/expressions/swizzle/write/vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int3 v; +}; + +static S P = (S)0; + +void f() { + P.v = int3(1, 2, 3); + P.v.x = 1; + P.v.y = 2; + P.v.z = 3; +} diff --git a/test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..172c6990e7 --- /dev/null +++ b/test/tint/expressions/swizzle/write/vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + uint3 v; +}; + +static S P = (S)0; + +void f() { + P.v = uint3(1u, 2u, 3u); + P.v.x = 1u; + P.v.y = 2u; + P.v.z = 3u; +} 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..738053f3f9 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); + +float2x2 f() { + const float2x2 m_1 = float2x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..738053f3f9 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); + +float2x2 f() { + const float2x2 m_1 = float2x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..28c5d1f90e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b737fd29e7 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float2x2 m = float2x2((0.0f).xx, (0.0f).xx); + const float2x2 m_1 = float2x2(m); +} diff --git a/test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1140175688 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x2/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x2 m = float2x2((0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..4fee3744cd --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); + +float2x3 f() { + const float2x3 m_1 = float2x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4fee3744cd --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); + +float2x3 f() { + const float2x3 m_1 = float2x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2d1be771d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..488b65cddd --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float2x3 m = float2x3((0.0f).xxx, (0.0f).xxx); + const float2x3 m_1 = float2x3(m); +} diff --git a/test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3fe1f11e7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x3/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x3 m = float2x3((0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b37e3b77bf --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); + +float2x4 f() { + const float2x4 m_1 = float2x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b37e3b77bf --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); + +float2x4 f() { + const float2x4 m_1 = float2x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7f63f53176 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..17da42af06 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float2x4 m = float2x4((0.0f).xxxx, (0.0f).xxxx); + const float2x4 m_1 = float2x4(m); +} diff --git a/test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aaeb1e05f7 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat2x4/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2x4 m = float2x4((0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6a51b6633e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); + +float3x2 f() { + const float3x2 m_1 = float3x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6a51b6633e --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); + +float3x2 f() { + const float3x2 m_1 = float3x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3c86bed2b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ea45e8659 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float3x2 m = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); + const float3x2 m_1 = float3x2(m); +} diff --git a/test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b279d96690 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x2/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x2 m = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..2d4c4b28c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); + +float3x3 f() { + const float3x3 m_1 = float3x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d4c4b28c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); + +float3x3 f() { + const float3x3 m_1 = float3x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..65b0c98407 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b8f5f60f51 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); + const float3x3 m_1 = float3x3(m); +} diff --git a/test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b96d4e1071 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x3/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..11e3fe8d54 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); + +float3x4 f() { + const float3x4 m_1 = float3x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..11e3fe8d54 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); + +float3x4 f() { + const float3x4 m_1 = float3x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b23383ef7d --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0aa5662520 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float3x4 m = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + const float3x4 m_1 = float3x4(m); +} diff --git a/test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3f3c45b168 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat3x4/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3x4 m = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b957caa4c6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); + +float4x2 f() { + const float4x2 m_1 = float4x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b957caa4c6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); + +float4x2 f() { + const float4x2 m_1 = float4x2(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e97d2792c8 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f), float2(4.0f, 5.0f), float2(6.0f, 7.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..92ac9a0725 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float4x2 m = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); + const float4x2 m_1 = float4x2(m); +} diff --git a/test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f402a95105 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x2/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x2 m = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..284dccbd44 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); + +float4x3 f() { + const float4x3 m_1 = float4x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..284dccbd44 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); + +float4x3 f() { + const float4x3 m_1 = float4x3(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b34e6e1fa --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3(float3(0.0f, 1.0f, 2.0f), float3(3.0f, 4.0f, 5.0f), float3(6.0f, 7.0f, 8.0f), float3(9.0f, 10.0f, 11.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16edf138b6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float4x3 m = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); + const float4x3 m_1 = float4x3(m); +} diff --git a/test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..297a867820 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x3/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x3 m = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/identity/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fe1a3a7e28 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); + +float4x4 f() { + const float4x4 m_1 = float4x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fe1a3a7e28 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); + +float4x4 f() { + const float4x4 m_1 = float4x4(m); + return m_1; +} diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/inferred/scalars/abstract-float.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b506f6515 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..03e51e9ac6 --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/load/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float4x4 m = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + const float4x4 m_1 = float4x4(m); +} diff --git a/test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1f75e203f --- /dev/null +++ b/test/tint/expressions/type_ctor/mat4x4/zero/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4x4 m = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/bool.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/explicit/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53ed02812f --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2 v = float2(0.0f, 1.0f); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..203fe9a8f2 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/abstract-int.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int2 v = int2(0, 1); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7c65ba8487 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool2 v = bool2(false, true); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7c65ba8487 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool2 v = bool2(false, true); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..53ed02812f --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2 v = float2(0.0f, 1.0f); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53ed02812f --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float2 v = float2(0.0f, 1.0f); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..203fe9a8f2 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int2 v = int2(0, 1); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..203fe9a8f2 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int2 v = int2(0, 1); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3138b6c630 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint2 v = uint2(0u, 1u); diff --git a/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3138b6c630 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec2/inferred/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint2 v = uint2(0u, 1u); diff --git a/test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/bool.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/explicit/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f2ffb86b97 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3 v = float3(0.0f, 1.0f, 2.0f); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fcb08024ed --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/abstract-int.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int3 v = int3(0, 1, 2); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..420e0c3155 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool3 v = bool3(false, true, false); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..420e0c3155 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool3 v = bool3(false, true, false); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f2ffb86b97 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3 v = float3(0.0f, 1.0f, 2.0f); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f2ffb86b97 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float3 v = float3(0.0f, 1.0f, 2.0f); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fcb08024ed --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int3 v = int3(0, 1, 2); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fcb08024ed --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int3 v = int3(0, 1, 2); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..3190b32f53 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint3 v = uint3(0u, 1u, 2u); diff --git a/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3190b32f53 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec3/inferred/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint3 v = uint3(0u, 1u, 2u); diff --git a/test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/bool.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/explicit/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f518edb05e --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/abstract-float.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4 v = float4(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.hlsl rename to test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..baeb4274da --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/abstract-int.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int4 v = int4(0, 1, 2, 3); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0c15046878 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool4 v = bool4(false, true, false, true); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0c15046878 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static bool4 v = bool4(false, true, false, true); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..f518edb05e --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4 v = float4(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f518edb05e --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static float4 v = float4(0.0f, 1.0f, 2.0f, 3.0f); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..baeb4274da --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int4 v = int4(0, 1, 2, 3); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..baeb4274da --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int4 v = int4(0, 1, 2, 3); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.dxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..2ab778a964 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint4 v = uint4(0u, 1u, 2u, 3u); diff --git a/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ab778a964 --- /dev/null +++ b/test/tint/expressions/type_ctor/vec4/inferred/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static uint4 v = uint4(0u, 1u, 2u, 3u); diff --git a/test/tint/expressions/unary/complement/complement.wgsl.expected.hlsl b/test/tint/expressions/unary/complement/complement.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/unary/complement/complement.wgsl.expected.hlsl rename to test/tint/expressions/unary/complement/complement.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/unary/complement/complement.wgsl.expected.fxc.hlsl b/test/tint/expressions/unary/complement/complement.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4d3f5a689a --- /dev/null +++ b/test/tint/expressions/unary/complement/complement.wgsl.expected.fxc.hlsl @@ -0,0 +1,20 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int i(int x) { + return ~(x); +} + +uint u(uint x) { + return ~(x); +} + +int4 vi(int4 x) { + return ~(x); +} + +uint4 vu(uint4 x) { + return ~(x); +} diff --git a/test/tint/expressions/unary/negate/negate.wgsl.expected.hlsl b/test/tint/expressions/unary/negate/negate.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/unary/negate/negate.wgsl.expected.hlsl rename to test/tint/expressions/unary/negate/negate.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/unary/negate/negate.wgsl.expected.fxc.hlsl b/test/tint/expressions/unary/negate/negate.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a19621ebe6 --- /dev/null +++ b/test/tint/expressions/unary/negate/negate.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int i(int x) { + return -(x); +} + +int4 vi(int4 x) { + return -(x); +} diff --git a/test/tint/expressions/zero_init/array/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/array/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/array/bool.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/array/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/array/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7231ab6fb0 --- /dev/null +++ b/test/tint/expressions/zero_init/array/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + bool v[4] = (bool[4])0; +} diff --git a/test/tint/expressions/zero_init/array/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/array/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/array/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/array/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/array/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fdd7f6fe23 --- /dev/null +++ b/test/tint/expressions/zero_init/array/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float v[4] = (float[4])0; +} diff --git a/test/tint/expressions/zero_init/array/i32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/array/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/array/i32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/array/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/array/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0b0cdfc711 --- /dev/null +++ b/test/tint/expressions/zero_init/array/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int v[4] = (int[4])0; +} diff --git a/test/tint/expressions/zero_init/array/struct.wgsl.expected.hlsl b/test/tint/expressions/zero_init/array/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/array/struct.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/array/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/array/struct.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f8250ba175 --- /dev/null +++ b/test/tint/expressions/zero_init/array/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int i; + uint u; + float f; + bool b; +}; + +void f() { + S v[4] = (S[4])0; +} diff --git a/test/tint/expressions/zero_init/array/u32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/array/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/array/u32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/array/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/array/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..acb74fc361 --- /dev/null +++ b/test/tint/expressions/zero_init/array/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint v[4] = (uint[4])0; +} diff --git a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..098caae33b --- /dev/null +++ b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bef617cae9 --- /dev/null +++ b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4458617ff --- /dev/null +++ b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b4b4e37ad --- /dev/null +++ b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4baaf47fe --- /dev/null +++ b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4f3a733dc8 --- /dev/null +++ b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..64638f7533 --- /dev/null +++ b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..15083b5319 --- /dev/null +++ b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d72e99852d --- /dev/null +++ b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float4x4 v = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); +} diff --git a/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/scalar/bool.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/scalar/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e3a07b66e9 --- /dev/null +++ b/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + bool v = false; +} diff --git a/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/scalar/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/scalar/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ed23c73028 --- /dev/null +++ b/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + float v = 0.0f; +} diff --git a/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/scalar/i32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/scalar/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dd9b566641 --- /dev/null +++ b/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int v = 0; +} diff --git a/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/scalar/u32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/scalar/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..58f3b9a8aa --- /dev/null +++ b/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint v = 0u; +} diff --git a/test/tint/expressions/zero_init/struct/array.wgsl.expected.hlsl b/test/tint/expressions/zero_init/struct/array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/struct/array.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/struct/array.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/struct/array.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/struct/array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b9d582cbc --- /dev/null +++ b/test/tint/expressions/zero_init/struct/array.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + float a[4]; +}; + +void f() { + S v = (S)0; +} diff --git a/test/tint/expressions/zero_init/struct/scalar.wgsl.expected.hlsl b/test/tint/expressions/zero_init/struct/scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/struct/scalar.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/struct/scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/struct/scalar.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/struct/scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0547345ec0 --- /dev/null +++ b/test/tint/expressions/zero_init/struct/scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int i; + uint u; + float f; + bool b; +}; + +void f() { + S v = (S)0; +} diff --git a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec2/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f88df09251 --- /dev/null +++ b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec2/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..62eb9b0a85 --- /dev/null +++ b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec2/i32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec2/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..51cb931bb3 --- /dev/null +++ b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec2/u32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec2/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..102c0df719 --- /dev/null +++ b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec3/bool.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec3/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b81df980c8 --- /dev/null +++ b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec3/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec3/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..46b01ec855 --- /dev/null +++ b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec3/i32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec3/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..90c77ca85d --- /dev/null +++ b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec3/u32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec3/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..77de9cadbf --- /dev/null +++ b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec4/bool.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec4/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..68855f2890 --- /dev/null +++ b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec4/f32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec4/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b417e1b99b --- /dev/null +++ b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec4/i32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec4/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cfe08fbe18 --- /dev/null +++ b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + 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.dxc.hlsl similarity index 100% rename from test/tint/expressions/zero_init/vec4/u32.wgsl.expected.hlsl rename to test/tint/expressions/zero_init/vec4/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..60e5fe4b7e --- /dev/null +++ b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + uint4 v = (0u).xxxx; +} diff --git a/test/tint/extensions/parsing/basic.wgsl.expected.hlsl b/test/tint/extensions/parsing/basic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/extensions/parsing/basic.wgsl.expected.hlsl rename to test/tint/extensions/parsing/basic.wgsl.expected.dxc.hlsl diff --git a/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.hlsl b/test/tint/extensions/parsing/basic.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.hlsl rename to test/tint/extensions/parsing/basic.wgsl.expected.fxc.hlsl diff --git a/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.dxc.hlsl b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..1af441af34 --- /dev/null +++ b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.dxc.hlsl @@ -0,0 +1,14 @@ +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + return float4(0.100000001f, 0.200000003f, 0.300000012f, 0.400000006f); +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.fxc.hlsl b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1af441af34 --- /dev/null +++ b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + return float4(0.100000001f, 0.200000003f, 0.300000012f, 0.400000006f); +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/identifiers/underscore/double/alias.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/alias.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/alias.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/alias.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/alias.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/alias.wgsl.expected.fxc.hlsl diff --git a/test/tint/identifiers/underscore/double/const.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/const.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/const.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/const.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/const.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/const.wgsl.expected.fxc.hlsl diff --git a/test/tint/identifiers/underscore/double/fn.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/fn.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/fn.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/fn.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/double/fn.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/double/fn.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aa8d1a9fb5 --- /dev/null +++ b/test/tint/identifiers/underscore/double/fn.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void a() { +} + +void a__() { +} + +void b() { + a(); +} + +void b__() { + a__(); +} diff --git a/test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/double/let.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/double/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b35994e92f --- /dev/null +++ b/test/tint/identifiers/underscore/double/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + const int a = 1; + const int b = a; + const int b__ = a; +} diff --git a/test/tint/identifiers/underscore/double/parameter.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/parameter.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/parameter.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/parameter.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/double/parameter.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/double/parameter.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6926de2dd3 --- /dev/null +++ b/test/tint/identifiers/underscore/double/parameter.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int a__) { + const int b = a__; +} diff --git a/test/tint/identifiers/underscore/double/struct.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/struct.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/double/struct.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/double/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8c04697732 --- /dev/null +++ b/test/tint/identifiers/underscore/double/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct a__ { + int b__; +}; + +void f() { + const a__ c = (a__)0; + const int d = c.b__; +} diff --git a/test/tint/identifiers/underscore/double/var.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/double/var.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/double/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/double/var.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/double/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3b20c1dd6c --- /dev/null +++ b/test/tint/identifiers/underscore/double/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int a = 1; +static int a__ = 2; + +void f() { + int b = a; + int b__ = a__; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e84791b54 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/alias.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int c = 0; + int d = 0; +} diff --git a/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.dxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..7412e64899 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.dxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { +} diff --git a/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7412e64899 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/const.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { +} diff --git a/test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..328adcf61f --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/fn.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void a() { +} + +void _a() { +} + +void b() { + a(); +} + +void _b() { + _a(); +} diff --git a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7698191792 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + const int a = 1; + const int b = a; + const int _b = a; +} diff --git a/test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..246087c438 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/parameter.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int _a) { + const int b = _a; +} diff --git a/test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31e48b6082 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct _a { + int _b; +}; + +void f() { + const _a c = (_a)0; + const int d = c._b; +} diff --git a/test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ac75353c49 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/lower/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int a = 1; +static int _a = 2; + +void f() { + int b = a; + int _b = _a; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.dxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..0e84791b54 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.dxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int c = 0; + int d = 0; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e84791b54 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/alias.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int c = 0; + int d = 0; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6baa073c3f --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/fn.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void A() { +} + +void _A() { +} + +void B() { + A(); +} + +void _B() { + _A(); +} diff --git a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..11ce0764e8 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + const int B = 1; + const int _B = 2; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c8ca5f6208 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/parameter.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int _A) { + const int B = _A; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2fa6f90ce5 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct _A { + int _B; +}; + +void f() { + const _A c = (_A)0; + const int d = c._B; +} diff --git a/test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.hlsl rename to test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.fxc.hlsl b/test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3b733cb2f6 --- /dev/null +++ b/test/tint/identifiers/underscore/prefix/upper/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int A = 1; +static int _A = 2; + +void f() { + int B = A; + int _B = _A; +} diff --git a/test/tint/layout/storage/mat2x2/f32.wgsl.expected.hlsl b/test/tint/layout/storage/mat2x2/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/layout/storage/mat2x2/f32.wgsl.expected.hlsl rename to test/tint/layout/storage/mat2x2/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/layout/storage/mat2x2/f32.wgsl.expected.fxc.hlsl b/test/tint/layout/storage/mat2x2/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..49afc068ce --- /dev/null +++ b/test/tint/layout/storage/mat2x2/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +RWByteAddressBuffer ssbo : register(u0, space0); + +float2x2 tint_symbol(RWByteAddressBuffer buffer, uint offset) { + return float2x2(asfloat(buffer.Load2((offset + 0u))), asfloat(buffer.Load2((offset + 8u)))); +} + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, float2x2 value) { + buffer.Store2((offset + 0u), asuint(value[0u])); + buffer.Store2((offset + 8u), asuint(value[1u])); +} + +[numthreads(1, 1, 1)] +void f() { + const float2x2 v = tint_symbol(ssbo, 0u); + tint_symbol_2(ssbo, 0u, v); + return; +} diff --git a/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.hlsl b/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.hlsl rename to test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.dxc.hlsl diff --git a/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.fxc.hlsl b/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b62f051aa6 --- /dev/null +++ b/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.fxc.hlsl @@ -0,0 +1,59 @@ +struct strided_arr { + float2 el; +}; + +RWByteAddressBuffer ssbo : register(u0, space0); + +float2x2 arr_to_mat2x2_stride_16(strided_arr arr[2]) { + return float2x2(arr[0u].el, arr[1u].el); +} + +typedef strided_arr mat2x2_stride_16_to_arr_ret[2]; +mat2x2_stride_16_to_arr_ret mat2x2_stride_16_to_arr(float2x2 m) { + const strided_arr tint_symbol_7 = {m[0u]}; + const strided_arr tint_symbol_8 = {m[1u]}; + const strided_arr tint_symbol_9[2] = {tint_symbol_7, tint_symbol_8}; + return tint_symbol_9; +} + +strided_arr tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + const strided_arr tint_symbol_10 = {asfloat(buffer.Load2((offset + 0u)))}; + return tint_symbol_10; +} + +typedef strided_arr tint_symbol_1_ret[2]; +tint_symbol_1_ret tint_symbol_1(RWByteAddressBuffer buffer, uint offset) { + strided_arr arr_1[2] = (strided_arr[2])0; + { + [loop] for(uint i = 0u; (i < 2u); i = (i + 1u)) { + arr_1[i] = tint_symbol_2(buffer, (offset + (i * 16u))); + } + } + return arr_1; +} + +void tint_symbol_5(RWByteAddressBuffer buffer, uint offset, strided_arr value) { + buffer.Store2((offset + 0u), asuint(value.el)); +} + +void tint_symbol_4(RWByteAddressBuffer buffer, uint offset, strided_arr value[2]) { + strided_arr array[2] = value; + { + [loop] for(uint i_1 = 0u; (i_1 < 2u); i_1 = (i_1 + 1u)) { + tint_symbol_5(buffer, (offset + (i_1 * 16u)), array[i_1]); + } + } +} + +void f_1() { + const float2x2 x_15 = arr_to_mat2x2_stride_16(tint_symbol_1(ssbo, 0u)); + const strided_arr tint_symbol[2] = mat2x2_stride_16_to_arr(x_15); + tint_symbol_4(ssbo, 0u, tint_symbol); + return; +} + +[numthreads(1, 1, 1)] +void f() { + f_1(); + return; +} diff --git a/test/tint/let/inferred/function.wgsl.expected.hlsl b/test/tint/let/inferred/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/let/inferred/function.wgsl.expected.hlsl rename to test/tint/let/inferred/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/let/inferred/function.wgsl.expected.fxc.hlsl b/test/tint/let/inferred/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..152e8d178c --- /dev/null +++ b/test/tint/let/inferred/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,59 @@ +struct MyStruct { + float f1; +}; + +int ret_i32() { + return 1; +} + +uint ret_u32() { + return 1u; +} + +float ret_f32() { + return 1.0f; +} + +MyStruct ret_MyStruct() { + const MyStruct tint_symbol_1 = (MyStruct)0; + return tint_symbol_1; +} + +typedef float ret_MyArray_ret[10]; +ret_MyArray_ret ret_MyArray() { + const float tint_symbol_2[10] = (float[10])0; + return tint_symbol_2; +} + +void let_decls() { + const int v1 = 1; + const uint v2 = 1u; + const float v3 = 1.0f; + const int3 v4 = (1).xxx; + const uint3 v5 = (1u).xxx; + const float3 v6 = (1.0f).xxx; + const float3x3 v7 = float3x3(v6, v6, v6); + const MyStruct v8 = {1.0f}; + const float v9[10] = (float[10])0; + const int v10 = ret_i32(); + const uint v11 = ret_u32(); + const float v12 = ret_f32(); + const MyStruct v13 = ret_MyStruct(); + const MyStruct v14 = ret_MyStruct(); + const float v15[10] = ret_MyArray(); +} + +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/loops/continue_in_switch.wgsl.expected.hlsl b/test/tint/loops/continue_in_switch.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/continue_in_switch.wgsl.expected.hlsl rename to test/tint/loops/continue_in_switch.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/continue_in_switch.wgsl.expected.fxc.hlsl b/test/tint/loops/continue_in_switch.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3aa81e3f03 --- /dev/null +++ b/test/tint/loops/continue_in_switch.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +[numthreads(1, 1, 1)] +void f() { + { + [loop] for(int i = 0; (i < 4); i = (i + 1)) { + bool tint_continue = false; + switch(i) { + case 0: { + { + tint_continue = true; + break; + } + break; + } + default: { + break; + } + } + if (tint_continue) { + continue; + } + } + } + return; +} diff --git a/test/tint/loops/loop.wgsl.expected.hlsl b/test/tint/loops/loop.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/loop.wgsl.expected.hlsl rename to test/tint/loops/loop.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/loop.wgsl.expected.fxc.hlsl b/test/tint/loops/loop.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d230ae9d5a --- /dev/null +++ b/test/tint/loops/loop.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + [loop] while (true) { + i = (i + 1); + if ((i > 4)) { + return i; + } + } +} diff --git a/test/tint/loops/loop_with_continuing.wgsl.expected.hlsl b/test/tint/loops/loop_with_continuing.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/loop_with_continuing.wgsl.expected.hlsl rename to test/tint/loops/loop_with_continuing.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/loop_with_continuing.wgsl.expected.fxc.hlsl b/test/tint/loops/loop_with_continuing.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3ab6ee627a --- /dev/null +++ b/test/tint/loops/loop_with_continuing.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + [loop] while (true) { + if ((i > 4)) { + return i; + } + { + i = (i + 1); + } + } +} diff --git a/test/tint/loops/nested_loops.wgsl.expected.hlsl b/test/tint/loops/nested_loops.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/nested_loops.wgsl.expected.hlsl rename to test/tint/loops/nested_loops.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/nested_loops.wgsl.expected.fxc.hlsl b/test/tint/loops/nested_loops.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f5b116478d --- /dev/null +++ b/test/tint/loops/nested_loops.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + int j = 0; + [loop] while (true) { + i = (i + 1); + if ((i > 4)) { + return 1; + } + [loop] while (true) { + j = (j + 1); + if ((j > 4)) { + return 2; + } + } + } +} diff --git a/test/tint/loops/nested_loops_with_continuing.wgsl.expected.hlsl b/test/tint/loops/nested_loops_with_continuing.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/nested_loops_with_continuing.wgsl.expected.hlsl rename to test/tint/loops/nested_loops_with_continuing.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/nested_loops_with_continuing.wgsl.expected.fxc.hlsl b/test/tint/loops/nested_loops_with_continuing.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..605a079fdd --- /dev/null +++ b/test/tint/loops/nested_loops_with_continuing.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + int j = 0; + [loop] while (true) { + if ((i > 4)) { + return 1; + } + [loop] while (true) { + if ((j > 4)) { + return 2; + } + { + j = (j + 1); + } + } + { + i = (i + 1); + } + } +} diff --git a/test/tint/loops/while.wgsl.expected.hlsl b/test/tint/loops/while.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/while.wgsl.expected.hlsl rename to test/tint/loops/while.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/while.wgsl.expected.fxc.hlsl b/test/tint/loops/while.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b9bfd6545f --- /dev/null +++ b/test/tint/loops/while.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + [loop] while((i < 4)) { + i = (i + 1); + } + return i; +} diff --git a/test/tint/loops/while_with_continue.wgsl.expected.hlsl b/test/tint/loops/while_with_continue.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/loops/while_with_continue.wgsl.expected.hlsl rename to test/tint/loops/while_with_continue.wgsl.expected.dxc.hlsl diff --git a/test/tint/loops/while_with_continue.wgsl.expected.fxc.hlsl b/test/tint/loops/while_with_continue.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c0d22da75a --- /dev/null +++ b/test/tint/loops/while_with_continue.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +int f() { + int i = 0; + [loop] while((i < 4)) { + i = (i + 1); + continue; + } + return i; +} diff --git a/test/tint/out_of_order_decls/alias/alias.wgsl.expected.hlsl b/test/tint/out_of_order_decls/alias/alias.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/alias/alias.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/alias/alias.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/alias/alias.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/alias/alias.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9047109e73 --- /dev/null +++ b/test/tint/out_of_order_decls/alias/alias.wgsl.expected.fxc.hlsl @@ -0,0 +1,4 @@ +void f() { + int v = 0; + return; +} diff --git a/test/tint/out_of_order_decls/alias/struct.wgsl.expected.hlsl b/test/tint/out_of_order_decls/alias/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/alias/struct.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/alias/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/struct/alias.wgsl.expected.hlsl b/test/tint/out_of_order_decls/alias/struct.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/struct/alias.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/alias/struct.wgsl.expected.fxc.hlsl diff --git a/test/tint/out_of_order_decls/array/alias.wgsl.expected.hlsl b/test/tint/out_of_order_decls/array/alias.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/array/alias.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/array/alias.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/array/alias.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/array/alias.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c2ce6c2494 --- /dev/null +++ b/test/tint/out_of_order_decls/array/alias.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static int A[4] = (int[4])0; + +void f() { + A[0] = 1; + return; +} diff --git a/test/tint/out_of_order_decls/array/struct.wgsl.expected.hlsl b/test/tint/out_of_order_decls/array/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/array/struct.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/array/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/array/struct.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/array/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a708176999 --- /dev/null +++ b/test/tint/out_of_order_decls/array/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +struct S { + int m; +}; + +static S A[4] = (S[4])0; + +void f() { + const S tint_symbol = {1}; + A[0] = tint_symbol; + return; +} diff --git a/test/tint/out_of_order_decls/func/const.wgsl.expected.hlsl b/test/tint/out_of_order_decls/func/const.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/func/const.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/func/const.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/func/const.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/func/const.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f55de9249e --- /dev/null +++ b/test/tint/out_of_order_decls/func/const.wgsl.expected.fxc.hlsl @@ -0,0 +1,3 @@ +void f() { + return; +} diff --git a/test/tint/out_of_order_decls/func/func.wgsl.expected.hlsl b/test/tint/out_of_order_decls/func/func.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/func/func.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/func/func.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/func/func.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/func/func.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..620afd7ef0 --- /dev/null +++ b/test/tint/out_of_order_decls/func/func.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +void f2() { +} + +void f1() { + f2(); + return; +} 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.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/func/let.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/func/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/func/let.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/func/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c35c25093b --- /dev/null +++ b/test/tint/out_of_order_decls/func/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static const int a = 1; + +void f() { + const int b = a; + return; +} diff --git a/test/tint/out_of_order_decls/func/type.wgsl.expected.hlsl b/test/tint/out_of_order_decls/func/type.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/func/type.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/func/type.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/func/type.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/func/type.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4b327c8b7 --- /dev/null +++ b/test/tint/out_of_order_decls/func/type.wgsl.expected.fxc.hlsl @@ -0,0 +1,4 @@ +void f() { + int b = 0; + return; +} diff --git a/test/tint/out_of_order_decls/func/var.wgsl.expected.hlsl b/test/tint/out_of_order_decls/func/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/func/var.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/func/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/func/var.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/func/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..813886a581 --- /dev/null +++ b/test/tint/out_of_order_decls/func/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static int a = 1; + +void f() { + const int b = a; + return; +} diff --git a/test/tint/out_of_order_decls/struct/alias.wgsl.expected.dxc.hlsl b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..c113dacf08 --- /dev/null +++ b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.dxc.hlsl @@ -0,0 +1,8 @@ +struct S { + int m; +}; + +void f() { + S v = (S)0; + return; +} diff --git a/test/tint/out_of_order_decls/struct/alias.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c113dacf08 --- /dev/null +++ b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +struct S { + int m; +}; + +void f() { + S v = (S)0; + return; +} diff --git a/test/tint/out_of_order_decls/struct/struct.wgsl.expected.hlsl b/test/tint/out_of_order_decls/struct/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/out_of_order_decls/struct/struct.wgsl.expected.hlsl rename to test/tint/out_of_order_decls/struct/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/out_of_order_decls/struct/struct.wgsl.expected.fxc.hlsl b/test/tint/out_of_order_decls/struct/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2f48847da4 --- /dev/null +++ b/test/tint/out_of_order_decls/struct/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +struct S2 { + int m; +}; +struct S1 { + S2 m; +}; + +void f() { + S1 v = (S1)0; + return; +} diff --git a/test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl b/test/tint/ptr_ref/access/matrix.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl rename to test/tint/ptr_ref/access/matrix.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/access/matrix.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/access/matrix.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..35e3f879f4 --- /dev/null +++ b/test/tint/ptr_ref/access/matrix.spvasm.expected.fxc.hlsl @@ -0,0 +1,12 @@ +void main_1() { + 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] = (5.0f).xxx; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl b/test/tint/ptr_ref/access/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl rename to test/tint/ptr_ref/access/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/access/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a5e6043054 --- /dev/null +++ b/test/tint/ptr_ref/access/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +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] = (5.0f).xxx; + return; +} diff --git a/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.hlsl b/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.hlsl rename to test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..0bc2907bba --- /dev/null +++ b/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.fxc.hlsl @@ -0,0 +1,10 @@ +void main_1() { + uint x_10 = 0u; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/global/i32.spvasm.expected.hlsl b/test/tint/ptr_ref/load/global/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/global/i32.spvasm.expected.hlsl rename to test/tint/ptr_ref/load/global/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/global/i32.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/load/global/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a75ddfaa7d --- /dev/null +++ b/test/tint/ptr_ref/load/global/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,12 @@ +static int I = 0; + +void main_1() { + const int x_11 = (I + 1); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/global/i32.wgsl.expected.hlsl b/test/tint/ptr_ref/load/global/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/global/i32.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/global/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/global/i32.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/global/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..788136bba2 --- /dev/null +++ b/test/tint/ptr_ref/load/global/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +static int I = 0; + +[numthreads(1, 1, 1)] +void main() { + const int use = (I + 1); + return; +} diff --git a/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.hlsl b/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/global/struct_field.spvasm.expected.hlsl rename to test/tint/ptr_ref/load/global/struct_field.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4025850136 --- /dev/null +++ b/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct S { + int i; +}; + +static S V = (S)0; + +void main_1() { + int i = 0; + const int x_15 = V.i; + i = x_15; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.hlsl b/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/global/struct_field.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/global/struct_field.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f40dad1e68 --- /dev/null +++ b/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +struct S { + int i; +}; + +static S V = (S)0; + +[numthreads(1, 1, 1)] +void main() { + const int i = V.i; + return; +} diff --git a/test/tint/ptr_ref/load/local/i32.spvasm.expected.hlsl b/test/tint/ptr_ref/load/local/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/i32.spvasm.expected.hlsl rename to test/tint/ptr_ref/load/local/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/i32.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..3f9ee138cb --- /dev/null +++ b/test/tint/ptr_ref/load/local/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,12 @@ +void main_1() { + int i = 0; + i = 123; + const int x_12 = (i + 1); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/local/i32.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/i32.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.dxc.hlsl b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d360aae1b5 --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + int i = 123; + const int use = (i + 1); + return; +} diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d360aae1b5 --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + int i = 123; + const int use = (i + 1); + return; +} diff --git a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2de131c8b0 --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +static int i = 123; + +[numthreads(1, 1, 1)] +void main() { + const int use = (i + 1); + return; +} diff --git a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4fa8bbd5fd --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +RWByteAddressBuffer v : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + const int use = (asint(v.Load(0u)) + 1); + return; +} diff --git a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..634b49e6ae --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +cbuffer cbuffer_v : register(b0, space0) { + uint4 v[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + const int use = (asint(v[0].x) + 1); + return; +} diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fbd6076821 --- /dev/null +++ b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,20 @@ +groupshared int i; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + i = 0; + } + GroupMemoryBarrierWithGroupSync(); + i = 123; + const int use = (i + 1); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.hlsl b/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/struct_field.spvasm.expected.hlsl rename to test/tint/ptr_ref/load/local/struct_field.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5404bcd40a --- /dev/null +++ b/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.fxc.hlsl @@ -0,0 +1,17 @@ +struct S { + int i; +}; + +void main_1() { + int i = 0; + S V = (S)0; + const int x_14 = V.i; + i = x_14; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.hlsl b/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/local/struct_field.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/local/struct_field.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67aaf4073a --- /dev/null +++ b/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +struct S { + int i; +}; + +[numthreads(1, 1, 1)] +void main() { + S V = (S)0; + int i = V.i; + return; +} diff --git a/test/tint/ptr_ref/load/param/ptr.spvasm.expected.hlsl b/test/tint/ptr_ref/load/param/ptr.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/param/ptr.spvasm.expected.hlsl rename to test/tint/ptr_ref/load/param/ptr.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/param/ptr.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/load/param/ptr.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..2ddad5c62e --- /dev/null +++ b/test/tint/ptr_ref/load/param/ptr.spvasm.expected.fxc.hlsl @@ -0,0 +1,17 @@ +int func(int value, inout int pointer) { + const int x_9 = pointer; + return (value + x_9); +} + +void main_1() { + int i = 0; + i = 123; + const int x_18 = func(i, i); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/load/param/ptr.wgsl.expected.hlsl b/test/tint/ptr_ref/load/param/ptr.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/load/param/ptr.wgsl.expected.hlsl rename to test/tint/ptr_ref/load/param/ptr.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/load/param/ptr.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/load/param/ptr.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..696b0c2016 --- /dev/null +++ b/test/tint/ptr_ref/load/param/ptr.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +int func(int value, inout int pointer) { + return (value + pointer); +} + +[numthreads(1, 1, 1)] +void main() { + int i = 123; + const int r = func(i, i); + return; +} diff --git a/test/tint/ptr_ref/store/global/i32.spvasm.expected.hlsl b/test/tint/ptr_ref/store/global/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/global/i32.spvasm.expected.hlsl rename to test/tint/ptr_ref/store/global/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/global/i32.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/store/global/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ffe06339c1 --- /dev/null +++ b/test/tint/ptr_ref/store/global/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,13 @@ +static int I = 0; + +void main_1() { + I = 123; + I = ((100 + 20) + 3); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/store/global/i32.wgsl.expected.hlsl b/test/tint/ptr_ref/store/global/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/global/i32.wgsl.expected.hlsl rename to test/tint/ptr_ref/store/global/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/global/i32.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/store/global/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb1bb3dbd8 --- /dev/null +++ b/test/tint/ptr_ref/store/global/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +static int I = 0; + +[numthreads(1, 1, 1)] +void main() { + I = 123; + I = ((100 + 20) + 3); + return; +} diff --git a/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.hlsl b/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/global/struct_field.spvasm.expected.hlsl rename to test/tint/ptr_ref/store/global/struct_field.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..938d5d1092 --- /dev/null +++ b/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.fxc.hlsl @@ -0,0 +1,16 @@ +struct S { + int i; +}; + +static S V = (S)0; + +void main_1() { + V.i = 5; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/store/local/i32.spvasm.expected.hlsl b/test/tint/ptr_ref/store/local/i32.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/local/i32.spvasm.expected.hlsl rename to test/tint/ptr_ref/store/local/i32.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/local/i32.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/store/local/i32.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..5a9d251b30 --- /dev/null +++ b/test/tint/ptr_ref/store/local/i32.spvasm.expected.fxc.hlsl @@ -0,0 +1,13 @@ +void main_1() { + int i = 0; + i = 123; + i = 123; + i = ((100 + 20) + 3); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/store/local/i32.wgsl.expected.hlsl b/test/tint/ptr_ref/store/local/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/local/i32.wgsl.expected.hlsl rename to test/tint/ptr_ref/store/local/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/local/i32.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/store/local/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..31873655bd --- /dev/null +++ b/test/tint/ptr_ref/store/local/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +[numthreads(1, 1, 1)] +void main() { + int i = 123; + i = 123; + i = ((100 + 20) + 3); + return; +} diff --git a/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.hlsl b/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/local/struct_field.spvasm.expected.hlsl rename to test/tint/ptr_ref/store/local/struct_field.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a867b6c981 --- /dev/null +++ b/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.fxc.hlsl @@ -0,0 +1,15 @@ +struct S { + int i; +}; + +void main_1() { + S V = (S)0; + V.i = 5; + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/store/param/ptr.spvasm.expected.hlsl b/test/tint/ptr_ref/store/param/ptr.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/param/ptr.spvasm.expected.hlsl rename to test/tint/ptr_ref/store/param/ptr.spvasm.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/param/ptr.spvasm.expected.fxc.hlsl b/test/tint/ptr_ref/store/param/ptr.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..319111830d --- /dev/null +++ b/test/tint/ptr_ref/store/param/ptr.spvasm.expected.fxc.hlsl @@ -0,0 +1,17 @@ +void func(int value, inout int pointer) { + pointer = value; + return; +} + +void main_1() { + int i = 0; + i = 123; + func(123, i); + return; +} + +[numthreads(1, 1, 1)] +void main() { + main_1(); + return; +} diff --git a/test/tint/ptr_ref/store/param/ptr.wgsl.expected.hlsl b/test/tint/ptr_ref/store/param/ptr.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/ptr_ref/store/param/ptr.wgsl.expected.hlsl rename to test/tint/ptr_ref/store/param/ptr.wgsl.expected.dxc.hlsl diff --git a/test/tint/ptr_ref/store/param/ptr.wgsl.expected.fxc.hlsl b/test/tint/ptr_ref/store/param/ptr.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d88b936416 --- /dev/null +++ b/test/tint/ptr_ref/store/param/ptr.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +void func(int value, inout int pointer) { + pointer = value; +} + +[numthreads(1, 1, 1)] +void main() { + int i = 123; + func(123, i); + return; +} diff --git a/test/tint/samples/compute_boids.wgsl.expected.hlsl b/test/tint/samples/compute_boids.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/compute_boids.wgsl.expected.hlsl rename to test/tint/samples/compute_boids.wgsl.expected.dxc.hlsl diff --git a/test/tint/samples/compute_boids.wgsl.expected.fxc.hlsl b/test/tint/samples/compute_boids.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dbaabbb78f --- /dev/null +++ b/test/tint/samples/compute_boids.wgsl.expected.fxc.hlsl @@ -0,0 +1,111 @@ +struct tint_symbol_1 { + float2 a_particlePos : TEXCOORD0; + float2 a_particleVel : TEXCOORD1; + float2 a_pos : TEXCOORD2; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 vert_main_inner(float2 a_particlePos, float2 a_particleVel, float2 a_pos) { + float angle = -(atan2(a_particleVel.x, a_particleVel.y)); + float2 pos = float2(((a_pos.x * cos(angle)) - (a_pos.y * sin(angle))), ((a_pos.x * sin(angle)) + (a_pos.y * cos(angle)))); + return float4((pos + a_particlePos), 0.0f, 1.0f); +} + +tint_symbol_2 vert_main(tint_symbol_1 tint_symbol) { + const float4 inner_result = vert_main_inner(tint_symbol.a_particlePos, tint_symbol.a_particleVel, tint_symbol.a_pos); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +struct tint_symbol_3 { + float4 value : SV_Target0; +}; + +float4 frag_main_inner() { + return (1.0f).xxxx; +} + +tint_symbol_3 frag_main() { + const float4 inner_result_1 = frag_main_inner(); + tint_symbol_3 wrapper_result_1 = (tint_symbol_3)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} + +cbuffer cbuffer_params : register(b0, space0) { + uint4 params[2]; +}; +RWByteAddressBuffer particlesA : register(u1, space0); +RWByteAddressBuffer particlesB : register(u2, space0); + +struct tint_symbol_5 { + uint3 gl_GlobalInvocationID : SV_DispatchThreadID; +}; + +void comp_main_inner(uint3 gl_GlobalInvocationID) { + uint index = gl_GlobalInvocationID.x; + if ((index >= 5u)) { + return; + } + float2 vPos = asfloat(particlesA.Load2((16u * index))); + float2 vVel = asfloat(particlesA.Load2(((16u * index) + 8u))); + 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); + float2 vel = float2(0.0f, 0.0f); + { + [loop] for(uint i = 0u; (i < 5u); i = (i + 1u)) { + if ((i == index)) { + continue; + } + pos = asfloat(particlesA.Load2((16u * i))).xy; + vel = asfloat(particlesA.Load2(((16u * i) + 8u))).xy; + if ((distance(pos, vPos) < asfloat(params[0].y))) { + cMass = (cMass + pos); + cMassCount = (cMassCount + 1); + } + if ((distance(pos, vPos) < asfloat(params[0].z))) { + colVel = (colVel - (pos - vPos)); + } + if ((distance(pos, vPos) < asfloat(params[0].w))) { + cVel = (cVel + vel); + cVelCount = (cVelCount + 1); + } + } + } + if ((cMassCount > 0)) { + cMass = ((cMass / float2(float(cMassCount), float(cMassCount))) - vPos); + } + if ((cVelCount > 0)) { + cVel = (cVel / float2(float(cVelCount), float(cVelCount))); + } + vVel = (((vVel + (cMass * asfloat(params[1].x))) + (colVel * asfloat(params[1].y))) + (cVel * asfloat(params[1].z))); + vVel = (normalize(vVel) * clamp(length(vVel), 0.0f, 0.100000001f)); + vPos = (vPos + (vVel * asfloat(params[0].x))); + if ((vPos.x < -1.0f)) { + vPos.x = 1.0f; + } + if ((vPos.x > 1.0f)) { + vPos.x = -1.0f; + } + if ((vPos.y < -1.0f)) { + vPos.y = 1.0f; + } + if ((vPos.y > 1.0f)) { + vPos.y = -1.0f; + } + particlesB.Store2((16u * index), asuint(vPos)); + particlesB.Store2(((16u * index) + 8u), asuint(vVel)); +} + +[numthreads(1, 1, 1)] +void comp_main(tint_symbol_5 tint_symbol_4) { + comp_main_inner(tint_symbol_4.gl_GlobalInvocationID); + return; +} diff --git a/test/tint/samples/cube.wgsl.expected.hlsl b/test/tint/samples/cube.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/cube.wgsl.expected.hlsl rename to test/tint/samples/cube.wgsl.expected.dxc.hlsl diff --git a/test/tint/samples/cube.wgsl.expected.fxc.hlsl b/test/tint/samples/cube.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..82af450e84 --- /dev/null +++ b/test/tint/samples/cube.wgsl.expected.fxc.hlsl @@ -0,0 +1,62 @@ +cbuffer cbuffer_uniforms : register(b0, space0) { + uint4 uniforms[4]; +}; + +struct VertexInput { + float4 cur_position; + float4 color; +}; +struct VertexOutput { + float4 vtxFragColor; + float4 Position; +}; +struct tint_symbol_1 { + float4 cur_position : TEXCOORD0; + float4 color : TEXCOORD1; +}; +struct tint_symbol_2 { + float4 vtxFragColor : TEXCOORD0; + float4 Position : SV_Position; +}; + +float4x4 tint_symbol_6(uint4 buffer[4], uint offset) { + const uint scalar_offset = ((offset + 0u)) / 4; + const uint scalar_offset_1 = ((offset + 16u)) / 4; + const uint scalar_offset_2 = ((offset + 32u)) / 4; + const uint scalar_offset_3 = ((offset + 48u)) / 4; + return float4x4(asfloat(buffer[scalar_offset / 4]), asfloat(buffer[scalar_offset_1 / 4]), asfloat(buffer[scalar_offset_2 / 4]), asfloat(buffer[scalar_offset_3 / 4])); +} + +VertexOutput vtx_main_inner(VertexInput input) { + VertexOutput output = (VertexOutput)0; + output.Position = mul(input.cur_position, tint_symbol_6(uniforms, 0u)); + output.vtxFragColor = input.color; + return output; +} + +tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) { + const VertexInput tint_symbol_8 = {tint_symbol.cur_position, tint_symbol.color}; + const VertexOutput inner_result = vtx_main_inner(tint_symbol_8); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.vtxFragColor = inner_result.vtxFragColor; + wrapper_result.Position = inner_result.Position; + return wrapper_result; +} + +struct tint_symbol_4 { + float4 fragColor : TEXCOORD0; +}; +struct tint_symbol_5 { + float4 value : SV_Target0; +}; + +float4 frag_main_inner(float4 fragColor) { + return fragColor; +} + +tint_symbol_5 frag_main(tint_symbol_4 tint_symbol_3) { + const float4 inner_result_1 = frag_main_inner(tint_symbol_3.fragColor); + tint_symbol_5 wrapper_result_1 = (tint_symbol_5)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} diff --git a/test/tint/samples/function.wgsl.expected.hlsl b/test/tint/samples/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/function.wgsl.expected.hlsl rename to test/tint/samples/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/samples/function.wgsl.expected.fxc.hlsl b/test/tint/samples/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9de43a2241 --- /dev/null +++ b/test/tint/samples/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +float main() { + return (((2.0f * 3.0f) - 4.0f) / 5.0f); +} + +[numthreads(2, 1, 1)] +void ep() { + return; +} diff --git a/test/tint/samples/simple.wgsl.expected.hlsl b/test/tint/samples/simple.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/simple.wgsl.expected.hlsl rename to test/tint/samples/simple.wgsl.expected.dxc.hlsl diff --git a/test/tint/samples/simple.wgsl.expected.fxc.hlsl b/test/tint/samples/simple.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f47bf239c1 --- /dev/null +++ b/test/tint/samples/simple.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +void bar() { +} + +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + float2 a = (0.0f).xx; + bar(); + return float4(0.400000006f, 0.400000006f, 0.800000012f, 1.0f); +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/samples/simple_vertex.spvasm.expected.hlsl b/test/tint/samples/simple_vertex.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/simple_vertex.spvasm.expected.hlsl rename to test/tint/samples/simple_vertex.spvasm.expected.dxc.hlsl diff --git a/test/tint/samples/simple_vertex.spvasm.expected.fxc.hlsl b/test/tint/samples/simple_vertex.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..1971eddee7 --- /dev/null +++ b/test/tint/samples/simple_vertex.spvasm.expected.fxc.hlsl @@ -0,0 +1,26 @@ +static float4 gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + gl_Position = (0.0f).xxxx; + return; +} + +struct main_out { + float4 gl_Position; +}; +struct tint_symbol { + float4 gl_Position : SV_Position; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_1 = {gl_Position}; + return tint_symbol_1; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.gl_Position = inner_result.gl_Position; + return wrapper_result; +} diff --git a/test/tint/samples/triangle.wgsl.expected.hlsl b/test/tint/samples/triangle.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/samples/triangle.wgsl.expected.hlsl rename to test/tint/samples/triangle.wgsl.expected.dxc.hlsl diff --git a/test/tint/samples/triangle.wgsl.expected.fxc.hlsl b/test/tint/samples/triangle.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ee8118cd77 --- /dev/null +++ b/test/tint/samples/triangle.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +struct tint_symbol_1 { + uint VertexIndex : SV_VertexID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 vtx_main_inner(uint VertexIndex) { + const float2 tint_symbol_4[3] = {float2(0.0f, 0.5f), (-0.5f).xx, float2(0.5f, -0.5f)}; + return float4(tint_symbol_4[VertexIndex], 0.0f, 1.0f); +} + +tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) { + const float4 inner_result = vtx_main_inner(tint_symbol.VertexIndex); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +struct tint_symbol_3 { + float4 value : SV_Target0; +}; + +float4 frag_main_inner() { + return float4(1.0f, 0.0f, 0.0f, 1.0f); +} + +tint_symbol_3 frag_main() { + const float4 inner_result_1 = frag_main_inner(); + tint_symbol_3 wrapper_result_1 = (tint_symbol_3)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} diff --git a/test/tint/shader_io/compute_input_builtins.wgsl.expected.hlsl b/test/tint/shader_io/compute_input_builtins.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/compute_input_builtins.wgsl.expected.hlsl rename to test/tint/shader_io/compute_input_builtins.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/compute_input_builtins.wgsl.expected.fxc.hlsl b/test/tint/shader_io/compute_input_builtins.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d6ab749383 --- /dev/null +++ b/test/tint/shader_io/compute_input_builtins.wgsl.expected.fxc.hlsl @@ -0,0 +1,20 @@ +cbuffer cbuffer_tint_symbol_3 : register(b0, space0) { + uint4 tint_symbol_3[1]; +}; + +struct tint_symbol_1 { + uint3 local_invocation_id : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 global_invocation_id : SV_DispatchThreadID; + uint3 workgroup_id : SV_GroupID; +}; + +void main_inner(uint3 local_invocation_id, uint local_invocation_index, uint3 global_invocation_id, uint3 workgroup_id, uint3 num_workgroups) { + const uint foo = ((((local_invocation_id.x + local_invocation_index) + global_invocation_id.x) + workgroup_id.x) + num_workgroups.x); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_id, tint_symbol.local_invocation_index, tint_symbol.global_invocation_id, tint_symbol.workgroup_id, tint_symbol_3[0].xyz); + return; +} diff --git a/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.hlsl b/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.hlsl rename to test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..783117eb83 --- /dev/null +++ b/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,28 @@ +cbuffer cbuffer_tint_symbol_3 : register(b0, space0) { + uint4 tint_symbol_3[1]; +}; + +struct ComputeInputs { + uint3 local_invocation_id; + uint local_invocation_index; + uint3 global_invocation_id; + uint3 workgroup_id; + uint3 num_workgroups; +}; +struct tint_symbol_1 { + uint3 local_invocation_id : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 global_invocation_id : SV_DispatchThreadID; + uint3 workgroup_id : SV_GroupID; +}; + +void main_inner(ComputeInputs inputs) { + const uint foo = ((((inputs.local_invocation_id.x + inputs.local_invocation_index) + inputs.global_invocation_id.x) + inputs.workgroup_id.x) + inputs.num_workgroups.x); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + const ComputeInputs tint_symbol_5 = {tint_symbol.local_invocation_id, tint_symbol.local_invocation_index, tint_symbol.global_invocation_id, tint_symbol.workgroup_id, tint_symbol_3[0].xyz}; + main_inner(tint_symbol_5); + return; +} diff --git a/test/tint/shader_io/compute_input_mixed.wgsl.expected.hlsl b/test/tint/shader_io/compute_input_mixed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/compute_input_mixed.wgsl.expected.hlsl rename to test/tint/shader_io/compute_input_mixed.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/compute_input_mixed.wgsl.expected.fxc.hlsl b/test/tint/shader_io/compute_input_mixed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e72a9d2d3c --- /dev/null +++ b/test/tint/shader_io/compute_input_mixed.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +struct ComputeInputs0 { + uint3 local_invocation_id; +}; +struct ComputeInputs1 { + uint3 workgroup_id; +}; +struct tint_symbol_1 { + uint3 local_invocation_id : SV_GroupThreadID; + uint local_invocation_index : SV_GroupIndex; + uint3 global_invocation_id : SV_DispatchThreadID; + uint3 workgroup_id : SV_GroupID; +}; + +void main_inner(ComputeInputs0 inputs0, uint local_invocation_index, uint3 global_invocation_id, ComputeInputs1 inputs1) { + const uint foo = (((inputs0.local_invocation_id.x + local_invocation_index) + global_invocation_id.x) + inputs1.workgroup_id.x); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + const ComputeInputs0 tint_symbol_2 = {tint_symbol.local_invocation_id}; + const ComputeInputs1 tint_symbol_3 = {tint_symbol.workgroup_id}; + main_inner(tint_symbol_2, tint_symbol.local_invocation_index, tint_symbol.global_invocation_id, tint_symbol_3); + return; +} diff --git a/test/tint/shader_io/fragment_input_builtins.wgsl.expected.hlsl b/test/tint/shader_io/fragment_input_builtins.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_input_builtins.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_input_builtins.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_input_builtins.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_input_builtins.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cc5f201352 --- /dev/null +++ b/test/tint/shader_io/fragment_input_builtins.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct tint_symbol_1 { + float4 position : SV_Position; + bool front_facing : SV_IsFrontFace; + uint sample_index : SV_SampleIndex; + uint sample_mask : SV_Coverage; +}; + +void main_inner(float4 position, bool front_facing, uint sample_index, uint sample_mask) { + if (front_facing) { + const float4 foo = position; + const uint bar = (sample_index + sample_mask); + } +} + +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.position, tint_symbol.front_facing, tint_symbol.sample_index, tint_symbol.sample_mask); + return; +} diff --git a/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.hlsl b/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6f38a1f522 --- /dev/null +++ b/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +struct FragmentInputs { + float4 position; + bool front_facing; + uint sample_index; + uint sample_mask; +}; +struct tint_symbol_1 { + float4 position : SV_Position; + bool front_facing : SV_IsFrontFace; + uint sample_index : SV_SampleIndex; + uint sample_mask : SV_Coverage; +}; + +void main_inner(FragmentInputs inputs) { + if (inputs.front_facing) { + const float4 foo = inputs.position; + const uint bar = (inputs.sample_index + inputs.sample_mask); + } +} + +void main(tint_symbol_1 tint_symbol) { + const FragmentInputs tint_symbol_2 = {tint_symbol.position, tint_symbol.front_facing, tint_symbol.sample_index, tint_symbol.sample_mask}; + main_inner(tint_symbol_2); + return; +} diff --git a/test/tint/shader_io/fragment_input_locations.wgsl.expected.hlsl b/test/tint/shader_io/fragment_input_locations.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_input_locations.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_input_locations.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_input_locations.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_input_locations.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e54969e790 --- /dev/null +++ b/test/tint/shader_io/fragment_input_locations.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct tint_symbol_1 { + nointerpolation int loc0 : TEXCOORD0; + nointerpolation uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; +}; + +void main_inner(int loc0, uint loc1, float loc2, float4 loc3) { + const int i = loc0; + const uint u = loc1; + const float f = loc2; + const float4 v = loc3; +} + +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3); + return; +} diff --git a/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.hlsl b/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9564509300 --- /dev/null +++ b/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +struct FragmentInputs { + int loc0; + uint loc1; + float loc2; + float4 loc3; +}; +struct tint_symbol_1 { + nointerpolation int loc0 : TEXCOORD0; + nointerpolation uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; +}; + +void main_inner(FragmentInputs inputs) { + const int i = inputs.loc0; + const uint u = inputs.loc1; + const float f = inputs.loc2; + const float4 v = inputs.loc3; +} + +void main(tint_symbol_1 tint_symbol) { + const FragmentInputs tint_symbol_2 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3}; + main_inner(tint_symbol_2); + return; +} diff --git a/test/tint/shader_io/fragment_input_mixed.wgsl.expected.hlsl b/test/tint/shader_io/fragment_input_mixed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_input_mixed.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_input_mixed.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_input_mixed.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_input_mixed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1d9d587817 --- /dev/null +++ b/test/tint/shader_io/fragment_input_mixed.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +struct FragmentInputs0 { + float4 position; + int loc0; +}; +struct FragmentInputs1 { + float4 loc3; + uint sample_mask; +}; +struct tint_symbol_1 { + nointerpolation int loc0 : TEXCOORD0; + nointerpolation uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; + float4 position : SV_Position; + bool front_facing : SV_IsFrontFace; + uint sample_index : SV_SampleIndex; + uint sample_mask : SV_Coverage; +}; + +void main_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) { + if (front_facing) { + const float4 foo = inputs0.position; + const uint bar = (sample_index + inputs1.sample_mask); + const int i = inputs0.loc0; + const uint u = loc1; + const float f = loc2; + const float4 v = inputs1.loc3; + } +} + +void main(tint_symbol_1 tint_symbol) { + const FragmentInputs0 tint_symbol_2 = {tint_symbol.position, tint_symbol.loc0}; + const FragmentInputs1 tint_symbol_3 = {tint_symbol.loc3, tint_symbol.sample_mask}; + main_inner(tint_symbol_2, tint_symbol.front_facing, tint_symbol.loc1, tint_symbol.sample_index, tint_symbol_3, tint_symbol.loc2); + return; +} diff --git a/test/tint/shader_io/fragment_output_builtins.wgsl.expected.hlsl b/test/tint/shader_io/fragment_output_builtins.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_output_builtins.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_output_builtins.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_output_builtins.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_output_builtins.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2b972d7ab4 --- /dev/null +++ b/test/tint/shader_io/fragment_output_builtins.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +struct tint_symbol { + float value : SV_Depth; +}; + +float main1_inner() { + return 1.0f; +} + +tint_symbol main1() { + const float inner_result = main1_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +struct tint_symbol_1 { + uint value : SV_Coverage; +}; + +uint main2_inner() { + return 1u; +} + +tint_symbol_1 main2() { + const uint inner_result_1 = main2_inner(); + tint_symbol_1 wrapper_result_1 = (tint_symbol_1)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} diff --git a/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.hlsl b/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d2e660ee7 --- /dev/null +++ b/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +struct FragmentOutputs { + float frag_depth; + uint sample_mask; +}; +struct tint_symbol { + float frag_depth : SV_Depth; + uint sample_mask : SV_Coverage; +}; + +FragmentOutputs main_inner() { + const FragmentOutputs tint_symbol_1 = {1.0f, 1u}; + return tint_symbol_1; +} + +tint_symbol main() { + const FragmentOutputs inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.frag_depth = inner_result.frag_depth; + wrapper_result.sample_mask = inner_result.sample_mask; + return wrapper_result; +} diff --git a/test/tint/shader_io/fragment_output_locations.wgsl.expected.hlsl b/test/tint/shader_io/fragment_output_locations.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_output_locations.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_output_locations.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_output_locations.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_output_locations.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0a9e48f125 --- /dev/null +++ b/test/tint/shader_io/fragment_output_locations.wgsl.expected.fxc.hlsl @@ -0,0 +1,59 @@ +struct tint_symbol { + int value : SV_Target0; +}; + +int main0_inner() { + return 1; +} + +tint_symbol main0() { + const int inner_result = main0_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} + +struct tint_symbol_1 { + uint value : SV_Target1; +}; + +uint main1_inner() { + return 1u; +} + +tint_symbol_1 main1() { + const uint inner_result_1 = main1_inner(); + tint_symbol_1 wrapper_result_1 = (tint_symbol_1)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} + +struct tint_symbol_2 { + float value : SV_Target2; +}; + +float main2_inner() { + return 1.0f; +} + +tint_symbol_2 main2() { + const float inner_result_2 = main2_inner(); + tint_symbol_2 wrapper_result_2 = (tint_symbol_2)0; + wrapper_result_2.value = inner_result_2; + return wrapper_result_2; +} + +struct tint_symbol_3 { + float4 value : SV_Target3; +}; + +float4 main3_inner() { + return float4(1.0f, 2.0f, 3.0f, 4.0f); +} + +tint_symbol_3 main3() { + const float4 inner_result_3 = main3_inner(); + tint_symbol_3 wrapper_result_3 = (tint_symbol_3)0; + wrapper_result_3.value = inner_result_3; + return wrapper_result_3; +} diff --git a/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.hlsl b/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09216c3bd6 --- /dev/null +++ b/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +struct FragmentOutputs { + int loc0; + uint loc1; + float loc2; + float4 loc3; +}; +struct tint_symbol { + int loc0 : SV_Target0; + uint loc1 : SV_Target1; + float loc2 : SV_Target2; + float4 loc3 : SV_Target3; +}; + +FragmentOutputs main_inner() { + const FragmentOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f)}; + return tint_symbol_1; +} + +tint_symbol main() { + const FragmentOutputs inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.loc0 = inner_result.loc0; + wrapper_result.loc1 = inner_result.loc1; + wrapper_result.loc2 = inner_result.loc2; + wrapper_result.loc3 = inner_result.loc3; + return wrapper_result; +} diff --git a/test/tint/shader_io/fragment_output_mixed.wgsl.expected.hlsl b/test/tint/shader_io/fragment_output_mixed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/fragment_output_mixed.wgsl.expected.hlsl rename to test/tint/shader_io/fragment_output_mixed.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/fragment_output_mixed.wgsl.expected.fxc.hlsl b/test/tint/shader_io/fragment_output_mixed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..86588758d6 --- /dev/null +++ b/test/tint/shader_io/fragment_output_mixed.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +struct FragmentOutputs { + int loc0; + float frag_depth; + uint loc1; + float loc2; + uint sample_mask; + float4 loc3; +}; +struct tint_symbol { + int loc0 : SV_Target0; + uint loc1 : SV_Target1; + float loc2 : SV_Target2; + float4 loc3 : SV_Target3; + float frag_depth : SV_Depth; + uint sample_mask : SV_Coverage; +}; + +FragmentOutputs main_inner() { + const FragmentOutputs tint_symbol_1 = {1, 2.0f, 1u, 1.0f, 2u, float4(1.0f, 2.0f, 3.0f, 4.0f)}; + return tint_symbol_1; +} + +tint_symbol main() { + const FragmentOutputs inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.loc0 = inner_result.loc0; + wrapper_result.frag_depth = inner_result.frag_depth; + wrapper_result.loc1 = inner_result.loc1; + wrapper_result.loc2 = inner_result.loc2; + wrapper_result.sample_mask = inner_result.sample_mask; + wrapper_result.loc3 = inner_result.loc3; + return wrapper_result; +} diff --git a/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.hlsl b/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/interpolate_input_parameters.wgsl.expected.hlsl rename to test/tint/shader_io/interpolate_input_parameters.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.fxc.hlsl b/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bb78da9482 --- /dev/null +++ b/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct tint_symbol_1 { + float none : TEXCOORD0; + nointerpolation float flat : TEXCOORD1; + linear float perspective_center : TEXCOORD2; + linear centroid float perspective_centroid : TEXCOORD3; + linear sample float perspective_sample : TEXCOORD4; + noperspective float linear_center : TEXCOORD5; + noperspective centroid float linear_centroid : TEXCOORD6; + noperspective sample float linear_sample : TEXCOORD7; +}; + +void main_inner(float none, float flat, float perspective_center, float perspective_centroid, float perspective_sample, float linear_center, float linear_centroid, float linear_sample) { +} + +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.none, tint_symbol.flat, tint_symbol.perspective_center, tint_symbol.perspective_centroid, tint_symbol.perspective_sample, tint_symbol.linear_center, tint_symbol.linear_centroid, tint_symbol.linear_sample); + return; +} diff --git a/test/tint/shader_io/interpolate_input_struct.wgsl.expected.hlsl b/test/tint/shader_io/interpolate_input_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/interpolate_input_struct.wgsl.expected.hlsl rename to test/tint/shader_io/interpolate_input_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/interpolate_input_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/interpolate_input_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cfc7acd02c --- /dev/null +++ b/test/tint/shader_io/interpolate_input_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +struct In { + float none; + float flat; + float perspective_center; + float perspective_centroid; + float perspective_sample; + float linear_center; + float linear_centroid; + float linear_sample; +}; +struct tint_symbol_2 { + float none : TEXCOORD0; + nointerpolation float flat : TEXCOORD1; + linear float perspective_center : TEXCOORD2; + linear centroid float perspective_centroid : TEXCOORD3; + linear sample float perspective_sample : TEXCOORD4; + noperspective float linear_center : TEXCOORD5; + noperspective centroid float linear_centroid : TEXCOORD6; + noperspective sample float linear_sample : TEXCOORD7; +}; + +void main_inner(In tint_symbol) { +} + +void main(tint_symbol_2 tint_symbol_1) { + const In tint_symbol_3 = {tint_symbol_1.none, tint_symbol_1.flat, tint_symbol_1.perspective_center, tint_symbol_1.perspective_centroid, tint_symbol_1.perspective_sample, tint_symbol_1.linear_center, tint_symbol_1.linear_centroid, tint_symbol_1.linear_sample}; + main_inner(tint_symbol_3); + return; +} diff --git a/test/tint/shader_io/interpolate_integers.wgsl.expected.hlsl b/test/tint/shader_io/interpolate_integers.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/interpolate_integers.wgsl.expected.hlsl rename to test/tint/shader_io/interpolate_integers.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/interpolate_integers.wgsl.expected.fxc.hlsl b/test/tint/shader_io/interpolate_integers.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..02c4f17941 --- /dev/null +++ b/test/tint/shader_io/interpolate_integers.wgsl.expected.fxc.hlsl @@ -0,0 +1,53 @@ +struct Interface { + int i; + uint u; + int4 vi; + uint4 vu; + float4 pos; +}; +struct tint_symbol { + nointerpolation int i : TEXCOORD0; + nointerpolation uint u : TEXCOORD1; + nointerpolation int4 vi : TEXCOORD2; + nointerpolation uint4 vu : TEXCOORD3; + float4 pos : SV_Position; +}; + +Interface vert_main_inner() { + const Interface tint_symbol_4 = (Interface)0; + return tint_symbol_4; +} + +tint_symbol vert_main() { + const Interface inner_result = vert_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.i = inner_result.i; + wrapper_result.u = inner_result.u; + wrapper_result.vi = inner_result.vi; + wrapper_result.vu = inner_result.vu; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} + +struct tint_symbol_2 { + nointerpolation int i : TEXCOORD0; + nointerpolation uint u : TEXCOORD1; + nointerpolation int4 vi : TEXCOORD2; + nointerpolation uint4 vu : TEXCOORD3; + float4 pos : SV_Position; +}; +struct tint_symbol_3 { + int value : SV_Target0; +}; + +int frag_main_inner(Interface inputs) { + return inputs.i; +} + +tint_symbol_3 frag_main(tint_symbol_2 tint_symbol_1) { + const Interface tint_symbol_5 = {tint_symbol_1.i, tint_symbol_1.u, tint_symbol_1.vi, tint_symbol_1.vu, tint_symbol_1.pos}; + const int inner_result_1 = frag_main_inner(tint_symbol_5); + tint_symbol_3 wrapper_result_1 = (tint_symbol_3)0; + wrapper_result_1.value = inner_result_1; + return wrapper_result_1; +} diff --git a/test/tint/shader_io/interpolate_return_struct.wgsl.expected.hlsl b/test/tint/shader_io/interpolate_return_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/interpolate_return_struct.wgsl.expected.hlsl rename to test/tint/shader_io/interpolate_return_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/interpolate_return_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/interpolate_return_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..19290977db --- /dev/null +++ b/test/tint/shader_io/interpolate_return_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,42 @@ +struct Out { + float4 pos; + float none; + float flat; + float perspective_center; + float perspective_centroid; + float perspective_sample; + float linear_center; + float linear_centroid; + float linear_sample; +}; +struct tint_symbol { + float none : TEXCOORD0; + nointerpolation float flat : TEXCOORD1; + linear float perspective_center : TEXCOORD2; + linear centroid float perspective_centroid : TEXCOORD3; + linear sample float perspective_sample : TEXCOORD4; + noperspective float linear_center : TEXCOORD5; + noperspective centroid float linear_centroid : TEXCOORD6; + noperspective sample float linear_sample : TEXCOORD7; + float4 pos : SV_Position; +}; + +Out main_inner() { + const Out tint_symbol_1 = (Out)0; + return tint_symbol_1; +} + +tint_symbol main() { + const Out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.none = inner_result.none; + wrapper_result.flat = inner_result.flat; + wrapper_result.perspective_center = inner_result.perspective_center; + wrapper_result.perspective_centroid = inner_result.perspective_centroid; + wrapper_result.perspective_sample = inner_result.perspective_sample; + wrapper_result.linear_center = inner_result.linear_center; + wrapper_result.linear_centroid = inner_result.linear_centroid; + wrapper_result.linear_sample = inner_result.linear_sample; + return wrapper_result; +} diff --git a/test/tint/shader_io/invariant.wgsl.expected.hlsl b/test/tint/shader_io/invariant.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/invariant.wgsl.expected.hlsl rename to test/tint/shader_io/invariant.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/invariant.wgsl.expected.fxc.hlsl b/test/tint/shader_io/invariant.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9bf6b9731a --- /dev/null +++ b/test/tint/shader_io/invariant.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +struct tint_symbol { + precise float4 value : SV_Position; +}; + +float4 main_inner() { + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/shader_io/invariant_struct_member.wgsl.expected.hlsl b/test/tint/shader_io/invariant_struct_member.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/invariant_struct_member.wgsl.expected.hlsl rename to test/tint/shader_io/invariant_struct_member.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/invariant_struct_member.wgsl.expected.fxc.hlsl b/test/tint/shader_io/invariant_struct_member.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b99e552e32 --- /dev/null +++ b/test/tint/shader_io/invariant_struct_member.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct Out { + float4 pos; +}; +struct tint_symbol { + precise float4 pos : SV_Position; +}; + +Out main_inner() { + const Out tint_symbol_1 = (Out)0; + return tint_symbol_1; +} + +tint_symbol main() { + const Out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/shader_io/shared_struct_different_stages.wgsl.expected.hlsl rename to test/tint/shader_io/shared_struct_different_stages.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.fxc.hlsl b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..da8ae774b1 --- /dev/null +++ b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct Interface { + float col1; + float col2; + float4 pos; +}; +struct tint_symbol { + float col1 : TEXCOORD1; + float col2 : TEXCOORD2; + float4 pos : SV_Position; +}; + +Interface vert_main_inner() { + const Interface tint_symbol_3 = {0.400000006f, 0.600000024f, (0.0f).xxxx}; + return tint_symbol_3; +} + +tint_symbol vert_main() { + const Interface inner_result = vert_main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.col1 = inner_result.col1; + wrapper_result.col2 = inner_result.col2; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} + +struct tint_symbol_2 { + float col1 : TEXCOORD1; + float col2 : TEXCOORD2; + float4 pos : SV_Position; +}; + +void frag_main_inner(Interface colors) { + const float r = colors.col1; + const float g = colors.col2; +} + +void frag_main(tint_symbol_2 tint_symbol_1) { + const Interface tint_symbol_4 = {tint_symbol_1.col1, tint_symbol_1.col2, tint_symbol_1.pos}; + frag_main_inner(tint_symbol_4); + return; +} diff --git a/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.hlsl b/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/shared_struct_helper_function.wgsl.expected.hlsl rename to test/tint/shader_io/shared_struct_helper_function.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.fxc.hlsl b/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e90b3c337 --- /dev/null +++ b/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.fxc.hlsl @@ -0,0 +1,43 @@ +struct VertexOutput { + float4 pos; + int loc0; +}; + +VertexOutput foo(float x) { + const VertexOutput tint_symbol_2 = {float4(x, x, x, 1.0f), 42}; + return tint_symbol_2; +} + +struct tint_symbol { + nointerpolation int loc0 : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vert_main1_inner() { + return foo(0.5f); +} + +tint_symbol vert_main1() { + const VertexOutput inner_result = vert_main1_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.loc0 = inner_result.loc0; + return wrapper_result; +} + +struct tint_symbol_1 { + nointerpolation int loc0 : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vert_main2_inner() { + return foo(0.25f); +} + +tint_symbol_1 vert_main2() { + const VertexOutput inner_result_1 = vert_main2_inner(); + tint_symbol_1 wrapper_result_1 = (tint_symbol_1)0; + wrapper_result_1.pos = inner_result_1.pos; + wrapper_result_1.loc0 = inner_result_1.loc0; + return wrapper_result_1; +} diff --git a/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.hlsl b/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.hlsl rename to test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.fxc.hlsl b/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..45c61bb370 --- /dev/null +++ b/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +struct S { + float f; + uint u; + float4 v; +}; + +RWByteAddressBuffer output : register(u0, space0); + +struct tint_symbol_1 { + float f : TEXCOORD0; + nointerpolation uint u : TEXCOORD1; + float4 v : SV_Position; +}; + +void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, S value) { + buffer.Store((offset + 0u), asuint(value.f)); + buffer.Store((offset + 4u), asuint(value.u)); + buffer.Store4((offset + 128u), asuint(value.v)); +} + +void frag_main_inner(S input) { + const float f = input.f; + const uint u = input.u; + const float4 v = input.v; + tint_symbol_2(output, 0u, input); +} + +void frag_main(tint_symbol_1 tint_symbol) { + const S tint_symbol_6 = {tint_symbol.f, tint_symbol.u, tint_symbol.v}; + frag_main_inner(tint_symbol_6); + return; +} diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_input_builtins.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..cb5f7c7e80 --- /dev/null +++ b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +struct tint_symbol_1 { + uint vertex_index : SV_VertexID; + uint instance_index : SV_InstanceID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(uint vertex_index, uint instance_index) { + const uint foo = (vertex_index + instance_index); + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const float4 inner_result = main_inner(tint_symbol.vertex_index, tint_symbol.instance_index); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..74369c8adb --- /dev/null +++ b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +struct VertexInputs { + uint vertex_index; + uint instance_index; +}; +struct tint_symbol_1 { + uint vertex_index : SV_VertexID; + uint instance_index : SV_InstanceID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(VertexInputs inputs) { + const uint foo = (inputs.vertex_index + inputs.instance_index); + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const VertexInputs tint_symbol_3 = {tint_symbol.vertex_index, tint_symbol.instance_index}; + const float4 inner_result = main_inner(tint_symbol_3); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_locations.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_input_locations.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_input_locations.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_input_locations.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c803987edb --- /dev/null +++ b/test/tint/shader_io/vertex_input_locations.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +struct tint_symbol_1 { + int loc0 : TEXCOORD0; + uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(int loc0, uint loc1, float loc2, float4 loc3) { + const int i = loc0; + const uint u = loc1; + const float f = loc2; + const float4 v = loc3; + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const float4 inner_result = main_inner(tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ef6fb7563 --- /dev/null +++ b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +struct VertexInputs { + int loc0; + uint loc1; + float loc2; + float4 loc3; +}; +struct tint_symbol_1 { + int loc0 : TEXCOORD0; + uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(VertexInputs inputs) { + const int i = inputs.loc0; + const uint u = inputs.loc1; + const float f = inputs.loc2; + const float4 v = inputs.loc3; + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const VertexInputs tint_symbol_3 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3}; + const float4 inner_result = main_inner(tint_symbol_3); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_input_mixed.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..39b42ef0bd --- /dev/null +++ b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.fxc.hlsl @@ -0,0 +1,37 @@ +struct VertexInputs0 { + uint vertex_index; + int loc0; +}; +struct VertexInputs1 { + float loc2; + float4 loc3; +}; +struct tint_symbol_1 { + int loc0 : TEXCOORD0; + uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; + uint vertex_index : SV_VertexID; + uint instance_index : SV_InstanceID; +}; +struct tint_symbol_2 { + float4 value : SV_Position; +}; + +float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) { + const uint foo = (inputs0.vertex_index + instance_index); + const int i = inputs0.loc0; + const uint u = loc1; + const float f = inputs1.loc2; + const float4 v = inputs1.loc3; + return (0.0f).xxxx; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const VertexInputs0 tint_symbol_3 = {tint_symbol.vertex_index, tint_symbol.loc0}; + const VertexInputs1 tint_symbol_4 = {tint_symbol.loc2, tint_symbol.loc3}; + const float4 inner_result = main_inner(tint_symbol_3, tint_symbol.loc1, tint_symbol.instance_index, tint_symbol_4); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/shader_io/vertex_output_builtins.wgsl.expected.hlsl b/test/tint/shader_io/vertex_output_builtins.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_output_builtins.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_output_builtins.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_output_builtins.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_output_builtins.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d08b5d5887 --- /dev/null +++ b/test/tint/shader_io/vertex_output_builtins.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +struct tint_symbol { + float4 value : SV_Position; +}; + +float4 main_inner() { + return float4(1.0f, 2.0f, 3.0f, 4.0f); +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.hlsl b/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..eeaba9692d --- /dev/null +++ b/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +struct VertexOutputs { + float4 position; +}; +struct tint_symbol { + float4 position : SV_Position; +}; + +VertexOutputs main_inner() { + const VertexOutputs tint_symbol_1 = {float4(1.0f, 2.0f, 3.0f, 4.0f)}; + return tint_symbol_1; +} + +tint_symbol main() { + const VertexOutputs inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.position = inner_result.position; + return wrapper_result; +} 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.dxc.hlsl similarity index 100% rename from test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.hlsl rename to test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.fxc.hlsl b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0dad7303df --- /dev/null +++ b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +struct VertexOutputs { + int loc0; + uint loc1; + float loc2; + float4 loc3; + float4 position; +}; +struct tint_symbol { + nointerpolation int loc0 : TEXCOORD0; + nointerpolation uint loc1 : TEXCOORD1; + float loc2 : TEXCOORD2; + float4 loc3 : TEXCOORD3; + float4 position : SV_Position; +}; + +VertexOutputs main_inner() { + 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; +} + +tint_symbol main() { + const VertexOutputs inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.loc0 = inner_result.loc0; + wrapper_result.loc1 = inner_result.loc1; + wrapper_result.loc2 = inner_result.loc2; + wrapper_result.loc3 = inner_result.loc3; + wrapper_result.position = inner_result.position; + return wrapper_result; +} diff --git a/test/tint/shadowing/alias/const.wgsl.expected.hlsl b/test/tint/shadowing/alias/const.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/alias/const.wgsl.expected.hlsl rename to test/tint/shadowing/alias/const.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/alias/const.wgsl.expected.fxc.hlsl b/test/tint/shadowing/alias/const.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6316714a17 --- /dev/null +++ b/test/tint/shadowing/alias/const.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + } +} diff --git a/test/tint/shadowing/alias/let.wgsl.expected.hlsl b/test/tint/shadowing/alias/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/alias/let.wgsl.expected.hlsl rename to test/tint/shadowing/alias/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/alias/let.wgsl.expected.fxc.hlsl b/test/tint/shadowing/alias/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad5e10450e --- /dev/null +++ b/test/tint/shadowing/alias/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + const int a_1 = 0; + const int b = a_1; + } + const int a_2 = 0; + const int b = a_2; +} diff --git a/test/tint/shadowing/alias/param.wgsl.expected.hlsl b/test/tint/shadowing/alias/param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/alias/param.wgsl.expected.hlsl rename to test/tint/shadowing/alias/param.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/alias/param.wgsl.expected.fxc.hlsl b/test/tint/shadowing/alias/param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b48a6b1132 --- /dev/null +++ b/test/tint/shadowing/alias/param.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int a_1) { + const int b = a_1; +} diff --git a/test/tint/shadowing/alias/var.wgsl.expected.hlsl b/test/tint/shadowing/alias/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/alias/var.wgsl.expected.hlsl rename to test/tint/shadowing/alias/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/alias/var.wgsl.expected.fxc.hlsl b/test/tint/shadowing/alias/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b1a2a095e --- /dev/null +++ b/test/tint/shadowing/alias/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + int a_1 = 0; + int b = a_1; + } + int a_2 = 0; + int b = a_2; +} diff --git a/test/tint/shadowing/function/let.wgsl.expected.hlsl b/test/tint/shadowing/function/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/function/let.wgsl.expected.hlsl rename to test/tint/shadowing/function/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/function/let.wgsl.expected.fxc.hlsl b/test/tint/shadowing/function/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33c805bb67 --- /dev/null +++ b/test/tint/shadowing/function/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void a() { + { + int a_1 = 1; + int b = a_1; + } + const int b = 1; +} diff --git a/test/tint/shadowing/function/param.wgsl.expected.hlsl b/test/tint/shadowing/function/param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/function/param.wgsl.expected.hlsl rename to test/tint/shadowing/function/param.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/function/param.wgsl.expected.fxc.hlsl b/test/tint/shadowing/function/param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f06b78f7e6 --- /dev/null +++ b/test/tint/shadowing/function/param.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void a(int a_1) { + const int b = a_1; +} diff --git a/test/tint/shadowing/function/var.wgsl.expected.hlsl b/test/tint/shadowing/function/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/function/var.wgsl.expected.hlsl rename to test/tint/shadowing/function/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/struct/var.wgsl.expected.hlsl b/test/tint/shadowing/function/var.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/shadowing/struct/var.wgsl.expected.hlsl rename to test/tint/shadowing/function/var.wgsl.expected.fxc.hlsl diff --git a/test/tint/shadowing/param/function.wgsl.expected.hlsl b/test/tint/shadowing/param/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/param/function.wgsl.expected.hlsl rename to test/tint/shadowing/param/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/param/function.wgsl.expected.fxc.hlsl b/test/tint/shadowing/param/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..831cce98b1 --- /dev/null +++ b/test/tint/shadowing/param/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void a(int a_1) { + { + int a_2 = a_1; + int b = a_2; + } +} diff --git a/test/tint/shadowing/param/let.wgsl.expected.hlsl b/test/tint/shadowing/param/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/param/let.wgsl.expected.hlsl rename to test/tint/shadowing/param/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/param/let.wgsl.expected.fxc.hlsl b/test/tint/shadowing/param/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ad522f35a0 --- /dev/null +++ b/test/tint/shadowing/param/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int a) { + { + const int b = a; + } +} diff --git a/test/tint/shadowing/param/var.wgsl.expected.hlsl b/test/tint/shadowing/param/var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/param/var.wgsl.expected.hlsl rename to test/tint/shadowing/param/var.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/param/var.wgsl.expected.fxc.hlsl b/test/tint/shadowing/param/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..33ab9f179f --- /dev/null +++ b/test/tint/shadowing/param/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f(int a) { + { + int a_1 = a; + int b = a_1; + } +} diff --git a/test/tint/shadowing/struct/let.wgsl.expected.hlsl b/test/tint/shadowing/struct/let.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/struct/let.wgsl.expected.hlsl rename to test/tint/shadowing/struct/let.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/struct/let.wgsl.expected.fxc.hlsl b/test/tint/shadowing/struct/let.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c4cb81d50c --- /dev/null +++ b/test/tint/shadowing/struct/let.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct a { + int a; +}; + +void f() { + { + const a a_1 = (a)0; + const a b = a_1; + } + const a a_2 = (a)0; + const a b = a_2; +} diff --git a/test/tint/shadowing/struct/param.wgsl.expected.hlsl b/test/tint/shadowing/struct/param.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/shadowing/struct/param.wgsl.expected.hlsl rename to test/tint/shadowing/struct/param.wgsl.expected.dxc.hlsl diff --git a/test/tint/shadowing/struct/param.wgsl.expected.fxc.hlsl b/test/tint/shadowing/struct/param.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..03c3814c29 --- /dev/null +++ b/test/tint/shadowing/struct/param.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct a { + int a; +}; + +void f(a a_1) { + const a b = a_1; +} diff --git a/test/tint/shadowing/struct/var.wgsl.expected.dxc.hlsl b/test/tint/shadowing/struct/var.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..96ed5410c6 --- /dev/null +++ b/test/tint/shadowing/struct/var.wgsl.expected.dxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct a { + int a; +}; + +void f() { + { + a a_1 = (a)0; + a b = a_1; + } + a a_2 = (a)0; + a b = a_2; +} diff --git a/test/tint/shadowing/struct/var.wgsl.expected.fxc.hlsl b/test/tint/shadowing/struct/var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..96ed5410c6 --- /dev/null +++ b/test/tint/shadowing/struct/var.wgsl.expected.fxc.hlsl @@ -0,0 +1,17 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct a { + int a; +}; + +void f() { + { + a a_1 = (a)0; + a b = a_1; + } + a a_2 = (a)0; + a b = a_2; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f82b13f649 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + [loop] for(int i = 0; (i < 4); i = (i + 1)) { + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x] = v; + s1.a1 = tint_symbol_1; + } + } + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..382880aa98 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.fxc.hlsl @@ -0,0 +1,29 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + int i = 0; + [loop] while (true) { + if (!((i < 4))) { break; } + i = (i + 1); + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x] = v; + s1.a1 = tint_symbol_1; + } + } + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..78f5452e2c --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.fxc.hlsl @@ -0,0 +1,27 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + int i = 0; + { + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x] = v; + s1.a1 = tint_symbol_1; + } + [loop] for(; (i < 4); i = (i + 1)) { + } + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e80d207c0d --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.fxc.hlsl @@ -0,0 +1,36 @@ +struct InnerS { + int v; +}; +struct S1 { + InnerS a2[8]; +}; +struct OuterS { + S1 a1[8]; +}; + +static uint nextIndex = 0u; + +uint getNextIndex() { + nextIndex = (nextIndex + 1u); + return nextIndex; +} + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s = (OuterS)0; + { + S1 tint_symbol_1[8] = s.a1; + const uint tint_symbol_4 = getNextIndex(); + const uint tint_symbol_2_save = tint_symbol_4; + InnerS tint_symbol_3[8] = tint_symbol_1[tint_symbol_2_save].a2; + tint_symbol_3[uniforms[0].y] = v; + tint_symbol_1[tint_symbol_2_save].a2 = tint_symbol_3; + s.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..15ddcb2011 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x] = v; + s1.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6ebca2ea12 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8][8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + InnerS tint_symbol_1[8][8] = s1.a1; + tint_symbol_1[uniforms[0].x][uniforms[0].y] = v; + s1.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..24cee3d2d0 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +struct InnerS { + int v; +}; +struct S1 { + InnerS s2; +}; +struct OuterS { + S1 a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + S1 tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x].s2 = v; + s1.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f4113725bf --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,28 @@ +struct InnerS { + int v; +}; +struct S1 { + InnerS a2[8]; +}; +struct OuterS { + S1 a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s = (OuterS)0; + { + S1 tint_symbol_1[8] = s.a1; + const uint tint_symbol_2_save = uniforms[0].x; + InnerS tint_symbol_3[8] = tint_symbol_1[tint_symbol_2_save].a2; + tint_symbol_3[uniforms[0].y] = v; + tint_symbol_1[tint_symbol_2_save].a2 = tint_symbol_3; + s.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4ae06055e9 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +struct InnerS { + int v; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +RWByteAddressBuffer s1 : register(u0, space0); + +void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, InnerS value) { + buffer.Store((offset + 0u), asuint(value.v)); +} + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + tint_symbol_1(s1, (4u * uniforms[0].x), v); + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..222fd91b33 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +struct InnerS { + int v; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; +RWByteAddressBuffer s : register(u0, space0); + +void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, InnerS value) { + buffer.Store((offset + 0u), asuint(value.v)); +} + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + tint_symbol_1(s, ((32u * uniforms[0].x) + (4u * uniforms[0].y)), v); + return; +} 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.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0ec20f0f8f --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,33 @@ +void set_vector_float2x4(inout float2x4 mat, int col, float4 val) { + switch (col) { + case 0: mat[0] = val; break; + case 1: mat[1] = val; break; + } +} + +void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; + break; + case 1: + mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; + break; + } +} + +struct OuterS { + float2x4 m1; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + OuterS s1 = (OuterS)0; + 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/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aa6d6bc26c --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.fxc.hlsl @@ -0,0 +1,28 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; + InnerS a2[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[uniforms[0].x] = v; + s1.a1 = tint_symbol_1; + } + { + InnerS tint_symbol_3[8] = s1.a2; + tint_symbol_3[uniforms[0].x] = v; + s1.a2 = tint_symbol_3; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..47f844cb55 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +struct InnerS { + int v; +}; +struct S1 { + InnerS a[8]; +}; +struct OuterS { + S1 s2; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + { + InnerS tint_symbol_1[8] = s1.s2.a; + tint_symbol_1[uniforms[0].x] = v; + s1.s2.a = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dc3f4150c2 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +struct OuterS { + float3 v1; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + OuterS s1 = (OuterS)0; + set_float3(s1.v1, uniforms[0].x, 1.0f); + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2d0a255767 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +void set_float3(inout float3 vec, int idx, float val) { + vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec; +} + +struct OuterS { + uint a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +uint f(uint i) { + return (i + 1u); +} + +[numthreads(1, 1, 1)] +void main() { + OuterS s1 = (OuterS)0; + float3 v = float3(0.0f, 0.0f, 0.0f); + set_float3(v, s1.a1[uniforms[0].x], 1.0f); + const uint tint_symbol = f(s1.a1[uniforms[0].x]); + set_float3(v, tint_symbol, 1.0f); + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8cedd87bd3 --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + InnerS v = (InnerS)0; + OuterS s1 = (OuterS)0; + const uint p_save = uniforms[0].x; + { + InnerS tint_symbol_1[8] = s1.a1; + tint_symbol_1[p_save] = v; + s1.a1 = tint_symbol_1; + } + return; +} diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.hlsl rename to test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bdaae4df4f --- /dev/null +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.fxc.hlsl @@ -0,0 +1,26 @@ +struct InnerS { + int v; +}; +struct OuterS { + InnerS a1[8]; +}; + +cbuffer cbuffer_uniforms : register(b4, space1) { + uint4 uniforms[1]; +}; + +void f(inout OuterS p) { + InnerS v = (InnerS)0; + { + InnerS tint_symbol_1[8] = p.a1; + tint_symbol_1[uniforms[0].x] = v; + p.a1 = tint_symbol_1; + } +} + +[numthreads(1, 1, 1)] +void main() { + OuterS s1 = (OuterS)0; + f(s1); + return; +} diff --git a/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.hlsl b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.hlsl b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.fxc.hlsl diff --git a/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.hlsl b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/storage_buffer.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..146b286402 --- /dev/null +++ b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +RWByteAddressBuffer s : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/statements/assign/phony/call.wgsl.expected.hlsl b/test/tint/statements/assign/phony/call.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/call.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/call.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/phony/call.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/phony/call.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..3d18ac9c64 --- /dev/null +++ b/test/tint/statements/assign/phony/call.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +int f(int a, int b, int c) { + return ((a * b) + c); +} + +[numthreads(1, 1, 1)] +void main() { + f(1, 2, 3); + return; +} diff --git a/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.hlsl b/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..12c8813a15 --- /dev/null +++ b/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +int f(int a, int b, int c) { + return ((a * b) + c); +} + +[numthreads(1, 1, 1)] +void main() { + const int tint_symbol = f(1, 2, 3); + const int tint_symbol_1 = f(4, 5, 6); + const int tint_symbol_2 = f(8, 9, 10); + const int tint_symbol_3 = f(7, tint_symbol_2, 11); + return; +} diff --git a/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.dxc.hlsl b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..146b286402 --- /dev/null +++ b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +RWByteAddressBuffer s : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..146b286402 --- /dev/null +++ b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +RWByteAddressBuffer s : register(u0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.hlsl b/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.hlsl rename to test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.fxc.hlsl b/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..35f86d85fc --- /dev/null +++ b/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +cbuffer cbuffer_u : register(b0, space0) { + uint4 u[1]; +}; + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.hlsl b/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/complex_lhs.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/complex_lhs.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c9c2c3d2bd --- /dev/null +++ b/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.fxc.hlsl @@ -0,0 +1,32 @@ +void set_int4(inout int4 vec, int idx, int val) { + vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec; +} + +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int4 a[4]; +}; + +static int counter = 0; + +int foo() { + counter = (counter + 1); + return counter; +} + +int bar() { + counter = (counter + 2); + return counter; +} + +void main() { + S x = (S)0; + const int tint_symbol_2 = foo(); + const int tint_symbol_save = tint_symbol_2; + const int tint_symbol_1 = bar(); + set_int4(x.a[tint_symbol_save], tint_symbol_1, (x.a[tint_symbol_save][tint_symbol_1] + 5)); +} diff --git a/test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.hlsl b/test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b90f3577b4 --- /dev/null +++ b/test/tint/statements/compound_assign/divide_by_zero.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int a = 0; +static float b = 0.0f; + +void foo(int maybe_zero) { + a = (a / 1); + a = (a % 1); + a = (a / (maybe_zero == 0 ? 1 : maybe_zero)); + a = (a % (maybe_zero == 0 ? 1 : maybe_zero)); + b = (b / 0.0f); + b = (b % 0.0f); + b = (b / float(maybe_zero)); + b = (b % float(maybe_zero)); +} diff --git a/test/tint/statements/compound_assign/for_loop.wgsl.expected.hlsl b/test/tint/statements/compound_assign/for_loop.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/for_loop.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/for_loop.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/for_loop.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/for_loop.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..53bd1a045f --- /dev/null +++ b/test/tint/statements/compound_assign/for_loop.wgsl.expected.fxc.hlsl @@ -0,0 +1,44 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); +static uint i = 0u; + +int idx1() { + i = (i + 1u); + return 1; +} + +int idx2() { + i = (i + 2u); + return 1; +} + +int idx3() { + i = (i + 3u); + return 1; +} + +void foo() { + float a[4] = (float[4])0; + const int tint_symbol_2 = idx1(); + const int tint_symbol_save = tint_symbol_2; + { + a[tint_symbol_save] = (a[tint_symbol_save] * 2.0f); + [loop] while (true) { + const int tint_symbol_3 = idx2(); + if (!((a[tint_symbol_3] < 10.0f))) { + break; + } + { + } + { + const int tint_symbol_4 = idx3(); + const int tint_symbol_1_save = tint_symbol_4; + a[tint_symbol_1_save] = (a[tint_symbol_1_save] + 1.0f); + } + } + } +} diff --git a/test/tint/statements/compound_assign/function.wgsl.expected.hlsl b/test/tint/statements/compound_assign/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/function.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/function.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bfdebdb6dc --- /dev/null +++ b/test/tint/statements/compound_assign/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void foo() { + int a = 0; + 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).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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/matrix/minus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/matrix/minus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b0784defc --- /dev/null +++ b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void tint_symbol(RWByteAddressBuffer buffer, uint offset, float4x4 value) { + buffer.Store4((offset + 0u), asuint(value[0u])); + buffer.Store4((offset + 16u), asuint(value[1u])); + buffer.Store4((offset + 32u), asuint(value[2u])); + buffer.Store4((offset + 48u), asuint(value[3u])); +} + +float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u)))); +} + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/matrix/plus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/matrix/plus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..efa7687a93 --- /dev/null +++ b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void tint_symbol(RWByteAddressBuffer buffer, uint offset, float4x4 value) { + buffer.Store4((offset + 0u), asuint(value[0u])); + buffer.Store4((offset + 16u), asuint(value[1u])); + buffer.Store4((offset + 32u), asuint(value[2u])); + buffer.Store4((offset + 48u), asuint(value[3u])); +} + +float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u)))); +} + +void foo() { + 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-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..24236fdc85 --- /dev/null +++ b/test/tint/statements/compound_assign/matrix/times-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void tint_symbol(RWByteAddressBuffer buffer, uint offset, float4x4 value) { + buffer.Store4((offset + 0u), asuint(value[0u])); + buffer.Store4((offset + 16u), asuint(value[1u])); + buffer.Store4((offset + 32u), asuint(value[2u])); + buffer.Store4((offset + 48u), asuint(value[3u])); +} + +float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u)))); +} + +void foo() { + tint_symbol(v, 0u, (tint_symbol_2(v, 0u) * 2.0f)); +} diff --git a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/matrix/times.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..05313f1946 --- /dev/null +++ b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void tint_symbol(RWByteAddressBuffer buffer, uint offset, float4x4 value) { + buffer.Store4((offset + 0u), asuint(value[0u])); + buffer.Store4((offset + 16u), asuint(value[1u])); + buffer.Store4((offset + 32u), asuint(value[2u])); + buffer.Store4((offset + 48u), asuint(value[3u])); +} + +float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { + return float4x4(asfloat(buffer.Load4((offset + 0u))), asfloat(buffer.Load4((offset + 16u))), asfloat(buffer.Load4((offset + 32u))), asfloat(buffer.Load4((offset + 48u)))); +} + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/private.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/private.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f01cc42ffa --- /dev/null +++ b/test/tint/statements/compound_assign/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int a = 0; +static float4 b = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float2x2 c = float2x2(0.0f, 0.0f, 0.0f, 0.0f); + +void foo() { + a = (a / 2); + 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/scalar/and.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/and.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/and.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/and.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/and.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/and.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8af8952a49 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/and.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) & 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/divide.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/divide.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/divide.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/divide.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/divide.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/divide.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..affbb2bf49 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/divide.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) / 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/minus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/minus.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/minus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/minus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/minus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/minus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1b557a16be --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/minus.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) - 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fec5816468 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/modulo.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) % 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/or.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/or.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/or.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/or.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/or.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/or.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..309c612c59 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/or.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) | 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/plus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/plus.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/plus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/plus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/plus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/plus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..20f9d1cffa --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/plus.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) + 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/times.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/times.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/times.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/times.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/times.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/times.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2735d376b0 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/times.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) * 2))); +} diff --git a/test/tint/statements/compound_assign/scalar/xor.wgsl.expected.hlsl b/test/tint/statements/compound_assign/scalar/xor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/scalar/xor.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/scalar/xor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/scalar/xor.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/scalar/xor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..69a4c5e414 --- /dev/null +++ b/test/tint/statements/compound_assign/scalar/xor.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store(0u, asuint((asint(v.Load(0u)) ^ 2))); +} diff --git a/test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/and.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/and.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/and.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/and.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4c0f7f3515 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/and.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asint(v.Load4(0u)) & (2).xxxx))); +} diff --git a/test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e0b7c7b8fb --- /dev/null +++ b/test/tint/statements/compound_assign/vector/divide-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asfloat(v.Load4(0u)) / 2.0f))); +} diff --git a/test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/divide.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/divide.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/divide.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/divide.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0e66d73f8a --- /dev/null +++ b/test/tint/statements/compound_assign/vector/divide.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asint(v.Load4(0u)) / (2).xxxx))); +} diff --git a/test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..93093753f9 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/minus-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asfloat(v.Load4(0u)) - 2.0f))); +} diff --git a/test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/minus.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/minus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/minus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/minus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..03a10ae42a --- /dev/null +++ b/test/tint/statements/compound_assign/vector/minus.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asint(v.Load4(0u)) - (2).xxxx))); +} diff --git a/test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f5f8675647 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/modulo-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asint(v.Load4(0u)) % 2))); +} diff --git a/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/modulo.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b54d9803e7 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/or.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/or.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/or.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/or.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8ee7a2022c --- /dev/null +++ b/test/tint/statements/compound_assign/vector/or.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asint(v.Load4(0u)) | (2).xxxx))); +} diff --git a/test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..40c7df0163 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/plus-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asfloat(v.Load4(0u)) + 2.0f))); +} diff --git a/test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/plus.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/plus.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/plus.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/plus.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7928de28bb --- /dev/null +++ b/test/tint/statements/compound_assign/vector/plus.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ca2d65284 --- /dev/null +++ b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + 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-scalar.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67f16d8d0d --- /dev/null +++ b/test/tint/statements/compound_assign/vector/times-scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + v.Store4(0u, asuint((asfloat(v.Load4(0u)) * 2.0f))); +} diff --git a/test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/times.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/times.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/times.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/times.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43e0df8e3e --- /dev/null +++ b/test/tint/statements/compound_assign/vector/times.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/vector/xor.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/vector/xor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/vector/xor.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/vector/xor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e53744a06c --- /dev/null +++ b/test/tint/statements/compound_assign/vector/xor.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer v : register(u0, space0); + +void foo() { + 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.dxc.hlsl similarity index 100% rename from test/tint/statements/compound_assign/workgroup.wgsl.expected.hlsl rename to test/tint/statements/compound_assign/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/compound_assign/workgroup.wgsl.expected.fxc.hlsl b/test/tint/statements/compound_assign/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dae8e54896 --- /dev/null +++ b/test/tint/statements/compound_assign/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,14 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +groupshared int a; +groupshared float4 b; +groupshared float2x2 c; + +void foo() { + a = (a / 2); + 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/array_element.wgsl.expected.hlsl b/test/tint/statements/decrement/array_element.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/array_element.wgsl.expected.hlsl rename to test/tint/statements/decrement/array_element.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/array_element.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/array_element.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fda70650d8 --- /dev/null +++ b/test/tint/statements/decrement/array_element.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer a : register(u0, space0); + +void main() { + a.Store(4u, asuint((a.Load(4u) - 1u))); +} diff --git a/test/tint/statements/decrement/complex.wgsl.expected.hlsl b/test/tint/statements/decrement/complex.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/complex.wgsl.expected.hlsl rename to test/tint/statements/decrement/complex.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/complex.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/complex.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..069b822f47 --- /dev/null +++ b/test/tint/statements/decrement/complex.wgsl.expected.fxc.hlsl @@ -0,0 +1,63 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer buffer : register(u0, space0); +static uint v = 0u; + +int idx1() { + v = (v - 1u); + return 1; +} + +int idx2() { + v = (v - 1u); + return 2; +} + +int idx3() { + v = (v - 1u); + return 3; +} + +int idx4() { + v = (v - 1u); + return 4; +} + +int idx5() { + v = (v - 1u); + return 0; +} + +int idx6() { + v = (v - 1u); + return 2; +} + +void main() { + const int tint_symbol_4 = idx1(); + const int tint_symbol_5 = idx2(); + const int tint_symbol_save = tint_symbol_4; + const int tint_symbol_save_1 = tint_symbol_5; + const int tint_symbol_1 = idx3(); + { + buffer.Store((((64u * uint(tint_symbol_save)) + (16u * uint(tint_symbol_save_1))) + (4u * uint(tint_symbol_1))), asuint((asint(buffer.Load((((64u * uint(tint_symbol_save)) + (16u * uint(tint_symbol_save_1))) + (4u * uint(tint_symbol_1))))) - 1))); + [loop] while (true) { + if (!((v < 10u))) { + break; + } + { + } + { + const int tint_symbol_6 = idx4(); + const int tint_symbol_7 = idx5(); + const int tint_symbol_2_save = tint_symbol_6; + const int tint_symbol_2_save_1 = tint_symbol_7; + const int tint_symbol_3 = idx6(); + buffer.Store((((64u * uint(tint_symbol_2_save)) + (16u * uint(tint_symbol_2_save_1))) + (4u * uint(tint_symbol_3))), asuint((asint(buffer.Load((((64u * uint(tint_symbol_2_save)) + (16u * uint(tint_symbol_2_save_1))) + (4u * uint(tint_symbol_3))))) - 1))); + } + } + } +} diff --git a/test/tint/statements/decrement/for_loop_continuing.wgsl.expected.hlsl b/test/tint/statements/decrement/for_loop_continuing.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/for_loop_continuing.wgsl.expected.hlsl rename to test/tint/statements/decrement/for_loop_continuing.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/for_loop_continuing.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/for_loop_continuing.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7baae1bc1b --- /dev/null +++ b/test/tint/statements/decrement/for_loop_continuing.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + { + [loop] for(; (i.Load(0u) < 10u); i.Store(0u, asuint((i.Load(0u) - 1u)))) { + } + } +} diff --git a/test/tint/statements/decrement/for_loop_initializer.wgsl.expected.hlsl b/test/tint/statements/decrement/for_loop_initializer.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/for_loop_initializer.wgsl.expected.hlsl rename to test/tint/statements/decrement/for_loop_initializer.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/for_loop_initializer.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/for_loop_initializer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e520f5ecf2 --- /dev/null +++ b/test/tint/statements/decrement/for_loop_initializer.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + { + [loop] for(i.Store(0u, asuint((i.Load(0u) - 1u))); (i.Load(0u) < 10u); ) { + } + } +} diff --git a/test/tint/statements/decrement/function.wgsl.expected.hlsl b/test/tint/statements/decrement/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/function.wgsl.expected.hlsl rename to test/tint/statements/decrement/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/function.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..479225e69b --- /dev/null +++ b/test/tint/statements/decrement/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void main() { + int i = 0; + i = (i - 1); +} diff --git a/test/tint/statements/decrement/private.wgsl.expected.hlsl b/test/tint/statements/decrement/private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/private.wgsl.expected.hlsl rename to test/tint/statements/decrement/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/private.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..56b4922bb1 --- /dev/null +++ b/test/tint/statements/decrement/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int i = 0; + +void main() { + i = (i - 1); +} diff --git a/test/tint/statements/decrement/storage.wgsl.expected.hlsl b/test/tint/statements/decrement/storage.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/storage.wgsl.expected.hlsl rename to test/tint/statements/decrement/storage.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/storage.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/storage.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..99f987877f --- /dev/null +++ b/test/tint/statements/decrement/storage.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + i.Store(0u, asuint((i.Load(0u) - 1u))); +} diff --git a/test/tint/statements/decrement/vector_component.wgsl.expected.hlsl b/test/tint/statements/decrement/vector_component.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/vector_component.wgsl.expected.hlsl rename to test/tint/statements/decrement/vector_component.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/vector_component.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/vector_component.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88bf0a8dfc --- /dev/null +++ b/test/tint/statements/decrement/vector_component.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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(8u, asuint((a.Load(8u) - 1u))); +} diff --git a/test/tint/statements/decrement/workgroup.wgsl.expected.hlsl b/test/tint/statements/decrement/workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/decrement/workgroup.wgsl.expected.hlsl rename to test/tint/statements/decrement/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/decrement/workgroup.wgsl.expected.fxc.hlsl b/test/tint/statements/decrement/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b39cd010ec --- /dev/null +++ b/test/tint/statements/decrement/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +groupshared int i; + +void main() { + i = (i - 1); +} diff --git a/test/tint/statements/for/basic.wgsl.expected.hlsl b/test/tint/statements/for/basic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/basic.wgsl.expected.hlsl rename to test/tint/statements/for/basic.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/basic.wgsl.expected.fxc.hlsl b/test/tint/statements/for/basic.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..223650392b --- /dev/null +++ b/test/tint/statements/for/basic.wgsl.expected.fxc.hlsl @@ -0,0 +1,15 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void some_loop_body() { +} + +void f() { + { + [loop] for(int i = 0; (i < 5); i = (i + 1)) { + some_loop_body(); + } + } +} diff --git a/test/tint/statements/for/complex.wgsl.expected.hlsl b/test/tint/statements/for/complex.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/complex.wgsl.expected.hlsl rename to test/tint/statements/for/complex.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/complex.wgsl.expected.fxc.hlsl b/test/tint/statements/for/complex.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..ebc9720860 --- /dev/null +++ b/test/tint/statements/for/complex.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void some_loop_body() { +} + +void f() { + int j = 0; + { + int i = 0; + [loop] while (true) { + bool tint_tmp = (i < 5); + if (tint_tmp) { + tint_tmp = (j < 10); + } + if (!((tint_tmp))) { break; } + some_loop_body(); + j = (i * 30); + i = (i + 1); + } + } +} diff --git a/test/tint/statements/for/condition/array_ctor.wgsl.expected.hlsl b/test/tint/statements/for/condition/array_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/condition/array_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/condition/array_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/condition/array_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/condition/array_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..141cd27664 --- /dev/null +++ b/test/tint/statements/for/condition/array_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 0; + [loop] while (true) { + const int tint_symbol[1] = {1}; + if (!((i < tint_symbol[0]))) { + break; + } + { + } + } +} diff --git a/test/tint/statements/for/condition/basic.wgsl.expected.hlsl b/test/tint/statements/for/condition/basic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/condition/basic.wgsl.expected.hlsl rename to test/tint/statements/for/condition/basic.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/condition/basic.wgsl.expected.fxc.hlsl b/test/tint/statements/for/condition/basic.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..96122e55e1 --- /dev/null +++ b/test/tint/statements/for/condition/basic.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 0; + { + [loop] for(; (i < 4); ) { + } + } +} diff --git a/test/tint/statements/for/condition/struct_ctor.wgsl.expected.hlsl b/test/tint/statements/for/condition/struct_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/condition/struct_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/condition/struct_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/condition/struct_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/condition/struct_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d80f79a7b4 --- /dev/null +++ b/test/tint/statements/for/condition/struct_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,20 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int i; +}; + +void f() { + int i = 0; + [loop] while (true) { + const S tint_symbol = {1}; + if (!((i < tint_symbol.i))) { + break; + } + { + } + } +} diff --git a/test/tint/statements/for/continuing/array_ctor.wgsl.expected.hlsl b/test/tint/statements/for/continuing/array_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/continuing/array_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/continuing/array_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/continuing/array_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/continuing/array_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7348a72604 --- /dev/null +++ b/test/tint/statements/for/continuing/array_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,19 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 0; + [loop] while (true) { + if (!(false)) { + break; + } + { + } + { + const int tint_symbol[1] = {1}; + i = (i + tint_symbol[0]); + } + } +} diff --git a/test/tint/statements/for/continuing/basic.wgsl.expected.hlsl b/test/tint/statements/for/continuing/basic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/continuing/basic.wgsl.expected.hlsl rename to test/tint/statements/for/continuing/basic.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/continuing/basic.wgsl.expected.fxc.hlsl b/test/tint/statements/for/continuing/basic.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6b8fc8fbff --- /dev/null +++ b/test/tint/statements/for/continuing/basic.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + int i = 0; + { + [loop] for(; false; i = (i + 1)) { + } + } +} diff --git a/test/tint/statements/for/continuing/struct_ctor.wgsl.expected.hlsl b/test/tint/statements/for/continuing/struct_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/continuing/struct_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/continuing/struct_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/continuing/struct_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/continuing/struct_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4dd0cf2879 --- /dev/null +++ b/test/tint/statements/for/continuing/struct_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,25 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int i; +}; + +void f() { + { + int i = 0; + [loop] while (true) { + if (!(false)) { + break; + } + { + } + { + const S tint_symbol = {1}; + i = (i + tint_symbol.i); + } + } + } +} diff --git a/test/tint/statements/for/empty.wgsl.expected.hlsl b/test/tint/statements/for/empty.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/empty.wgsl.expected.hlsl rename to test/tint/statements/for/empty.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/empty.wgsl.expected.fxc.hlsl b/test/tint/statements/for/empty.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dcc6c45b23 --- /dev/null +++ b/test/tint/statements/for/empty.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + [loop] for(; false; ) { + } + } +} diff --git a/test/tint/statements/for/initializer/array_ctor.wgsl.expected.hlsl b/test/tint/statements/for/initializer/array_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/initializer/array_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/initializer/array_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/initializer/array_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/initializer/array_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1de4bce0d6 --- /dev/null +++ b/test/tint/statements/for/initializer/array_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + const int tint_symbol[1] = {1}; + { + [loop] for(int i = tint_symbol[0]; false; ) { + } + } +} diff --git a/test/tint/statements/for/initializer/basic.wgsl.expected.hlsl b/test/tint/statements/for/initializer/basic.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/initializer/basic.wgsl.expected.hlsl rename to test/tint/statements/for/initializer/basic.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/initializer/basic.wgsl.expected.fxc.hlsl b/test/tint/statements/for/initializer/basic.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ae9892518 --- /dev/null +++ b/test/tint/statements/for/initializer/basic.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + [loop] for(int i = 0; false; ) { + } + } +} diff --git a/test/tint/statements/for/initializer/struct_ctor.wgsl.expected.hlsl b/test/tint/statements/for/initializer/struct_ctor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/initializer/struct_ctor.wgsl.expected.hlsl rename to test/tint/statements/for/initializer/struct_ctor.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/initializer/struct_ctor.wgsl.expected.fxc.hlsl b/test/tint/statements/for/initializer/struct_ctor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..657fdbeff0 --- /dev/null +++ b/test/tint/statements/for/initializer/struct_ctor.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +struct S { + int i; +}; + +void f() { + const S tint_symbol = {1}; + { + [loop] for(int i = tint_symbol.i; false; ) { + } + } +} diff --git a/test/tint/statements/for/scoping.wgsl.expected.hlsl b/test/tint/statements/for/scoping.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/for/scoping.wgsl.expected.hlsl rename to test/tint/statements/for/scoping.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/for/scoping.wgsl.expected.fxc.hlsl b/test/tint/statements/for/scoping.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..16c30ec326 --- /dev/null +++ b/test/tint/statements/for/scoping.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void f() { + { + [loop] for(int must_not_collide = 0; ; ) { + break; + } + } + int must_not_collide = 0; +} diff --git a/test/tint/statements/increment/array_element.wgsl.expected.hlsl b/test/tint/statements/increment/array_element.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/array_element.wgsl.expected.hlsl rename to test/tint/statements/increment/array_element.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/array_element.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/array_element.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9db143fafc --- /dev/null +++ b/test/tint/statements/increment/array_element.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer a : register(u0, space0); + +void main() { + a.Store(4u, asuint((a.Load(4u) + 1u))); +} diff --git a/test/tint/statements/increment/complex.wgsl.expected.hlsl b/test/tint/statements/increment/complex.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/complex.wgsl.expected.hlsl rename to test/tint/statements/increment/complex.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/complex.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/complex.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..06d410ad12 --- /dev/null +++ b/test/tint/statements/increment/complex.wgsl.expected.fxc.hlsl @@ -0,0 +1,63 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer buffer : register(u0, space0); +static uint v = 0u; + +int idx1() { + v = (v + 1u); + return 1; +} + +int idx2() { + v = (v + 1u); + return 2; +} + +int idx3() { + v = (v + 1u); + return 3; +} + +int idx4() { + v = (v + 1u); + return 4; +} + +int idx5() { + v = (v + 1u); + return 0; +} + +int idx6() { + v = (v + 1u); + return 2; +} + +void main() { + const int tint_symbol_4 = idx1(); + const int tint_symbol_5 = idx2(); + const int tint_symbol_save = tint_symbol_4; + const int tint_symbol_save_1 = tint_symbol_5; + const int tint_symbol_1 = idx3(); + { + buffer.Store((((64u * uint(tint_symbol_save)) + (16u * uint(tint_symbol_save_1))) + (4u * uint(tint_symbol_1))), asuint((asint(buffer.Load((((64u * uint(tint_symbol_save)) + (16u * uint(tint_symbol_save_1))) + (4u * uint(tint_symbol_1))))) + 1))); + [loop] while (true) { + if (!((v < 10u))) { + break; + } + { + } + { + const int tint_symbol_6 = idx4(); + const int tint_symbol_7 = idx5(); + const int tint_symbol_2_save = tint_symbol_6; + const int tint_symbol_2_save_1 = tint_symbol_7; + const int tint_symbol_3 = idx6(); + buffer.Store((((64u * uint(tint_symbol_2_save)) + (16u * uint(tint_symbol_2_save_1))) + (4u * uint(tint_symbol_3))), asuint((asint(buffer.Load((((64u * uint(tint_symbol_2_save)) + (16u * uint(tint_symbol_2_save_1))) + (4u * uint(tint_symbol_3))))) + 1))); + } + } + } +} diff --git a/test/tint/statements/increment/for_loop_continuing.wgsl.expected.hlsl b/test/tint/statements/increment/for_loop_continuing.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/for_loop_continuing.wgsl.expected.hlsl rename to test/tint/statements/increment/for_loop_continuing.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/for_loop_continuing.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/for_loop_continuing.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..836d2459e1 --- /dev/null +++ b/test/tint/statements/increment/for_loop_continuing.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + { + [loop] for(; (i.Load(0u) < 10u); i.Store(0u, asuint((i.Load(0u) + 1u)))) { + } + } +} diff --git a/test/tint/statements/increment/for_loop_initializer.wgsl.expected.hlsl b/test/tint/statements/increment/for_loop_initializer.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/for_loop_initializer.wgsl.expected.hlsl rename to test/tint/statements/increment/for_loop_initializer.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/for_loop_initializer.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/for_loop_initializer.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8653efa400 --- /dev/null +++ b/test/tint/statements/increment/for_loop_initializer.wgsl.expected.fxc.hlsl @@ -0,0 +1,13 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + { + [loop] for(i.Store(0u, asuint((i.Load(0u) + 1u))); (i.Load(0u) < 10u); ) { + } + } +} diff --git a/test/tint/statements/increment/function.wgsl.expected.hlsl b/test/tint/statements/increment/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/function.wgsl.expected.hlsl rename to test/tint/statements/increment/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/function.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..900a2d0fb5 --- /dev/null +++ b/test/tint/statements/increment/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +void main() { + int i = 0; + i = (i + 1); +} diff --git a/test/tint/statements/increment/private.wgsl.expected.hlsl b/test/tint/statements/increment/private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/private.wgsl.expected.hlsl rename to test/tint/statements/increment/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/private.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d5883bcfd9 --- /dev/null +++ b/test/tint/statements/increment/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +static int i = 0; + +void main() { + i = (i + 1); +} diff --git a/test/tint/statements/increment/storage.wgsl.expected.hlsl b/test/tint/statements/increment/storage.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/storage.wgsl.expected.hlsl rename to test/tint/statements/increment/storage.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/storage.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/storage.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..219ed95a3c --- /dev/null +++ b/test/tint/statements/increment/storage.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +RWByteAddressBuffer i : register(u0, space0); + +void main() { + i.Store(0u, asuint((i.Load(0u) + 1u))); +} diff --git a/test/tint/statements/increment/vector_component.wgsl.expected.hlsl b/test/tint/statements/increment/vector_component.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/vector_component.wgsl.expected.hlsl rename to test/tint/statements/increment/vector_component.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/vector_component.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/vector_component.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95c9272ea0 --- /dev/null +++ b/test/tint/statements/increment/vector_component.wgsl.expected.fxc.hlsl @@ -0,0 +1,12 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +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(8u, asuint((a.Load(8u) + 1u))); +} diff --git a/test/tint/statements/increment/workgroup.wgsl.expected.hlsl b/test/tint/statements/increment/workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/increment/workgroup.wgsl.expected.hlsl rename to test/tint/statements/increment/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/increment/workgroup.wgsl.expected.fxc.hlsl b/test/tint/statements/increment/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d8306403cb --- /dev/null +++ b/test/tint/statements/increment/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void unused_entry_point() { + return; +} + +groupshared int i; + +void main() { + i = (i + 1); +} diff --git a/test/tint/statements/switch/common.wgsl.expected.hlsl b/test/tint/statements/switch/common.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/switch/common.wgsl.expected.hlsl rename to test/tint/statements/switch/common.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/switch/common.wgsl.expected.fxc.hlsl b/test/tint/statements/switch/common.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7aa505cf7e --- /dev/null +++ b/test/tint/statements/switch/common.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +[numthreads(1, 1, 1)] +void f() { + int i = 0; + int result = 0; + switch(i) { + case 0: { + result = 10; + break; + } + case 1: { + result = 22; + break; + } + case 2: { + result = 33; + break; + } + default: { + result = 44; + break; + } + } + return; +} diff --git a/test/tint/statements/switch/fallthrough.wgsl.expected.hlsl b/test/tint/statements/switch/fallthrough.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/switch/fallthrough.wgsl.expected.hlsl rename to test/tint/statements/switch/fallthrough.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/switch/fallthrough.wgsl.expected.fxc.hlsl b/test/tint/statements/switch/fallthrough.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..dc4b920c0c --- /dev/null +++ b/test/tint/statements/switch/fallthrough.wgsl.expected.fxc.hlsl @@ -0,0 +1,16 @@ +[numthreads(1, 1, 1)] +void f() { + int i = 0; + switch(i) { + case 0: { + /* fallthrough */ + { + break; + } + } + default: { + break; + } + } + return; +} diff --git a/test/tint/statements/switch/only_default_case.wgsl.expected.hlsl b/test/tint/statements/switch/only_default_case.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/statements/switch/only_default_case.wgsl.expected.hlsl rename to test/tint/statements/switch/only_default_case.wgsl.expected.dxc.hlsl diff --git a/test/tint/statements/switch/only_default_case.wgsl.expected.fxc.hlsl b/test/tint/statements/switch/only_default_case.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..128b8a2393 --- /dev/null +++ b/test/tint/statements/switch/only_default_case.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +[numthreads(1, 1, 1)] +void f() { + int i = 0; + int result = 0; + i; + do { + result = 44; + break; + } while (false); + return; +} diff --git a/test/tint/struct/type_constructor.wgsl.expected.hlsl b/test/tint/struct/type_constructor.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/struct/type_constructor.wgsl.expected.hlsl rename to test/tint/struct/type_constructor.wgsl.expected.dxc.hlsl diff --git a/test/tint/struct/type_constructor.wgsl.expected.fxc.hlsl b/test/tint/struct/type_constructor.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f6285aaa88 --- /dev/null +++ b/test/tint/struct/type_constructor.wgsl.expected.fxc.hlsl @@ -0,0 +1,58 @@ +struct S1 { + int a; + int b; + int c; + int d; +}; +struct S2 { + int e; + S1 f; +}; +struct S3 { + int g; + S1 h; + S2 i; +}; +struct T { + int a[2]; +}; + +[numthreads(1, 1, 1)] +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 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 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 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 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; + const int tint_symbol_13[2] = {1, 2}; + const T tint_symbol_14 = {tint_symbol_13}; + const int tint_symbol_15[2] = {3, 4}; + const T tint_symbol_16 = {tint_symbol_15}; + const T aosoa_nonempty[2] = {tint_symbol_14, tint_symbol_16}; + const int tint_symbol_17[2] = {1, (aosoa_nonempty[0].a[0] + 1)}; + const T tint_symbol_18 = {tint_symbol_17}; + const T aosoa_nonempty_with_expr[2] = {tint_symbol_18, aosoa_nonempty[1]}; + return; +} diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.hlsl b/test/tint/types/function_scope_declarations.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/function_scope_declarations.wgsl.expected.hlsl rename to test/tint/types/function_scope_declarations.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.fxc.hlsl b/test/tint/types/function_scope_declarations.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a373898a6b --- /dev/null +++ b/test/tint/types/function_scope_declarations.wgsl.expected.fxc.hlsl @@ -0,0 +1,28 @@ +struct S { + float a; +}; + +[numthreads(1, 1, 1)] +void main() { + bool bool_var = false; + const bool bool_let = false; + int i32_var = 0; + const int i32_let = 0; + uint u32_var = 0u; + const uint u32_let = 0u; + float f32_var = 0.0f; + const float f32_let = 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; + const S struct_let = (S)0; + return; +} diff --git a/test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl b/test/tint/types/function_scope_var_conversions.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl rename to test/tint/types/function_scope_var_conversions.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/function_scope_var_conversions.wgsl.expected.fxc.hlsl b/test/tint/types/function_scope_var_conversions.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..67738bcda5 --- /dev/null +++ b/test/tint/types/function_scope_var_conversions.wgsl.expected.fxc.hlsl @@ -0,0 +1,30 @@ +void constant_with_non_constant() { + float a = 0.0f; + float2 b = float2(1.0f, a); +} + +[numthreads(1, 1, 1)] +void main() { + 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_const.wgsl.expected.hlsl b/test/tint/types/module_scope_const.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/module_scope_const.wgsl.expected.hlsl rename to test/tint/types/module_scope_const.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/module_scope_const.wgsl.expected.fxc.hlsl b/test/tint/types/module_scope_const.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..998916005d --- /dev/null +++ b/test/tint/types/module_scope_const.wgsl.expected.fxc.hlsl @@ -0,0 +1,4 @@ +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/module_scope_var.wgsl.expected.hlsl b/test/tint/types/module_scope_var.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/module_scope_var.wgsl.expected.hlsl rename to test/tint/types/module_scope_var.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/module_scope_var.wgsl.expected.fxc.hlsl b/test/tint/types/module_scope_var.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..37e4640764 --- /dev/null +++ b/test/tint/types/module_scope_var.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +struct S { + float a; +}; + +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 float arr_var[4] = (float[4])0; +static S struct_var = (S)0; + +[numthreads(1, 1, 1)] +void main() { + bool_var = false; + i32_var = 0; + u32_var = 0u; + f32_var = 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; + struct_var = tint_symbol_1; + return; +} diff --git a/test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl b/test/tint/types/module_scope_var_conversions.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl rename to test/tint/types/module_scope_var_conversions.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/module_scope_var_conversions.wgsl.expected.fxc.hlsl b/test/tint/types/module_scope_var_conversions.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6577278518 --- /dev/null +++ b/test/tint/types/module_scope_var_conversions.wgsl.expected.fxc.hlsl @@ -0,0 +1,45 @@ +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() { + bool_var1 = false; + bool_var2 = false; + bool_var3 = false; + i32_var1 = 0; + i32_var2 = 0; + i32_var3 = 0; + u32_var1 = 0u; + u32_var2 = 0u; + u32_var3 = 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.dxc.hlsl similarity index 100% rename from test/tint/types/module_scope_var_initializers.wgsl.expected.hlsl rename to test/tint/types/module_scope_var_initializers.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/module_scope_var_initializers.wgsl.expected.fxc.hlsl b/test/tint/types/module_scope_var_initializers.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4693209499 --- /dev/null +++ b/test/tint/types/module_scope_var_initializers.wgsl.expected.fxc.hlsl @@ -0,0 +1,31 @@ +struct S { + float a; +}; + +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 = (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; + +[numthreads(1, 1, 1)] +void main() { + bool_var = false; + i32_var = 0; + u32_var = 0u; + f32_var = 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; + struct_var = tint_symbol_1; + return; +} diff --git a/test/tint/types/parameters.wgsl.expected.hlsl b/test/tint/types/parameters.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/parameters.wgsl.expected.hlsl rename to test/tint/types/parameters.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/parameters.wgsl.expected.fxc.hlsl b/test/tint/types/parameters.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..10704a79b1 --- /dev/null +++ b/test/tint/types/parameters.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +struct S { + float a; +}; + +void foo(bool param_bool, int param_i32, uint param_u32, float param_f32, int2 param_v2i32, uint3 param_v3u32, float4 param_v4f32, float2x3 param_m2x3, float param_arr[4], S param_struct, inout float param_ptr_f32, inout float4 param_ptr_vec, inout float param_ptr_arr[4]) { +} + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/return_types.wgsl.expected.hlsl b/test/tint/types/return_types.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/return_types.wgsl.expected.hlsl rename to test/tint/types/return_types.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/return_types.wgsl.expected.fxc.hlsl b/test/tint/types/return_types.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2e82c6ee77 --- /dev/null +++ b/test/tint/types/return_types.wgsl.expected.fxc.hlsl @@ -0,0 +1,51 @@ +struct S { + float a; +}; + +bool ret_bool() { + return false; +} + +int ret_i32() { + return 0; +} + +uint ret_u32() { + return 0u; +} + +float ret_f32() { + return 0.0f; +} + +int2 ret_v2i32() { + return (0).xx; +} + +uint3 ret_v3u32() { + return (0u).xxx; +} + +float4 ret_v4f32() { + return (0.0f).xxxx; +} + +float2x3 ret_m2x3() { + return float2x3((0.0f).xxx, (0.0f).xxx); +} + +typedef float ret_arr_ret[4]; +ret_arr_ret ret_arr() { + const float tint_symbol[4] = (float[4])0; + return tint_symbol; +} + +S ret_struct() { + const S tint_symbol_1 = (S)0; + return tint_symbol_1; +} + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/sampler.wgsl.expected.hlsl b/test/tint/types/sampler.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/sampler.wgsl.expected.hlsl rename to test/tint/types/sampler.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/sampler.wgsl.expected.fxc.hlsl b/test/tint/types/sampler.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e6a3bdc39d --- /dev/null +++ b/test/tint/types/sampler.wgsl.expected.fxc.hlsl @@ -0,0 +1,7 @@ +SamplerState s : register(s0, space0); +SamplerComparisonState sc : register(s1, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/struct_members.wgsl.expected.hlsl b/test/tint/types/struct_members.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/struct_members.wgsl.expected.hlsl rename to test/tint/types/struct_members.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/struct_members.wgsl.expected.fxc.hlsl b/test/tint/types/struct_members.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..671d9afca7 --- /dev/null +++ b/test/tint/types/struct_members.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +struct S_inner { + float a; +}; +struct S { + bool member_bool; + int member_i32; + uint member_u32; + float member_f32; + int2 member_v2i32; + uint3 member_v3u32; + float4 member_v4f32; + float2x3 member_m2x3; + float member_arr[4]; + S_inner member_struct; +}; + +[numthreads(1, 1, 1)] +void main() { + const S s = (S)0; + return; +} diff --git a/test/tint/types/texture/depth/2d.wgsl.expected.hlsl b/test/tint/types/texture/depth/2d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/depth/2d.wgsl.expected.hlsl rename to test/tint/types/texture/depth/2d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/depth/2d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/depth/2d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a1d1935c89 --- /dev/null +++ b/test/tint/types/texture/depth/2d.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +Texture2D t_f : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/depth/2d_array.wgsl.expected.hlsl b/test/tint/types/texture/depth/2d_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/depth/2d_array.wgsl.expected.hlsl rename to test/tint/types/texture/depth/2d_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/depth/2d_array.wgsl.expected.fxc.hlsl b/test/tint/types/texture/depth/2d_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5ddf7baf19 --- /dev/null +++ b/test/tint/types/texture/depth/2d_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +Texture2DArray t_f : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/depth/cube.wgsl.expected.hlsl b/test/tint/types/texture/depth/cube.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/depth/cube.wgsl.expected.hlsl rename to test/tint/types/texture/depth/cube.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/depth/cube.wgsl.expected.fxc.hlsl b/test/tint/types/texture/depth/cube.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..89d1dc7905 --- /dev/null +++ b/test/tint/types/texture/depth/cube.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +TextureCube t_f : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.hlsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/depth/cube_array.wgsl.expected.hlsl rename to test/tint/types/texture/depth/cube_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.fxc.hlsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..57b1946c06 --- /dev/null +++ b/test/tint/types/texture/depth/cube_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +TextureCubeArray t_f : register(t0, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/multisampled/2d.wgsl.expected.hlsl b/test/tint/types/texture/multisampled/2d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/multisampled/2d.wgsl.expected.hlsl rename to test/tint/types/texture/multisampled/2d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/multisampled/2d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/multisampled/2d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9efb9c3ecc --- /dev/null +++ b/test/tint/types/texture/multisampled/2d.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +Texture2DMS t_f : register(t0, space0); +Texture2DMS t_i : register(t1, space0); +Texture2DMS t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/1d.wgsl.expected.hlsl b/test/tint/types/texture/sampled/1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/1d.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/1d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..5d312e2113 --- /dev/null +++ b/test/tint/types/texture/sampled/1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +Texture1D t_f : register(t0, space0); +Texture1D t_i : register(t1, space0); +Texture1D t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/2d.wgsl.expected.hlsl b/test/tint/types/texture/sampled/2d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/2d.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/2d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/2d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/2d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b1ec53fcfe --- /dev/null +++ b/test/tint/types/texture/sampled/2d.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +Texture2D t_f : register(t0, space0); +Texture2D t_i : register(t1, space0); +Texture2D t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/2d_array.wgsl.expected.hlsl b/test/tint/types/texture/sampled/2d_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/2d_array.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/2d_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/2d_array.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/2d_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6dfc0fc723 --- /dev/null +++ b/test/tint/types/texture/sampled/2d_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +Texture2DArray t_f : register(t0, space0); +Texture2DArray t_i : register(t1, space0); +Texture2DArray t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/3d.wgsl.expected.hlsl b/test/tint/types/texture/sampled/3d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/3d.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/3d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/3d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/3d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1a3b441ba8 --- /dev/null +++ b/test/tint/types/texture/sampled/3d.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +Texture3D t_f : register(t0, space0); +Texture3D t_i : register(t1, space0); +Texture3D t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/cube.wgsl.expected.hlsl b/test/tint/types/texture/sampled/cube.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/cube.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/cube.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/cube.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/cube.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..9d0b4c5552 --- /dev/null +++ b/test/tint/types/texture/sampled/cube.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +TextureCube t_f : register(t0, space0); +TextureCube t_i : register(t1, space0); +TextureCube t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.hlsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/sampled/cube_array.wgsl.expected.hlsl rename to test/tint/types/texture/sampled/cube_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.fxc.hlsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..4a7de625a1 --- /dev/null +++ b/test/tint/types/texture/sampled/cube_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +TextureCubeArray t_f : register(t0, space0); +TextureCubeArray t_i : register(t1, space0); +TextureCubeArray t_u : register(t2, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/storage/1d.wgsl.expected.hlsl b/test/tint/types/texture/storage/1d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/storage/1d.wgsl.expected.hlsl rename to test/tint/types/texture/storage/1d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/storage/1d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/storage/1d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..1628ef7961 --- /dev/null +++ b/test/tint/types/texture/storage/1d.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +RWTexture1D t_rgba8unorm : register(u0, space0); +RWTexture1D t_rgba8snorm : register(u1, space0); +RWTexture1D t_rgba8uint : register(u2, space0); +RWTexture1D t_rgba8sint : register(u3, space0); +RWTexture1D t_rgba16uint : register(u4, space0); +RWTexture1D t_rgba16sint : register(u5, space0); +RWTexture1D t_rgba16float : register(u6, space0); +RWTexture1D t_r32uint : register(u7, space0); +RWTexture1D t_r32sint : register(u8, space0); +RWTexture1D t_r32float : register(u9, space0); +RWTexture1D t_rg32uint : register(u10, space0); +RWTexture1D t_rg32sint : register(u11, space0); +RWTexture1D t_rg32float : register(u12, space0); +RWTexture1D t_rgba32uint : register(u13, space0); +RWTexture1D t_rgba32sint : register(u14, space0); +RWTexture1D t_rgba32float : register(u15, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/storage/2d.wgsl.expected.hlsl b/test/tint/types/texture/storage/2d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/storage/2d.wgsl.expected.hlsl rename to test/tint/types/texture/storage/2d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/storage/2d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/storage/2d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8d1a7519b7 --- /dev/null +++ b/test/tint/types/texture/storage/2d.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +RWTexture2D t_rgba8unorm : register(u0, space0); +RWTexture2D t_rgba8snorm : register(u1, space0); +RWTexture2D t_rgba8uint : register(u2, space0); +RWTexture2D t_rgba8sint : register(u3, space0); +RWTexture2D t_rgba16uint : register(u4, space0); +RWTexture2D t_rgba16sint : register(u5, space0); +RWTexture2D t_rgba16float : register(u6, space0); +RWTexture2D t_r32uint : register(u7, space0); +RWTexture2D t_r32sint : register(u8, space0); +RWTexture2D t_r32float : register(u9, space0); +RWTexture2D t_rg32uint : register(u10, space0); +RWTexture2D t_rg32sint : register(u11, space0); +RWTexture2D t_rg32float : register(u12, space0); +RWTexture2D t_rgba32uint : register(u13, space0); +RWTexture2D t_rgba32sint : register(u14, space0); +RWTexture2D t_rgba32float : register(u15, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/storage/2d_array.wgsl.expected.hlsl b/test/tint/types/texture/storage/2d_array.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/storage/2d_array.wgsl.expected.hlsl rename to test/tint/types/texture/storage/2d_array.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/storage/2d_array.wgsl.expected.fxc.hlsl b/test/tint/types/texture/storage/2d_array.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..7b08fb84ce --- /dev/null +++ b/test/tint/types/texture/storage/2d_array.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +RWTexture2DArray t_rgba8unorm : register(u0, space0); +RWTexture2DArray t_rgba8snorm : register(u1, space0); +RWTexture2DArray t_rgba8uint : register(u2, space0); +RWTexture2DArray t_rgba8sint : register(u3, space0); +RWTexture2DArray t_rgba16uint : register(u4, space0); +RWTexture2DArray t_rgba16sint : register(u5, space0); +RWTexture2DArray t_rgba16float : register(u6, space0); +RWTexture2DArray t_r32uint : register(u7, space0); +RWTexture2DArray t_r32sint : register(u8, space0); +RWTexture2DArray t_r32float : register(u9, space0); +RWTexture2DArray t_rg32uint : register(u10, space0); +RWTexture2DArray t_rg32sint : register(u11, space0); +RWTexture2DArray t_rg32float : register(u12, space0); +RWTexture2DArray t_rgba32uint : register(u13, space0); +RWTexture2DArray t_rgba32sint : register(u14, space0); +RWTexture2DArray t_rgba32float : register(u15, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/types/texture/storage/3d.wgsl.expected.hlsl b/test/tint/types/texture/storage/3d.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/types/texture/storage/3d.wgsl.expected.hlsl rename to test/tint/types/texture/storage/3d.wgsl.expected.dxc.hlsl diff --git a/test/tint/types/texture/storage/3d.wgsl.expected.fxc.hlsl b/test/tint/types/texture/storage/3d.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c4a5add63e --- /dev/null +++ b/test/tint/types/texture/storage/3d.wgsl.expected.fxc.hlsl @@ -0,0 +1,21 @@ +RWTexture3D t_rgba8unorm : register(u0, space0); +RWTexture3D t_rgba8snorm : register(u1, space0); +RWTexture3D t_rgba8uint : register(u2, space0); +RWTexture3D t_rgba8sint : register(u3, space0); +RWTexture3D t_rgba16uint : register(u4, space0); +RWTexture3D t_rgba16sint : register(u5, space0); +RWTexture3D t_rgba16float : register(u6, space0); +RWTexture3D t_r32uint : register(u7, space0); +RWTexture3D t_r32sint : register(u8, space0); +RWTexture3D t_r32float : register(u9, space0); +RWTexture3D t_rg32uint : register(u10, space0); +RWTexture3D t_rg32sint : register(u11, space0); +RWTexture3D t_rg32float : register(u12, space0); +RWTexture3D t_rgba32uint : register(u13, space0); +RWTexture3D t_rgba32sint : register(u14, space0); +RWTexture3D t_rgba32float : register(u15, space0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/unicode/comments.wgsl.expected.hlsl b/test/tint/unicode/comments.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/unicode/comments.wgsl.expected.hlsl rename to test/tint/unicode/comments.wgsl.expected.dxc.hlsl diff --git a/test/tint/unicode/comments.wgsl.expected.fxc.hlsl b/test/tint/unicode/comments.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..61d6d5716b --- /dev/null +++ b/test/tint/unicode/comments.wgsl.expected.fxc.hlsl @@ -0,0 +1,3 @@ +void main() { + return; +} diff --git a/test/tint/unicode/identifiers.wgsl.expected.hlsl b/test/tint/unicode/identifiers.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/unicode/identifiers.wgsl.expected.hlsl rename to test/tint/unicode/identifiers.wgsl.expected.dxc.hlsl diff --git a/test/tint/unicode/identifiers.wgsl.expected.fxc.hlsl b/test/tint/unicode/identifiers.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d82de3a9e7 --- /dev/null +++ b/test/tint/unicode/identifiers.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +float tint_symbol_2(int tint_symbol_3) { + return float(tint_symbol_3); +} + +void tint_symbol_4() { + int tint_symbol_5 = 0; + const float tint_symbol_6 = tint_symbol_2(tint_symbol_5); + return; +} diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b44e02535a --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.fxc.hlsl @@ -0,0 +1,24 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + { + [loop] for(; !(false); ) { + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_ePdsZG:11: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..edb22e4f02 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.fxc.hlsl @@ -0,0 +1,25 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + [loop] while (true) { + if (false) { + break; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_1aGHmE:12: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..34e35796c2 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl @@ -0,0 +1,30 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + var_1 = 0u; + [loop] while (true) { + var_1 = 1u; + { + if (false) { + break; + } + } + } + var_1 = 5u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_M0JS53:17: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..c7387bd746 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl @@ -0,0 +1,28 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + var_1 = 0u; + [loop] while (true) { + var_1 = 1u; + if (false) { + break; + } + } + var_1 = 5u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_9dTIlS:15: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..0aaad00383 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl @@ -0,0 +1,40 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + var_1 = 0u; + [loop] while (true) { + var_1 = 1u; + if (true) { + var_1 = 2u; + if (false) { + break; + } else { + { + var_1 = 4u; + } + continue; + } + } + var_1 = 3u; + { + var_1 = 4u; + } + } + var_1 = 5u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_Rz6lq4:27: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..bcca8625a6 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl @@ -0,0 +1,33 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + var_1 = 0u; + [loop] while (true) { + var_1 = 1u; + var_1 = 2u; + if (false) { + break; + } + var_1 = 3u; + { + var_1 = 4u; + } + } + var_1 = 5u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_T39Xh2:20: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..cb1311bd36 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.fxc.hlsl @@ -0,0 +1,25 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + [loop] while (true) { + if (false) { + break; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_lRzVSG:12: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..73f066c0d9 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl @@ -0,0 +1,29 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + [loop] while (true) { + var_1 = 1u; + if (false) { + break; + } + { + var_1 = 2u; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_KRVOs8:16: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..a919464625 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl @@ -0,0 +1,30 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + [loop] while (true) { + var_1 = 1u; + if (false) { + break; + } + var_1 = 3u; + { + var_1 = 2u; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_tGC31y:17: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ba462d695c --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl @@ -0,0 +1,28 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + var_1 = 0u; + [loop] while (true) { + var_1 = 1u; + if (false) { + break; + } + } + var_1 = 999u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_Iz92Ch:15: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..b1324824fc --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.fxc.hlsl @@ -0,0 +1,25 @@ +SKIP: FAILED + +static uint var_1 = 0u; + +void main_1() { + [loop] while (true) { + if (false) { + break; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_ABIRu4:12: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..4818f555ce --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl @@ -0,0 +1,42 @@ +SKIP: FAILED + +static uint x_1 = 0u; + +void main_1() { + x_1 = 0u; + [loop] while (true) { + uint x_2 = 0u; + x_1 = 1u; + if (false) { + break; + } + x_1 = 3u; + if (true) { + x_2 = (1u + 1u); + } else { + return; + } + x_1 = x_2; + { + x_1 = 4u; + if (false) { + break; + } + } + } + x_1 = 5u; + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_LpDCMy:29: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..ef00dd52d6 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl @@ -0,0 +1,48 @@ +SKIP: FAILED + +warning: code is unreachable +static uint x_1 = 0u; +static bool x_7 = false; +static bool x_8 = false; + +void main_1() { + const bool x_101 = x_7; + const bool x_102 = x_8; + [loop] while (true) { + uint x_2_phi = 0u; + if (x_101) { + break; + } + if (x_102) { + x_2_phi = 0u; + { + x_1 = x_2_phi; + } + continue; + } else { + x_2_phi = 1u; + { + x_1 = x_2_phi; + } + continue; + } + x_2_phi = 0u; + { + x_1 = x_2_phi; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_l2mEof:34: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..671644cac5 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl @@ -0,0 +1,48 @@ +SKIP: FAILED + +warning: code is unreachable +static uint x_1 = 0u; +static bool x_7 = false; +static bool x_8 = false; + +void main_1() { + const bool x_101 = x_7; + const bool x_102 = x_8; + [loop] while (true) { + uint x_2_phi = 0u; + if (x_101) { + break; + } + x_2_phi = 0u; + if (x_102) { + x_2_phi = 1u; + { + x_1 = x_2_phi; + } + continue; + } else { + { + x_1 = x_2_phi; + } + continue; + } + return; + { + x_1 = x_2_phi; + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_nu4hkX:34: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..e80132cf35 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.fxc.hlsl @@ -0,0 +1,46 @@ +SKIP: FAILED + +static uint x_1 = 0u; +static bool x_7 = false; +static bool x_8 = false; + +void main_1() { + [loop] while (true) { + uint x_2_phi = 0u; + uint x_3_phi = 0u; + const bool x_101 = x_7; + const bool x_102 = x_8; + x_2_phi = 0u; + x_3_phi = 1u; + if (x_101) { + break; + } + [loop] while (true) { + uint x_4 = 0u; + const uint x_2 = x_2_phi; + const uint x_3 = x_3_phi; + if (x_102) { + break; + } + { + x_4 = (x_2 + 1u); + x_2_phi = x_4; + x_3_phi = x_3; + } + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_zJdet0:33: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.hlsl rename to test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.fxc.hlsl new file mode 100644 index 0000000000..277b39f48f --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.fxc.hlsl @@ -0,0 +1,41 @@ +SKIP: FAILED + +static uint x_1 = 0u; +static bool x_7 = false; +static bool x_8 = false; + +void main_1() { + [loop] while (true) { + uint x_2_phi = 0u; + uint x_3_phi = 0u; + const bool x_101 = x_7; + const bool x_102 = x_8; + x_2_phi = 0u; + x_3_phi = 1u; + if (x_101) { + break; + } + [loop] while (true) { + const uint x_3 = x_3_phi; + x_2_phi = (x_2_phi + 1u); + x_3_phi = x_3; + if (x_102) { + break; + } + } + } + return; +} + +void main() { + main_1(); + return; +} +warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. + +error: validation errors +/tmp/tint_XDVFVA:28: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/var/inferred/function.wgsl.expected.hlsl b/test/tint/var/inferred/function.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/inferred/function.wgsl.expected.hlsl rename to test/tint/var/inferred/function.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/inferred/function.wgsl.expected.fxc.hlsl b/test/tint/var/inferred/function.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a0070ce371 --- /dev/null +++ b/test/tint/var/inferred/function.wgsl.expected.fxc.hlsl @@ -0,0 +1,59 @@ +struct MyStruct { + float f1; +}; + +int ret_i32() { + return 1; +} + +uint ret_u32() { + return 1u; +} + +float ret_f32() { + return 1.0f; +} + +MyStruct ret_MyStruct() { + const MyStruct tint_symbol_1 = (MyStruct)0; + return tint_symbol_1; +} + +typedef float ret_MyArray_ret[10]; +ret_MyArray_ret ret_MyArray() { + const float tint_symbol_2[10] = (float[10])0; + return tint_symbol_2; +} + +void var_decls() { + int v1 = 1; + uint v2 = 1u; + float v3 = 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; + int v10 = ret_i32(); + uint v11 = ret_u32(); + float v12 = ret_f32(); + MyStruct v13 = ret_MyStruct(); + MyStruct v14 = ret_MyStruct(); + float v15[10] = ret_MyArray(); +} + +struct tint_symbol { + float4 value : SV_Target0; +}; + +float4 main_inner() { + return (0.0f).xxxx; +} + +tint_symbol main() { + const float4 inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.value = inner_result; + return wrapper_result; +} diff --git a/test/tint/var/inferred/global.wgsl.expected.hlsl b/test/tint/var/inferred/global.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/inferred/global.wgsl.expected.hlsl rename to test/tint/var/inferred/global.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/inferred/global.wgsl.expected.fxc.hlsl b/test/tint/var/inferred/global.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..09a7a21949 --- /dev/null +++ b/test/tint/var/inferred/global.wgsl.expected.fxc.hlsl @@ -0,0 +1,41 @@ +struct MyStruct { + float f1; +}; + +static int v1 = 1; +static uint v2 = 1u; +static float v3 = 1.0f; +static int3 v4 = (1).xxx; +static uint3 v5 = uint3(1u, 2u, 3u); +static float3 v6 = float3(1.0f, 2.0f, 3.0f); +static MyStruct v7 = {1.0f}; +static float v8[10] = (float[10])0; +static int v9 = 0; +static uint v10 = 0u; +static float v11 = 0.0f; +static MyStruct v12 = (MyStruct)0; +static MyStruct v13 = (MyStruct)0; +static float v14[10] = (float[10])0; +static int3 v15 = int3(1, 2, 3); +static float3 v16 = float3(1.0f, 2.0f, 3.0f); + +[numthreads(1, 1, 1)] +void f() { + const int l1 = v1; + const uint l2 = v2; + const float l3 = v3; + const int3 l4 = v4; + const uint3 l5 = v5; + const float3 l6 = v6; + const MyStruct l7 = v7; + const float l8[10] = v8; + const int l9 = v9; + const uint l10 = v10; + const float l11 = v11; + const MyStruct l12 = v12; + const MyStruct l13 = v13; + const float l14[10] = v14; + const int3 l15 = v15; + const float3 l16 = v16; + return; +} diff --git a/test/tint/var/initialization/function/array/array_i32.wgsl.expected.hlsl b/test/tint/var/initialization/function/array/array_i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/array/array_i32.wgsl.expected.hlsl rename to test/tint/var/initialization/function/array/array_i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/array/array_i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/array/array_i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..88d2dd3adc --- /dev/null +++ b/test/tint/var/initialization/function/array/array_i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,8 @@ +[numthreads(1, 1, 1)] +void main() { + int zero[2][3] = (int[2][3])0; + const int tint_symbol[3] = {1, 2, 3}; + const int tint_symbol_1[3] = {4, 5, 6}; + int init[2][3] = {tint_symbol, tint_symbol_1}; + return; +} diff --git a/test/tint/var/initialization/function/array/i32.wgsl.expected.hlsl b/test/tint/var/initialization/function/array/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/array/i32.wgsl.expected.hlsl rename to test/tint/var/initialization/function/array/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/array/i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/array/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..93ed2c56f3 --- /dev/null +++ b/test/tint/var/initialization/function/array/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + int zero[3] = (int[3])0; + int init[3] = {1, 2, 3}; + return; +} diff --git a/test/tint/var/initialization/function/matrix.wgsl.expected.hlsl b/test/tint/var/initialization/function/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/matrix.wgsl.expected.hlsl rename to test/tint/var/initialization/function/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/matrix.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..8427c53a32 --- /dev/null +++ b/test/tint/var/initialization/function/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void main() { + float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + return; +} diff --git a/test/tint/var/initialization/function/scalar.wgsl.expected.hlsl b/test/tint/var/initialization/function/scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/scalar.wgsl.expected.hlsl rename to test/tint/var/initialization/function/scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/scalar.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..f1e0557249 --- /dev/null +++ b/test/tint/var/initialization/function/scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void main() { + int v = 0; + return; +} diff --git a/test/tint/var/initialization/function/struct.wgsl.expected.hlsl b/test/tint/var/initialization/function/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/struct.wgsl.expected.hlsl rename to test/tint/var/initialization/function/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/struct.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a64b616c34 --- /dev/null +++ b/test/tint/var/initialization/function/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +struct S { + int a; + float b; +}; + +[numthreads(1, 1, 1)] +void main() { + S v = (S)0; + return; +} diff --git a/test/tint/var/initialization/function/vector.wgsl.expected.hlsl b/test/tint/var/initialization/function/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/function/vector.wgsl.expected.hlsl rename to test/tint/var/initialization/function/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/function/vector.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/function/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..325ed1a5a3 --- /dev/null +++ b/test/tint/var/initialization/function/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,5 @@ +[numthreads(1, 1, 1)] +void main() { + int3 v = int3(0, 0, 0); + return; +} diff --git a/test/tint/var/initialization/private/array/array_i32.wgsl.expected.hlsl b/test/tint/var/initialization/private/array/array_i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/array/array_i32.wgsl.expected.hlsl rename to test/tint/var/initialization/private/array/array_i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/array/array_i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/array/array_i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..aa728ab3bb --- /dev/null +++ b/test/tint/var/initialization/private/array/array_i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +static int zero[2][3] = (int[2][3])0; +static int init[2][3] = {{1, 2, 3}, {4, 5, 6}}; + +[numthreads(1, 1, 1)] +void main() { + int v0[2][3] = zero; + int v1[2][3] = init; + return; +} diff --git a/test/tint/var/initialization/private/array/i32.wgsl.expected.hlsl b/test/tint/var/initialization/private/array/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/array/i32.wgsl.expected.hlsl rename to test/tint/var/initialization/private/array/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/array/i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/array/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e4cc4bc941 --- /dev/null +++ b/test/tint/var/initialization/private/array/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,9 @@ +static int zero[3] = (int[3])0; +static int init[3] = {1, 2, 3}; + +[numthreads(1, 1, 1)] +void main() { + int v0[3] = zero; + int v1[3] = init; + return; +} diff --git a/test/tint/var/initialization/private/matrix.wgsl.expected.hlsl b/test/tint/var/initialization/private/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/matrix.wgsl.expected.hlsl rename to test/tint/var/initialization/private/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/matrix.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c6aac5c2b3 --- /dev/null +++ b/test/tint/var/initialization/private/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/var/initialization/private/scalar.wgsl.expected.hlsl b/test/tint/var/initialization/private/scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/scalar.wgsl.expected.hlsl rename to test/tint/var/initialization/private/scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/scalar.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..a5deefa2f0 --- /dev/null +++ b/test/tint/var/initialization/private/scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static int v = 0; + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/var/initialization/private/struct.wgsl.expected.hlsl b/test/tint/var/initialization/private/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/struct.wgsl.expected.hlsl rename to test/tint/var/initialization/private/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/struct.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..2ec62875db --- /dev/null +++ b/test/tint/var/initialization/private/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,11 @@ +struct S { + int a; + float b; +}; + +static S v = (S)0; + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/var/initialization/private/vector.wgsl.expected.hlsl b/test/tint/var/initialization/private/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/private/vector.wgsl.expected.hlsl rename to test/tint/var/initialization/private/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/private/vector.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/private/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..bb1c19583a --- /dev/null +++ b/test/tint/var/initialization/private/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +static int3 v = int3(0, 0, 0); + +[numthreads(1, 1, 1)] +void main() { + return; +} diff --git a/test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0bcec7280e --- /dev/null +++ b/test/tint/var/initialization/workgroup/array/array_i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,23 @@ +groupshared int zero[2][3]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 6u); idx = (idx + 1u)) { + const uint i = (idx / 3u); + const uint i_1 = (idx % 3u); + zero[i][i_1] = 0; + } + } + GroupMemoryBarrierWithGroupSync(); + int v[2][3] = zero; +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/initialization/workgroup/array/i32.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/array/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/array/i32.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/array/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/array/i32.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/array/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..15e697a9c8 --- /dev/null +++ b/test/tint/var/initialization/workgroup/array/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,22 @@ +groupshared int zero[3]; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + [loop] for(uint idx = local_invocation_index; (idx < 3u); idx = (idx + 1u)) { + const uint i = idx; + zero[i] = 0; + } + } + GroupMemoryBarrierWithGroupSync(); + int v[3] = zero; +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/matrix.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..34e4247859 --- /dev/null +++ b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +groupshared float2x3 v; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + v = float2x3((0.0f).xxx, (0.0f).xxx); + } + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/scalar.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/scalar.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..43e8f607dc --- /dev/null +++ b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +groupshared int v; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + v = 0; + } + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/initialization/workgroup/struct.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/struct.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/struct.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/struct.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/struct.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/struct.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..277f3c942a --- /dev/null +++ b/test/tint/var/initialization/workgroup/struct.wgsl.expected.fxc.hlsl @@ -0,0 +1,24 @@ +struct S { + int a; + float b; +}; + +groupshared S v; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + const S tint_symbol_2 = (S)0; + v = tint_symbol_2; + } + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/vector.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl rename to test/tint/var/initialization/workgroup/vector.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/initialization/workgroup/vector.wgsl.expected.fxc.hlsl b/test/tint/var/initialization/workgroup/vector.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..6305ce42b8 --- /dev/null +++ b/test/tint/var/initialization/workgroup/vector.wgsl.expected.fxc.hlsl @@ -0,0 +1,18 @@ +groupshared int3 v; + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main_inner(uint local_invocation_index) { + { + v = (0).xxx; + } + GroupMemoryBarrierWithGroupSync(); +} + +[numthreads(1, 1, 1)] +void main(tint_symbol_1 tint_symbol) { + main_inner(tint_symbol.local_invocation_index); + return; +} diff --git a/test/tint/var/override/named/no_init/bool.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/no_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/val_init/bool.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/bool.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/named/val_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/bool.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/no_init/f32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/no_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/val_init/f32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/named/val_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/no_init/i32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/no_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/val_init/i32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/val_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/no_init/u32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/no_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/no_init/u32.wgsl.expected.hlsl b/test/tint/var/override/named/no_init/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/no_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/named/no_init/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/zero_init/bool.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/zero_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/val_init/bool.wgsl.expected.fxc.hlsl b/test/tint/var/override/named/val_init/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fba945b8e2 --- /dev/null +++ b/test/tint/var/override/named/val_init/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void main() { + bool tint_tmp = false; + if (tint_tmp) { + tint_tmp = true; + } + if ((tint_tmp)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/f32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/zero_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/no_init/f32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/f32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/no_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/f32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/val_init/i32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/val_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/zero_init/i32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/i32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/named/zero_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/i32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/val_init/u32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/named/val_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/zero_init/u32.wgsl.expected.hlsl b/test/tint/var/override/named/val_init/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/named/zero_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/named/val_init/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/named/zero_init/bool.wgsl.expected.dxc.hlsl b/test/tint/var/override/named/zero_init/bool.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fba945b8e2 --- /dev/null +++ b/test/tint/var/override/named/zero_init/bool.wgsl.expected.dxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void main() { + bool tint_tmp = false; + if (tint_tmp) { + tint_tmp = true; + } + if ((tint_tmp)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/bool.wgsl.expected.fxc.hlsl b/test/tint/var/override/named/zero_init/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fba945b8e2 --- /dev/null +++ b/test/tint/var/override/named/zero_init/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,10 @@ +[numthreads(1, 1, 1)] +void main() { + bool tint_tmp = false; + if (tint_tmp) { + tint_tmp = true; + } + if ((tint_tmp)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.hlsl b/test/tint/var/override/named/zero_init/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/zero_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/named/zero_init/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/named/zero_init/f32.wgsl.expected.fxc.hlsl b/test/tint/var/override/named/zero_init/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e42b8fb027 --- /dev/null +++ b/test/tint/var/override/named/zero_init/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 0.0f)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/i32.wgsl.expected.dxc.hlsl b/test/tint/var/override/named/zero_init/i32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..21744ce5ca --- /dev/null +++ b/test/tint/var/override/named/zero_init/i32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 2)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/i32.wgsl.expected.fxc.hlsl b/test/tint/var/override/named/zero_init/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..21744ce5ca --- /dev/null +++ b/test/tint/var/override/named/zero_init/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 2)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/u32.wgsl.expected.dxc.hlsl b/test/tint/var/override/named/zero_init/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..b51955d36d --- /dev/null +++ b/test/tint/var/override/named/zero_init/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 2u)) { + } + return; +} diff --git a/test/tint/var/override/named/zero_init/u32.wgsl.expected.fxc.hlsl b/test/tint/var/override/named/zero_init/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..b51955d36d --- /dev/null +++ b/test/tint/var/override/named/zero_init/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 2u)) { + } + return; +} diff --git a/test/tint/var/override/numbered/no_init/bool.wgsl.expected.hlsl b/test/tint/var/override/numbered/no_init/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/no_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/numbered/no_init/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/val_init/bool.wgsl.expected.hlsl b/test/tint/var/override/numbered/no_init/bool.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/val_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/numbered/no_init/bool.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/numbered/no_init/f32.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e42b8fb027 --- /dev/null +++ b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 0.0f)) { + } + return; +} diff --git a/test/tint/var/override/numbered/no_init/f32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e42b8fb027 --- /dev/null +++ b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 0.0f)) { + } + return; +} diff --git a/test/tint/var/override/numbered/no_init/i32.wgsl.expected.hlsl b/test/tint/var/override/numbered/no_init/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/no_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/numbered/no_init/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/no_init/i32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/no_init/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..95e256f3a8 --- /dev/null +++ b/test/tint/var/override/numbered/no_init/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 0)) { + } + return; +} diff --git a/test/tint/var/override/numbered/val_init/u32.wgsl.expected.hlsl b/test/tint/var/override/numbered/no_init/u32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/val_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/numbered/no_init/u32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.hlsl b/test/tint/var/override/numbered/no_init/u32.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/zero_init/u32.wgsl.expected.hlsl rename to test/tint/var/override/numbered/no_init/u32.wgsl.expected.fxc.hlsl diff --git a/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.hlsl b/test/tint/var/override/numbered/val_init/bool.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/zero_init/bool.wgsl.expected.hlsl rename to test/tint/var/override/numbered/val_init/bool.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/val_init/bool.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/val_init/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af95aed96e --- /dev/null +++ b/test/tint/var/override/numbered/val_init/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if (false) { + } + return; +} diff --git a/test/tint/var/override/numbered/val_init/f32.wgsl.expected.hlsl b/test/tint/var/override/numbered/val_init/f32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/val_init/f32.wgsl.expected.hlsl rename to test/tint/var/override/numbered/val_init/f32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/val_init/f32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/val_init/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..0d9f804f9d --- /dev/null +++ b/test/tint/var/override/numbered/val_init/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 1.0f)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.hlsl b/test/tint/var/override/numbered/val_init/i32.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/override/numbered/zero_init/i32.wgsl.expected.hlsl rename to test/tint/var/override/numbered/val_init/i32.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/override/numbered/val_init/i32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/val_init/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d384517be6 --- /dev/null +++ b/test/tint/var/override/numbered/val_init/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 1)) { + } + return; +} diff --git a/test/tint/var/override/numbered/val_init/u32.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fe084141f7 --- /dev/null +++ b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 1u)) { + } + return; +} diff --git a/test/tint/var/override/numbered/val_init/u32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fe084141f7 --- /dev/null +++ b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 1u)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..af95aed96e --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if (false) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..af95aed96e --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if (false) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..e42b8fb027 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 0.0f)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..e42b8fb027 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0.0f == 0.0f)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..d384517be6 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 1)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..d384517be6 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0 == 1)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.dxc.hlsl b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.dxc.hlsl new file mode 100644 index 0000000000..fe084141f7 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.dxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 1u)) { + } + return; +} diff --git a/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.fxc.hlsl b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..fe084141f7 --- /dev/null +++ b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.fxc.hlsl @@ -0,0 +1,6 @@ +[numthreads(1, 1, 1)] +void main() { + if ((0u == 1u)) { + } + return; +} diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl rename to test/tint/var/uses/many_workgroup_vars.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.fxc.hlsl b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..63d3ea3537 --- /dev/null +++ b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.fxc.hlsl @@ -0,0 +1,316 @@ +groupshared float2x2 m00; +groupshared float2x2 m01; +groupshared float2x2 m02; +groupshared float2x2 m03; +groupshared float2x2 m04; +groupshared float2x2 m05; +groupshared float2x2 m06; +groupshared float2x2 m07; +groupshared float2x2 m08; +groupshared float2x2 m09; +groupshared float2x2 m10; +groupshared float2x2 m11; +groupshared float2x2 m12; +groupshared float2x2 m13; +groupshared float2x2 m14; +groupshared float2x2 m15; +groupshared float2x2 m16; +groupshared float2x2 m17; +groupshared float2x2 m18; +groupshared float2x2 m19; +groupshared float2x2 m20; +groupshared float2x2 m21; +groupshared float2x2 m22; +groupshared float2x2 m23; +groupshared float2x2 m24; +groupshared float2x2 m25; +groupshared float2x2 m26; +groupshared float2x2 m27; +groupshared float2x2 m28; +groupshared float2x2 m29; +groupshared float2x2 m30; +groupshared float2x2 m31; +groupshared float2x2 m32; +groupshared float2x2 m33; +groupshared float2x2 m34; +groupshared float2x2 m35; +groupshared float2x2 m36; +groupshared float2x2 m37; +groupshared float2x2 m38; +groupshared float2x2 m39; +groupshared float2x2 m40; +groupshared float2x2 m41; +groupshared float2x2 m42; +groupshared float2x2 m43; +groupshared float2x2 m44; +groupshared float2x2 m45; +groupshared float2x2 m46; +groupshared float2x2 m47; +groupshared float2x2 m48; +groupshared float2x2 m49; +groupshared float2x2 m50; +groupshared float2x2 m51; +groupshared float2x2 m52; +groupshared float2x2 m53; +groupshared float2x2 m54; +groupshared float2x2 m55; +groupshared float2x2 m56; +groupshared float2x2 m57; +groupshared float2x2 m58; +groupshared float2x2 m59; +groupshared float2x2 m60; +groupshared float2x2 m61; +groupshared float2x2 m62; +groupshared float2x2 m63; +groupshared float2x2 m64; +groupshared float2x2 m65; +groupshared float2x2 m66; +groupshared float2x2 m67; +groupshared float2x2 m68; +groupshared float2x2 m69; +groupshared float2x2 m70; +groupshared float2x2 m71; +groupshared float2x2 m72; +groupshared float2x2 m73; +groupshared float2x2 m74; +groupshared float2x2 m75; +groupshared float2x2 m76; +groupshared float2x2 m77; +groupshared float2x2 m78; +groupshared float2x2 m79; +groupshared float2x2 m80; +groupshared float2x2 m81; +groupshared float2x2 m82; +groupshared float2x2 m83; +groupshared float2x2 m84; +groupshared float2x2 m85; +groupshared float2x2 m86; +groupshared float2x2 m87; +groupshared float2x2 m88; +groupshared float2x2 m89; +groupshared float2x2 m90; +groupshared float2x2 m91; +groupshared float2x2 m92; +groupshared float2x2 m93; +groupshared float2x2 m94; +groupshared float2x2 m95; +groupshared float2x2 m96; +groupshared float2x2 m97; +groupshared float2x2 m98; +groupshared float2x2 m99; + +struct tint_symbol_2 { + uint idx : SV_GroupIndex; +}; + +void tint_symbol_inner(uint idx) { + { + 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; + m01[0][0] = 1.0f; + m02[0][0] = 1.0f; + m03[0][0] = 1.0f; + m04[0][0] = 1.0f; + m05[0][0] = 1.0f; + m06[0][0] = 1.0f; + m07[0][0] = 1.0f; + m08[0][0] = 1.0f; + m09[0][0] = 1.0f; + m10[0][0] = 1.0f; + m11[0][0] = 1.0f; + m12[0][0] = 1.0f; + m13[0][0] = 1.0f; + m14[0][0] = 1.0f; + m15[0][0] = 1.0f; + m16[0][0] = 1.0f; + m17[0][0] = 1.0f; + m18[0][0] = 1.0f; + m19[0][0] = 1.0f; + m20[0][0] = 1.0f; + m21[0][0] = 1.0f; + m22[0][0] = 1.0f; + m23[0][0] = 1.0f; + m24[0][0] = 1.0f; + m25[0][0] = 1.0f; + m26[0][0] = 1.0f; + m27[0][0] = 1.0f; + m28[0][0] = 1.0f; + m29[0][0] = 1.0f; + m30[0][0] = 1.0f; + m31[0][0] = 1.0f; + m32[0][0] = 1.0f; + m33[0][0] = 1.0f; + m34[0][0] = 1.0f; + m35[0][0] = 1.0f; + m36[0][0] = 1.0f; + m37[0][0] = 1.0f; + m38[0][0] = 1.0f; + m39[0][0] = 1.0f; + m40[0][0] = 1.0f; + m41[0][0] = 1.0f; + m42[0][0] = 1.0f; + m43[0][0] = 1.0f; + m44[0][0] = 1.0f; + m45[0][0] = 1.0f; + m46[0][0] = 1.0f; + m47[0][0] = 1.0f; + m48[0][0] = 1.0f; + m49[0][0] = 1.0f; + m50[0][0] = 1.0f; + m51[0][0] = 1.0f; + m52[0][0] = 1.0f; + m53[0][0] = 1.0f; + m54[0][0] = 1.0f; + m55[0][0] = 1.0f; + m56[0][0] = 1.0f; + m57[0][0] = 1.0f; + m58[0][0] = 1.0f; + m59[0][0] = 1.0f; + m60[0][0] = 1.0f; + m61[0][0] = 1.0f; + m62[0][0] = 1.0f; + m63[0][0] = 1.0f; + m64[0][0] = 1.0f; + m65[0][0] = 1.0f; + m66[0][0] = 1.0f; + m67[0][0] = 1.0f; + m68[0][0] = 1.0f; + m69[0][0] = 1.0f; + m70[0][0] = 1.0f; + m71[0][0] = 1.0f; + m72[0][0] = 1.0f; + m73[0][0] = 1.0f; + m74[0][0] = 1.0f; + m75[0][0] = 1.0f; + m76[0][0] = 1.0f; + m77[0][0] = 1.0f; + m78[0][0] = 1.0f; + m79[0][0] = 1.0f; + m80[0][0] = 1.0f; + m81[0][0] = 1.0f; + m82[0][0] = 1.0f; + m83[0][0] = 1.0f; + m84[0][0] = 1.0f; + m85[0][0] = 1.0f; + m86[0][0] = 1.0f; + m87[0][0] = 1.0f; + m88[0][0] = 1.0f; + m89[0][0] = 1.0f; + m90[0][0] = 1.0f; + m91[0][0] = 1.0f; + m92[0][0] = 1.0f; + m93[0][0] = 1.0f; + m94[0][0] = 1.0f; + m95[0][0] = 1.0f; + m96[0][0] = 1.0f; + m97[0][0] = 1.0f; + m98[0][0] = 1.0f; + m99[0][0] = 1.0f; +} + +[numthreads(1, 1, 1)] +void tint_symbol(tint_symbol_2 tint_symbol_1) { + tint_symbol_inner(tint_symbol_1.idx); + return; +} diff --git a/test/tint/var/uses/private.wgsl.expected.hlsl b/test/tint/var/uses/private.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/uses/private.wgsl.expected.hlsl rename to test/tint/var/uses/private.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/uses/private.wgsl.expected.fxc.hlsl b/test/tint/var/uses/private.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..606819feaa --- /dev/null +++ b/test/tint/var/uses/private.wgsl.expected.fxc.hlsl @@ -0,0 +1,53 @@ +static int a = 0; +static int b = 0; +static int c = 0; + +void uses_a() { + a = (a + 1); +} + +void uses_b() { + b = (b * 2); +} + +void uses_a_and_b() { + b = a; +} + +void no_uses() { +} + +void outer() { + a = 0; + uses_a(); + uses_a_and_b(); + uses_b(); + no_uses(); +} + +[numthreads(1, 1, 1)] +void main1() { + a = 42; + uses_a(); + return; +} + +[numthreads(1, 1, 1)] +void main2() { + b = 7; + uses_b(); + return; +} + +[numthreads(1, 1, 1)] +void main3() { + outer(); + no_uses(); + return; +} + +[numthreads(1, 1, 1)] +void main4() { + no_uses(); + return; +} diff --git a/test/tint/var/uses/workgroup.wgsl.expected.hlsl b/test/tint/var/uses/workgroup.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/var/uses/workgroup.wgsl.expected.hlsl rename to test/tint/var/uses/workgroup.wgsl.expected.dxc.hlsl diff --git a/test/tint/var/uses/workgroup.wgsl.expected.fxc.hlsl b/test/tint/var/uses/workgroup.wgsl.expected.fxc.hlsl new file mode 100644 index 0000000000..c5e6b7f63f --- /dev/null +++ b/test/tint/var/uses/workgroup.wgsl.expected.fxc.hlsl @@ -0,0 +1,90 @@ +groupshared int a; +groupshared int b; +groupshared int c; + +void uses_a() { + a = (a + 1); +} + +void uses_b() { + b = (b * 2); +} + +void uses_a_and_b() { + b = a; +} + +void no_uses() { +} + +void outer() { + a = 0; + uses_a(); + uses_a_and_b(); + uses_b(); + no_uses(); +} + +struct tint_symbol_1 { + uint local_invocation_index : SV_GroupIndex; +}; + +void main1_inner(uint local_invocation_index) { + { + a = 0; + } + GroupMemoryBarrierWithGroupSync(); + a = 42; + uses_a(); +} + +[numthreads(1, 1, 1)] +void main1(tint_symbol_1 tint_symbol) { + main1_inner(tint_symbol.local_invocation_index); + return; +} + +struct tint_symbol_3 { + uint local_invocation_index_1 : SV_GroupIndex; +}; + +void main2_inner(uint local_invocation_index_1) { + { + b = 0; + } + GroupMemoryBarrierWithGroupSync(); + b = 7; + uses_b(); +} + +[numthreads(1, 1, 1)] +void main2(tint_symbol_3 tint_symbol_2) { + main2_inner(tint_symbol_2.local_invocation_index_1); + return; +} + +struct tint_symbol_5 { + uint local_invocation_index_2 : SV_GroupIndex; +}; + +void main3_inner(uint local_invocation_index_2) { + { + a = 0; + b = 0; + } + GroupMemoryBarrierWithGroupSync(); + outer(); + no_uses(); +} + +[numthreads(1, 1, 1)] +void main3(tint_symbol_5 tint_symbol_4) { + main3_inner(tint_symbol_4.local_invocation_index_2); + return; +} + +[numthreads(1, 1, 1)] +void main4() { + no_uses(); + return; +} diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..8c99b40998 --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.spvasm.expected.fxc.hlsl @@ -0,0 +1,90 @@ +SKIP: FAILED + +static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float array0[3] = (float[3])0; +static float array1[3] = (float[3])0; +cbuffer cbuffer_x_11 : register(b0, space0) { + uint4 x_11[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + int q = 0; + int i = 0; + int c = 0; + q = 0; + const float x_55 = gl_FragCoord.x; + i = (int(x_55) % 3); + c = 0; + { + [loop] for(; (c < 3); c = (c + 1)) { + array0[c] = 0.0f; + array1[c] = 0.0f; + const float x_65 = asfloat(x_11[0].x); + switch((int(x_65) + q)) { + case 51: { + [loop] while (true) { + if (true) { + } else { + break; + } + } + array0[c] = 1.0f; + /* fallthrough */ + { + array1[0] = 1.0f; + array1[c] = 1.0f; + } + break; + } + case 61: { + array1[0] = 1.0f; + array1[c] = 1.0f; + break; + } + case 0: { + q = 61; + break; + } + default: { + break; + } + } + } + } + const float x_79 = array1[i]; + const float x_81 = array0[i]; + const float x_83 = array0[i]; + x_GLF_color = float4(x_79, x_81, x_83, 1.0f); + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol_1 { + float4 gl_FragCoord_param : SV_Position; +}; +struct tint_symbol_2 { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1jmg.0:77: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..3f39b8282d --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl.expected.fxc.hlsl @@ -0,0 +1,90 @@ +SKIP: FAILED + +static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float array0[3] = (float[3])0; +static float array1[3] = (float[3])0; +cbuffer cbuffer_x_11 : register(b0, space0) { + uint4 x_11[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + int q = 0; + int i = 0; + int c = 0; + q = 0; + const float x_55 = gl_FragCoord.x; + i = (int(x_55) % 3); + c = 0; + { + [loop] for(; (c < 3); c = (c + 1)) { + array0[c] = 0.0f; + array1[c] = 0.0f; + const float x_65 = asfloat(x_11[0].x); + switch((int(x_65) + q)) { + case 51: { + [loop] while (true) { + if (true) { + } else { + break; + } + } + array0[c] = 1.0f; + /* fallthrough */ + { + array1[0] = 1.0f; + array1[c] = 1.0f; + } + break; + } + case 61: { + array1[0] = 1.0f; + array1[c] = 1.0f; + break; + } + case 0: { + q = 61; + break; + } + default: { + break; + } + } + } + } + const float x_79 = array1[i]; + const float x_81 = array0[i]; + const float x_83 = array0[i]; + x_GLF_color = float4(x_79, x_81, x_83, 1.0f); + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol_1 { + float4 gl_FragCoord_param : SV_Position; +}; +struct tint_symbol_2 { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1v1c.0:77: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..cc34599170 --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl @@ -0,0 +1,101 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_5 : register(b1, space0) { + uint4 x_5[2]; +}; +cbuffer cbuffer_x_7 : register(b2, space0) { + uint4 x_7[1]; +}; +cbuffer cbuffer_x_10 : register(b0, space0) { + uint4 x_10[2]; +}; + +void main_1() { + int i = 0; + const uint scalar_offset = ((16u * uint(0))) / 4; + const float x_38 = asfloat(x_5[scalar_offset / 4][scalar_offset % 4]); + x_GLF_color = float4(x_38, x_38, x_38, x_38); + const float x_41 = asfloat(x_7[0].x); + const uint scalar_offset_1 = ((16u * uint(0))) / 4; + const float x_43 = asfloat(x_5[scalar_offset_1 / 4][scalar_offset_1 % 4]); + if ((x_41 > x_43)) { + [loop] while (true) { + const float x_53 = asfloat(x_5[1].x); + x_GLF_color = float4(x_53, x_53, x_53, x_53); + { + if (true) { + } else { + break; + } + } + } + } else { + [loop] while (true) { + [loop] while (true) { + if (true) { + } else { + break; + } + const int x_13 = asint(x_10[1].x); + i = x_13; + [loop] while (true) { + const int x_14 = i; + const uint scalar_offset_2 = ((16u * uint(0))) / 4; + const int x_15 = asint(x_10[scalar_offset_2 / 4][scalar_offset_2 % 4]); + if ((x_14 < x_15)) { + } else { + break; + } + const float x_73 = asfloat(x_5[1].x); + const uint scalar_offset_3 = ((16u * uint(0))) / 4; + const float x_75 = asfloat(x_5[scalar_offset_3 / 4][scalar_offset_3 % 4]); + const uint scalar_offset_4 = ((16u * uint(0))) / 4; + const float x_77 = asfloat(x_5[scalar_offset_4 / 4][scalar_offset_4 % 4]); + const float x_79 = asfloat(x_5[1].x); + x_GLF_color = float4(x_73, x_75, x_77, x_79); + { + i = (i + 1); + } + } + break; + } + { + const float x_82 = asfloat(x_7[0].x); + const uint scalar_offset_5 = ((16u * uint(0))) / 4; + const float x_84 = asfloat(x_5[scalar_offset_5 / 4][scalar_offset_5 % 4]); + if ((x_82 > x_84)) { + } else { + break; + } + } + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1r54.0:88: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..ed4dfc753f --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl @@ -0,0 +1,101 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_5 : register(b1, space0) { + uint4 x_5[2]; +}; +cbuffer cbuffer_x_7 : register(b2, space0) { + uint4 x_7[1]; +}; +cbuffer cbuffer_x_10 : register(b0, space0) { + uint4 x_10[2]; +}; + +void main_1() { + int i = 0; + const uint scalar_offset = ((16u * uint(0))) / 4; + const float x_38 = asfloat(x_5[scalar_offset / 4][scalar_offset % 4]); + x_GLF_color = float4(x_38, x_38, x_38, x_38); + const float x_41 = asfloat(x_7[0].x); + const uint scalar_offset_1 = ((16u * uint(0))) / 4; + const float x_43 = asfloat(x_5[scalar_offset_1 / 4][scalar_offset_1 % 4]); + if ((x_41 > x_43)) { + [loop] while (true) { + const float x_53 = asfloat(x_5[1].x); + x_GLF_color = float4(x_53, x_53, x_53, x_53); + { + if (true) { + } else { + break; + } + } + } + } else { + [loop] while (true) { + [loop] while (true) { + if (true) { + } else { + break; + } + const int x_13 = asint(x_10[1].x); + i = x_13; + [loop] while (true) { + const int x_14 = i; + const uint scalar_offset_2 = ((16u * uint(0))) / 4; + const int x_15 = asint(x_10[scalar_offset_2 / 4][scalar_offset_2 % 4]); + if ((x_14 < x_15)) { + } else { + break; + } + const float x_73 = asfloat(x_5[1].x); + const uint scalar_offset_3 = ((16u * uint(0))) / 4; + const float x_75 = asfloat(x_5[scalar_offset_3 / 4][scalar_offset_3 % 4]); + const uint scalar_offset_4 = ((16u * uint(0))) / 4; + const float x_77 = asfloat(x_5[scalar_offset_4 / 4][scalar_offset_4 % 4]); + const float x_79 = asfloat(x_5[1].x); + x_GLF_color = float4(x_73, x_75, x_77, x_79); + { + i = (i + 1); + } + } + break; + } + { + const float x_82 = asfloat(x_7[0].x); + const uint scalar_offset_5 = ((16u * uint(0))) / 4; + const float x_84 = asfloat(x_5[scalar_offset_5 / 4][scalar_offset_5 % 4]); + if ((x_82 > x_84)) { + } else { + break; + } + } + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\usgc.0:88: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..3607e5c69a --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl @@ -0,0 +1,75 @@ +SKIP: FAILED + +static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_7 : register(b0, space0) { + uint4 x_7[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +float fx_() { + const float x_50 = gl_FragCoord.y; + if ((x_50 >= 0.0f)) { + const float x_55 = asfloat(x_7[0].y); + return x_55; + } + [loop] while (true) { + if (true) { + } else { + break; + } + x_GLF_color = float4(1.0f, 1.0f, 1.0f, 1.0f); + } + return 0.0f; +} + +void main_1() { + float x2 = 0.0f; + float B = 0.0f; + float k0 = 0.0f; + x2 = 1.0f; + B = 1.0f; + const float x_34 = fx_(); + x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); + [loop] while (true) { + if ((x2 > 2.0f)) { + } else { + break; + } + const float x_43 = fx_(); + const float x_44 = fx_(); + k0 = (x_43 - x_44); + B = k0; + x2 = B; + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol_1 { + float4 gl_FragCoord_param : SV_Position; +}; +struct tint_symbol_2 { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u17p0.0:62: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..fa21c5b8ec --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl @@ -0,0 +1,75 @@ +SKIP: FAILED + +static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_7 : register(b0, space0) { + uint4 x_7[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +float fx_() { + const float x_50 = gl_FragCoord.y; + if ((x_50 >= 0.0f)) { + const float x_55 = asfloat(x_7[0].y); + return x_55; + } + [loop] while (true) { + if (true) { + } else { + break; + } + x_GLF_color = float4(1.0f, 1.0f, 1.0f, 1.0f); + } + return 0.0f; +} + +void main_1() { + float x2 = 0.0f; + float B = 0.0f; + float k0 = 0.0f; + x2 = 1.0f; + B = 1.0f; + const float x_34 = fx_(); + x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); + [loop] while (true) { + if ((x2 > 2.0f)) { + } else { + break; + } + const float x_43 = fx_(); + const float x_44 = fx_(); + k0 = (x_43 - x_44); + B = k0; + x2 = B; + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol_1 { + float4 gl_FragCoord_param : SV_Position; +}; +struct tint_symbol_2 { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + const main_out tint_symbol_4 = {x_GLF_color}; + return tint_symbol_4; +} + +tint_symbol_2 main(tint_symbol_1 tint_symbol) { + const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + tint_symbol_2 wrapper_result = (tint_symbol_2)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\uvqg.0:62: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..033e5654eb --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl @@ -0,0 +1,53 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_6 : register(b0, space0) { + uint4 x_6[1]; +}; + +void main_1() { + int GLF_dead6index = 0; + int GLF_dead6currentNode = 0; + int donor_replacementGLF_dead6tree[1] = (int[1])0; + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + GLF_dead6index = 0; + const float x_34 = asfloat(x_6[0].y); + if ((x_34 < 0.0f)) { + [loop] while (true) { + if (true) { + } else { + break; + } + const int x_10 = donor_replacementGLF_dead6tree[GLF_dead6index]; + GLF_dead6currentNode = x_10; + GLF_dead6index = GLF_dead6currentNode; + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u11r8.0:40: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..6c8fdc5770 --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl @@ -0,0 +1,53 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_6 : register(b0, space0) { + uint4 x_6[1]; +}; + +void main_1() { + int GLF_dead6index = 0; + int GLF_dead6currentNode = 0; + int donor_replacementGLF_dead6tree[1] = (int[1])0; + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + GLF_dead6index = 0; + const float x_34 = asfloat(x_6[0].y); + if ((x_34 < 0.0f)) { + [loop] while (true) { + if (true) { + } else { + break; + } + const int x_10 = donor_replacementGLF_dead6tree[GLF_dead6index]; + GLF_dead6currentNode = x_10; + GLF_dead6index = GLF_dead6currentNode; + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1v50.0:40: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..8e7733c31d --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl @@ -0,0 +1,58 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_5 : register(b0, space0) { + uint4 x_5[1]; +}; + +void main_1() { + int m = 0; + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + const float x_30 = asfloat(x_5[0].x); + const float x_32 = asfloat(x_5[0].y); + if ((x_30 > x_32)) { + [loop] while (true) { + { + if (false) { + } else { + break; + } + } + } + m = 1; + [loop] while (true) { + if (true) { + } else { + break; + } + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1f84.0:45: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..f6f72ef944 --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl @@ -0,0 +1,58 @@ +SKIP: FAILED + +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); +cbuffer cbuffer_x_5 : register(b0, space0) { + uint4 x_5[1]; +}; + +void main_1() { + int m = 0; + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + const float x_30 = asfloat(x_5[0].x); + const float x_32 = asfloat(x_5[0].y); + if ((x_30 > x_32)) { + [loop] while (true) { + { + if (false) { + } else { + break; + } + } + } + m = 1; + [loop] while (true) { + if (true) { + } else { + break; + } + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + } + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\uk3k.0:45: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.fxc.hlsl new file mode 100755 index 0000000000..71191e1266 --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.fxc.hlsl @@ -0,0 +1,106 @@ +SKIP: FAILED + +void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; + break; + case 1: + mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; + break; + case 2: + mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; + break; + case 3: + mat[3] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[3]; + break; + } +} + +cbuffer cbuffer_x_9 : register(b0, space0) { + uint4 x_9[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + int idx = 0; + float4x3 m43 = 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); + int ll_1 = 0; + int GLF_live6rows = 0; + int z = 0; + int ll_2 = 0; + int ctr = 0; + float4x3 tempm43 = 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); + int ll_3 = 0; + int c = 0; + int d = 0; + float GLF_live6sums[9] = (float[9])0; + idx = 0; + m43 = float4x3(float3(1.0f, 0.0f, 0.0f), float3(0.0f, 1.0f, 0.0f), float3(0.0f, 0.0f, 1.0f), float3(0.0f, 0.0f, 0.0f)); + ll_1 = 0; + GLF_live6rows = 2; + [loop] while (true) { + const int x_18 = ll_1; + const int x_19 = asint(x_9[0].x); + if ((x_18 >= x_19)) { + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + break; + } + ll_1 = (ll_1 + 1); + const int x_22 = asint(x_9[0].x); + z = x_22; + ll_2 = 0; + ctr = 0; + { + [loop] for(; (ctr < 1); ctr = (ctr + 1)) { + const int x_24 = ll_2; + const int x_25 = asint(x_9[0].x); + if ((x_24 >= x_25)) { + break; + } + ll_2 = (ll_2 + 1); + tempm43 = m43; + ll_3 = 0; + c = 0; + { + [loop] for(; (1 < z); c = (c + 1)) { + d = 0; + set_scalar_float4x3(tempm43, (((d >= 0) & (d < 3)) ? d : 0), (((c >= 0) & (c < 4)) ? c : 0), 1.0f); + } + } + const int x_117 = (((idx >= 0) & (idx < 9)) ? idx : 0); + const float x_119 = m43[ctr].y; + const float x_121 = GLF_live6sums[x_117]; + GLF_live6sums[x_117] = (x_121 + x_119); + } + } + idx = (idx + 1); + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\umdw.0:93: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.fxc.hlsl new file mode 100755 index 0000000000..e51bffee8b --- /dev/null +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.fxc.hlsl @@ -0,0 +1,118 @@ +SKIP: FAILED + +void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { + switch (col) { + case 0: + mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; + break; + case 1: + mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; + break; + case 2: + mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; + break; + case 3: + mat[3] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[3]; + break; + } +} + +cbuffer cbuffer_x_9 : register(b0, space0) { + uint4 x_9[1]; +}; +static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); + +void main_1() { + int idx = 0; + float4x3 m43 = 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); + int ll_1 = 0; + int GLF_live6rows = 0; + int z = 0; + int ll_2 = 0; + int ctr = 0; + float4x3 tempm43 = 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); + int ll_3 = 0; + int c = 0; + int d = 0; + float GLF_live6sums[9] = (float[9])0; + idx = 0; + m43 = float4x3(float3(1.0f, 0.0f, 0.0f), float3(0.0f, 1.0f, 0.0f), float3(0.0f, 0.0f, 1.0f), float3(0.0f, 0.0f, 0.0f)); + ll_1 = 0; + GLF_live6rows = 2; + [loop] while (true) { + const int x_18 = ll_1; + const int x_19 = asint(x_9[0].x); + if ((x_18 >= x_19)) { + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + break; + } + ll_1 = (ll_1 + 1); + const int x_22 = asint(x_9[0].x); + z = x_22; + ll_2 = 0; + ctr = 0; + { + [loop] for(; (ctr < 1); ctr = (ctr + 1)) { + const int x_24 = ll_2; + const int x_25 = asint(x_9[0].x); + if ((x_24 >= x_25)) { + break; + } + ll_2 = (ll_2 + 1); + tempm43 = m43; + ll_3 = 0; + c = 0; + { + [loop] for(; (1 < z); c = (c + 1)) { + d = 0; + bool tint_tmp = (d >= 0); + if (tint_tmp) { + tint_tmp = (d < 3); + } + bool tint_tmp_1 = (c >= 0); + if (tint_tmp_1) { + tint_tmp_1 = (c < 4); + } + set_scalar_float4x3(tempm43, ((tint_tmp) ? d : 0), ((tint_tmp_1) ? c : 0), 1.0f); + } + } + bool tint_tmp_2 = (idx >= 0); + if (tint_tmp_2) { + tint_tmp_2 = (idx < 9); + } + const int x_117 = ((tint_tmp_2) ? idx : 0); + const float x_119 = m43[ctr].y; + const float x_121 = GLF_live6sums[x_117]; + GLF_live6sums[x_117] = (x_121 + x_119); + } + } + idx = (idx + 1); + } + return; +} + +struct main_out { + float4 x_GLF_color_1; +}; +struct tint_symbol { + float4 x_GLF_color_1 : SV_Target0; +}; + +main_out main_inner() { + main_1(); + const main_out tint_symbol_2 = {x_GLF_color}; + return tint_symbol_2; +} + +tint_symbol main() { + const main_out inner_result = main_inner(); + tint_symbol wrapper_result = (tint_symbol)0; + wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; + return wrapper_result; +} +error: validation errors +C:\src\temp\u1tig.0:105: error: Loop must have break. +Validation failed. + + + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.fxc.hlsl similarity index 100% rename from test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.hlsl rename to test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.fxc.hlsl diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.spvasm.expected.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.spvasm.expected.glsl deleted file mode 100644 index cfcb39e9a4..0000000000 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.spvasm.expected.glsl +++ /dev/null @@ -1,46 +0,0 @@ -SKIP: FAILED - -#version 310 es - -layout(location = 0) in vec3 x_2_param_1; -layout(location = 1) flat in int x_3_param_1; -layout(location = 0) flat out int x_4_1_1; -vec3 x_2 = vec3(0.0f, 0.0f, 0.0f); -int x_3 = 0; -int x_4 = 0; -vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); -void main_1() { - tint_symbol = vec4(x_2, 1.0f); - x_4 = x_3; - return; -} - -struct main_out { - int x_4_1; - vec4 tint_symbol; -}; - -main_out tint_symbol_1(vec3 x_2_param, int x_3_param) { - x_2 = x_2_param; - x_3 = x_3_param; - main_1(); - main_out tint_symbol_2 = main_out(x_4, tint_symbol); - return tint_symbol_2; -} - -void main() { - gl_PointSize = 1.0; - main_out inner_result = tint_symbol_1(x_2_param_1, x_3_param_1); - x_4_1_1 = inner_result.x_4_1; - gl_Position = inner_result.tint_symbol; - gl_Position.y = -(gl_Position.y); - gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); - return; -} -Error parsing GLSL shader: -ERROR: 0:4: '' : vertex input cannot be further qualified -ERROR: 0:4: '' : compilation terminated -ERROR: 2 compilation errors. No code generated. - - - diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl.expected.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl.expected.glsl deleted file mode 100644 index cfcb39e9a4..0000000000 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl.expected.glsl +++ /dev/null @@ -1,46 +0,0 @@ -SKIP: FAILED - -#version 310 es - -layout(location = 0) in vec3 x_2_param_1; -layout(location = 1) flat in int x_3_param_1; -layout(location = 0) flat out int x_4_1_1; -vec3 x_2 = vec3(0.0f, 0.0f, 0.0f); -int x_3 = 0; -int x_4 = 0; -vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f); -void main_1() { - tint_symbol = vec4(x_2, 1.0f); - x_4 = x_3; - return; -} - -struct main_out { - int x_4_1; - vec4 tint_symbol; -}; - -main_out tint_symbol_1(vec3 x_2_param, int x_3_param) { - x_2 = x_2_param; - x_3 = x_3_param; - main_1(); - main_out tint_symbol_2 = main_out(x_4, tint_symbol); - return tint_symbol_2; -} - -void main() { - gl_PointSize = 1.0; - main_out inner_result = tint_symbol_1(x_2_param_1, x_3_param_1); - x_4_1_1 = inner_result.x_4_1; - gl_Position = inner_result.tint_symbol; - gl_Position.y = -(gl_Position.y); - gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); - return; -} -Error parsing GLSL shader: -ERROR: 0:4: '' : vertex input cannot be further qualified -ERROR: 0:4: '' : compilation terminated -ERROR: 2 compilation errors. No code generated. - - - diff --git a/tools/src/cmd/test-runner/main.go b/tools/src/cmd/test-runner/main.go index 6e35c81490..f6471f516c 100644 --- a/tools/src/cmd/test-runner/main.go +++ b/tools/src/cmd/test-runner/main.go @@ -41,20 +41,22 @@ type outputFormat string const ( testTimeout = 2 * time.Minute - glsl = outputFormat("glsl") - hlsl = outputFormat("hlsl") - msl = outputFormat("msl") - spvasm = outputFormat("spvasm") - wgsl = outputFormat("wgsl") + glsl = outputFormat("glsl") + hlslFXC = outputFormat("hlsl-fxc") + hlslDXC = outputFormat("hlsl-dxc") + msl = outputFormat("msl") + spvasm = outputFormat("spvasm") + wgsl = outputFormat("wgsl") ) // Directories we don't generate expected PASS result files for. // These directories contain large corpora of tests for which the generated code // is uninteresting. +// These paths use unix-style slashes and do not contain the '/test/tint' prefix. var dirsWithNoPassExpectations = []string{ - "/test/tint/benchmark/", - "/test/tint/unittest/", - "/test/tint/vk-gl-cts/", + "benchmark/", + "unittest/", + "vk-gl-cts/", } func main() { @@ -81,16 +83,15 @@ optional flags:`) } func run() error { - var formatList, filter, dxcPath, xcrunPath string + var formatList, filter, dxcPath, fxcPath, xcrunPath string var maxFilenameColumnWidth int numCPU := runtime.NumCPU() - fxc, fxcAndDxc, verbose, generateExpected, generateSkip := false, false, false, false, false - flag.StringVar(&formatList, "format", "all", "comma separated list of formats to emit. Possible values are: all, wgsl, spvasm, msl, hlsl, glsl") + verbose, generateExpected, generateSkip := false, false, false + flag.StringVar(&formatList, "format", "all", "comma separated list of formats to emit. Possible values are: all, wgsl, spvasm, msl, hlsl, hlsl-dxc, hlsl-fxc, glsl") flag.StringVar(&filter, "filter", "**.wgsl, **.spvasm, **.spv", "comma separated list of glob patterns for test files") flag.StringVar(&dxcPath, "dxc", "", "path to DXC executable for validating HLSL output") + flag.StringVar(&fxcPath, "fxc", "", "path to FXC DLL for validating HLSL output") flag.StringVar(&xcrunPath, "xcrun", "", "path to xcrun executable for validating MSL output") - flag.BoolVar(&fxc, "fxc", false, "validate with FXC instead of DXC") - flag.BoolVar(&fxcAndDxc, "fxc-and-dxc", false, "validate with both FXC and DXC") flag.BoolVar(&verbose, "verbose", false, "print all run tests, including rows that all pass") flag.BoolVar(&generateExpected, "generate-expected", false, "create or update all expected outputs") flag.BoolVar(&generateSkip, "generate-skip", false, "create or update all expected outputs that fail with SKIP") @@ -104,10 +105,6 @@ func run() error { showUsage() } - if fxcAndDxc { - fxc = true - } - // executable path is the first argument exe, args := args[0], args[1:] @@ -163,7 +160,7 @@ func run() error { // Parse --format into a list of outputFormat formats := []outputFormat{} if formatList == "all" { - formats = []outputFormat{wgsl, spvasm, msl, hlsl, glsl} + formats = []outputFormat{wgsl, spvasm, msl, hlslDXC, hlslFXC, glsl} } else { for _, f := range strings.Split(formatList, ",") { switch strings.TrimSpace(f) { @@ -174,7 +171,11 @@ func run() error { case "msl": formats = append(formats, msl) case "hlsl": - formats = append(formats, hlsl) + formats = append(formats, hlslDXC, hlslFXC) + case "hlsl-dxc": + formats = append(formats, hlslDXC) + case "hlsl-fxc": + formats = append(formats, hlslFXC) case "glsl": formats = append(formats, glsl) default: @@ -195,7 +196,8 @@ func run() error { lang string path *string }{ - {"dxc", "hlsl", &dxcPath}, + {"dxc", "hlsl-dxc", &dxcPath}, + {"d3dcompiler_47.dll", "hlsl-fxc", &fxcPath}, {defaultMSLExe, "msl", &xcrunPath}, } { if *tool.path == "" { @@ -208,20 +210,11 @@ func run() error { } color.Set(color.FgCyan) - fmt.Printf("%-4s", tool.lang) + fmt.Printf("%-8s", tool.lang) color.Unset() fmt.Printf(" validation ") - if *tool.path != "" || (fxc && tool.lang == "hlsl") { - color.Set(color.FgGreen) - tool_path := *tool.path - if fxc && tool.lang == "hlsl" { - if fxcAndDxc { - tool_path += " AND Tint will use FXC dll in PATH" - } else { - tool_path = "Tint will use FXC dll in PATH" - } - } - fmt.Printf("ENABLED (" + tool_path + ")") + if *tool.path != "" { + fmt.Printf("ENABLED (" + *tool.path + ")") } else { color.Set(color.FgRed) fmt.Printf("DISABLED") @@ -245,10 +238,19 @@ func run() error { pendingJobs := make(chan job, 256) // Spawn numCPU job runners... + runCfg := runConfig{ + wd: dir, + exe: exe, + dxcPath: dxcPath, + fxcPath: fxcPath, + xcrunPath: xcrunPath, + generateExpected: generateExpected, + generateSkip: generateSkip, + } for cpu := 0; cpu < numCPU; cpu++ { go func() { for job := range pendingJobs { - job.run(dir, exe, fxc, fxcAndDxc, dxcPath, xcrunPath, generateExpected, generateSkip) + job.run(runCfg) } }() } @@ -506,10 +508,28 @@ type job struct { result chan status } -func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, generateExpected, generateSkip bool) { +type runConfig struct { + wd string + exe string + dxcPath string + fxcPath string + xcrunPath string + generateExpected bool + generateSkip bool +} + +func (j job) run(cfg runConfig) { j.result <- func() status { // expectedFilePath is the path to the expected output file for the given test - expectedFilePath := j.file + ".expected." + string(j.format) + expectedFilePath := j.file + ".expected." + switch j.format { + case hlslDXC: + expectedFilePath += "dxc.hlsl" + case hlslFXC: + expectedFilePath += "fxc.hlsl" + default: + expectedFilePath += string(j.format) + } // Is there an expected output file? If so, load it. expected, expectedFileExists := "", false @@ -525,7 +545,7 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, expected = strings.ReplaceAll(expected, "\r\n", "\n") - file, err := filepath.Rel(wd, j.file) + file, err := filepath.Rel(cfg.wd, j.file) if err != nil { file = j.file } @@ -536,7 +556,7 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, args := []string{ file, - "--format", string(j.format), + "--format", strings.Split(string(j.format), "-")[0], // 'hlsl-fxc' -> 'hlsl', etc. } // Can we validate? @@ -547,52 +567,40 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, case spvasm, glsl: args = append(args, "--validate") // spirv-val and glslang are statically linked, always available validate = true - case hlsl: - // Handled below - case msl: - if xcrunPath != "" { - args = append(args, "--xcrun", xcrunPath) + case hlslDXC: + if cfg.dxcPath != "" { + args = append(args, "--dxc", cfg.dxcPath) validate = true } + case hlslFXC: + if cfg.fxcPath != "" { + args = append(args, "--fxc", cfg.fxcPath) + validate = true + } + case msl: + if cfg.xcrunPath != "" { + args = append(args, "--xcrun", cfg.xcrunPath) + validate = true + } + default: + panic("unknown format: " + j.format) } // Invoke the compiler... ok := false var out string + args = append(args, j.flags...) + start := time.Now() - if j.format == hlsl { - // If fxcAndDxc is set, run FXC first as it's more likely to fail, then DXC iff FXC succeeded. - if fxc || fxcAndDxc { - validate = true - args_fxc := append(args, "--fxc") - args_fxc = append(args_fxc, j.flags...) - ok, out = invoke(wd, exe, args_fxc...) - } - - if dxcPath != "" && (!fxc || (fxcAndDxc && ok)) { - validate = true - args_dxc := append(args, "--dxc", dxcPath) - args_dxc = append(args_dxc, j.flags...) - ok, out = invoke(wd, exe, args_dxc...) - } - - // If we didn't run either fxc or dxc validation, run as usual - if !validate { - args = append(args, j.flags...) - ok, out = invoke(wd, exe, args...) - } - - } else { - args = append(args, j.flags...) - ok, out = invoke(wd, exe, args...) - } + ok, out = invoke(cfg.wd, cfg.exe, args...) timeTaken := time.Since(start) + out = strings.ReplaceAll(out, "\r\n", "\n") matched := expected == "" || expected == out canEmitPassExpectationFile := true for _, noPass := range dirsWithNoPassExpectations { - if strings.Contains(j.file, filepath.FromSlash(noPass)) { + if strings.HasPrefix(file, noPass) { canEmitPassExpectationFile = false break } @@ -602,7 +610,7 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, return ioutil.WriteFile(path, []byte(content), 0666) } - if ok && generateExpected && (validate || !skipped) { + if ok && cfg.generateExpected && (validate || !skipped) { // User requested to update PASS expectations, and test passed. if canEmitPassExpectationFile { saveExpectedFile(expectedFilePath, out) @@ -623,14 +631,14 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, // --- Below this point the test has failed --- case skipped: - if generateSkip { + if cfg.generateSkip { saveExpectedFile(expectedFilePath, "SKIP: FAILED\n\n"+out) } return status{code: skip, timeTaken: timeTaken} case !ok: // Compiler returned non-zero exit code - if generateSkip { + if cfg.generateSkip { saveExpectedFile(expectedFilePath, "SKIP: FAILED\n\n"+out) } err := fmt.Errorf("%s", out) @@ -638,7 +646,7 @@ func (j job) run(wd, exe string, fxc, fxcAndDxc bool, dxcPath, xcrunPath string, default: // Compiler returned zero exit code, or output was not as expected - if generateSkip { + if cfg.generateSkip { saveExpectedFile(expectedFilePath, "SKIP: FAILED\n\n"+out) }