blob: 0e90b3c33772babb69276bd503c9f1273786d5d8 [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001struct VertexOutput {
2 float4 pos;
3 int loc0;
4};
5
6VertexOutput foo(float x) {
James Pricea5d73ce2021-08-04 22:15:28 +00007 const VertexOutput tint_symbol_2 = {float4(x, x, x, 1.0f), 42};
8 return tint_symbol_2;
James Pricebb0496e2021-06-03 09:38:34 +00009}
10
James Pricea865b372021-06-19 01:12:45 +000011struct tint_symbol {
James Pricea41694e2021-10-21 23:08:44 +000012 nointerpolation int loc0 : TEXCOORD0;
James Pricea865b372021-06-19 01:12:45 +000013 float4 pos : SV_Position;
14};
15
James Pricea5d73ce2021-08-04 22:15:28 +000016VertexOutput vert_main1_inner() {
17 return foo(0.5f);
James Pricebb0496e2021-06-03 09:38:34 +000018}
19
James Pricea5d73ce2021-08-04 22:15:28 +000020tint_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
28struct tint_symbol_1 {
James Pricea41694e2021-10-21 23:08:44 +000029 nointerpolation int loc0 : TEXCOORD0;
James Pricea865b372021-06-19 01:12:45 +000030 float4 pos : SV_Position;
31};
32
James Pricea5d73ce2021-08-04 22:15:28 +000033VertexOutput vert_main2_inner() {
34 return foo(0.25f);
35}
36
37tint_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 Pricebb0496e2021-06-03 09:38:34 +000043}