Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | void max_ce7c30() { |
| 2 | int res = max(1, 1); |
| 3 | } |
| 4 | |
Ben Clayton | 5d2f34e | 2021-06-16 09:19:36 +0000 | [diff] [blame] | 5 | struct tint_symbol { |
| 6 | float4 value : SV_Position; |
| 7 | }; |
| 8 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 9 | float4 vertex_main_inner() { |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 10 | max_ce7c30(); |
Ben Clayton | e9f8b09 | 2022-06-01 13:14:39 +0000 | [diff] [blame] | 11 | return (0.0f).xxxx; |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | tint_symbol vertex_main() { |
| 15 | const float4 inner_result = vertex_main_inner(); |
| 16 | tint_symbol wrapper_result = (tint_symbol)0; |
| 17 | wrapper_result.value = inner_result; |
| 18 | return wrapper_result; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | void fragment_main() { |
| 22 | max_ce7c30(); |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | [numthreads(1, 1, 1)] |
| 27 | void compute_main() { |
| 28 | max_ce7c30(); |
| 29 | return; |
| 30 | } |