| 1 |
struct Foo |
| 2 |
{ |
| 3 |
float a; |
| 4 |
float b; |
| 5 |
}; |
| 6 |
|
| 7 |
static const float _16[4] = { 1.0f, 4.0f, 3.0f, 2.0f }; |
| 8 |
static const Foo _24 = { 10.0f, 20.0f }; |
| 9 |
static const Foo _27 = { 30.0f, 40.0f }; |
| 10 |
static const Foo _28[2] = { { 10.0f, 20.0f }, { 30.0f, 40.0f } }; |
| 11 |
|
| 12 |
static float4 FragColor; |
| 13 |
static int _line; |
| 14 |
|
| 15 |
struct SPIRV_Cross_Input |
| 16 |
{ |
| 17 |
nointerpolation int _line : TEXCOORD0; |
| 18 |
}; |
| 19 |
|
| 20 |
struct SPIRV_Cross_Output |
| 21 |
{ |
| 22 |
float4 FragColor : SV_Target0; |
| 23 |
}; |
| 24 |
|
| 25 |
void frag_main() |
| 26 |
{ |
| 27 |
FragColor = _16[_line].xxxx; |
| 28 |
FragColor += (_28[_line].a * _28[1 - _line].a).xxxx; |
| 29 |
} |
| 30 |
|
| 31 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 32 |
{ |
| 33 |
_line = stage_input._line; |
| 34 |
frag_main(); |
| 35 |
SPIRV_Cross_Output stage_output; |
| 36 |
stage_output.FragColor = FragColor; |
| 37 |
return stage_output; |
| 38 |
} |