| 1 |
static float4 FragColor; |
| 2 |
|
| 3 |
struct SPIRV_Cross_Output |
| 4 |
{ |
| 5 |
float4 FragColor : SV_Target0; |
| 6 |
}; |
| 7 |
|
| 8 |
float4 foo(float4 foo_1) |
| 9 |
{ |
| 10 |
return foo_1 + 1.0f.xxxx; |
| 11 |
} |
| 12 |
|
| 13 |
float4 foo(float3 foo_1) |
| 14 |
{ |
| 15 |
return foo_1.xyzz + 1.0f.xxxx; |
| 16 |
} |
| 17 |
|
| 18 |
float4 foo_1(float4 foo_2) |
| 19 |
{ |
| 20 |
return foo_2 + 2.0f.xxxx; |
| 21 |
} |
| 22 |
|
| 23 |
float4 foo(float2 foo_2) |
| 24 |
{ |
| 25 |
return foo_2.xyxy + 2.0f.xxxx; |
| 26 |
} |
| 27 |
|
| 28 |
void frag_main() |
| 29 |
{ |
| 30 |
float4 foo_3 = 1.0f.xxxx; |
| 31 |
float4 foo_2 = foo(foo_3); |
| 32 |
float3 foo_5 = 1.0f.xxx; |
| 33 |
float4 foo_4 = foo(foo_5); |
| 34 |
float4 foo_7 = 1.0f.xxxx; |
| 35 |
float4 foo_6 = foo_1(foo_7); |
| 36 |
float2 foo_9 = 1.0f.xx; |
| 37 |
float4 foo_8 = foo(foo_9); |
| 38 |
FragColor = ((foo_2 + foo_4) + foo_6) + foo_8; |
| 39 |
} |
| 40 |
|
| 41 |
SPIRV_Cross_Output main() |
| 42 |
{ |
| 43 |
frag_main(); |
| 44 |
SPIRV_Cross_Output stage_output; |
| 45 |
stage_output.FragColor = FragColor; |
| 46 |
return stage_output; |
| 47 |
} |