| 1 |
cbuffer Buff : register(b0) |
| 2 |
{ |
| 3 |
uint _15_TestVal : packoffset(c0); |
| 4 |
}; |
| 5 |
|
| 6 |
|
| 7 |
static float4 fsout_Color; |
| 8 |
|
| 9 |
struct SPIRV_Cross_Output |
| 10 |
{ |
| 11 |
float4 fsout_Color : SV_Target0; |
| 12 |
}; |
| 13 |
|
| 14 |
void frag_main() |
| 15 |
{ |
| 16 |
fsout_Color = 1.0f.xxxx; |
| 17 |
switch (_15_TestVal) |
| 18 |
{ |
| 19 |
case 0u: |
| 20 |
{ |
| 21 |
fsout_Color = 0.100000001490116119384765625f.xxxx; |
| 22 |
break; |
| 23 |
} |
| 24 |
case 1u: |
| 25 |
{ |
| 26 |
fsout_Color = 0.20000000298023223876953125f.xxxx; |
| 27 |
break; |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
SPIRV_Cross_Output main() |
| 33 |
{ |
| 34 |
frag_main(); |
| 35 |
SPIRV_Cross_Output stage_output; |
| 36 |
stage_output.fsout_Color = fsout_Color; |
| 37 |
return stage_output; |
| 38 |
} |