James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | int loc0; |
| 4 | }; |
| 5 | |
| 6 | VertexOutput foo(float x) { |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 7 | const VertexOutput tint_symbol_2 = {float4(x, x, x, 1.0f), 42}; |
| 8 | return tint_symbol_2; |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 9 | } |
| 10 | |
James Price | a865b37 | 2021-06-19 01:12:45 +0000 | [diff] [blame] | 11 | struct tint_symbol { |
James Price | a41694e | 2021-10-21 23:08:44 +0000 | [diff] [blame] | 12 | nointerpolation int loc0 : TEXCOORD0; |
James Price | a865b37 | 2021-06-19 01:12:45 +0000 | [diff] [blame] | 13 | float4 pos : SV_Position; |
| 14 | }; |
| 15 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 16 | VertexOutput vert_main1_inner() { |
| 17 | return foo(0.5f); |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 18 | } |
| 19 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 20 | tint_symbol vert_main1() { |
| 21 | const VertexOutput inner_result = vert_main1_inner(); |
| 22 | tint_symbol wrapper_result = (tint_symbol)0; |
| 23 | wrapper_result.pos = inner_result.pos; |
| 24 | wrapper_result.loc0 = inner_result.loc0; |
| 25 | return wrapper_result; |
| 26 | } |
| 27 | |
| 28 | struct tint_symbol_1 { |
James Price | a41694e | 2021-10-21 23:08:44 +0000 | [diff] [blame] | 29 | nointerpolation int loc0 : TEXCOORD0; |
James Price | a865b37 | 2021-06-19 01:12:45 +0000 | [diff] [blame] | 30 | float4 pos : SV_Position; |
| 31 | }; |
| 32 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 33 | VertexOutput vert_main2_inner() { |
| 34 | return foo(0.25f); |
| 35 | } |
| 36 | |
| 37 | tint_symbol_1 vert_main2() { |
| 38 | const VertexOutput inner_result_1 = vert_main2_inner(); |
| 39 | tint_symbol_1 wrapper_result_1 = (tint_symbol_1)0; |
| 40 | wrapper_result_1.pos = inner_result_1.pos; |
| 41 | wrapper_result_1.loc0 = inner_result_1.loc0; |
| 42 | return wrapper_result_1; |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 43 | } |