| 1 |
static int index; |
| 2 |
static uint FragColor; |
| 3 |
|
| 4 |
struct SPIRV_Cross_Input |
| 5 |
{ |
| 6 |
nointerpolation int index : TEXCOORD0; |
| 7 |
}; |
| 8 |
|
| 9 |
struct SPIRV_Cross_Output |
| 10 |
{ |
| 11 |
uint FragColor : SV_Target0; |
| 12 |
}; |
| 13 |
|
| 14 |
void frag_main() |
| 15 |
{ |
| 16 |
uint _17 = uint(index); |
| 17 |
FragColor = uint(WaveActiveMin(index)); |
| 18 |
FragColor = uint(WaveActiveMax(int(_17))); |
| 19 |
FragColor = WaveActiveMin(uint(index)); |
| 20 |
FragColor = WaveActiveMax(_17); |
| 21 |
} |
| 22 |
|
| 23 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 24 |
{ |
| 25 |
index = stage_input.index; |
| 26 |
frag_main(); |
| 27 |
SPIRV_Cross_Output stage_output; |
| 28 |
stage_output.FragColor = FragColor; |
| 29 |
return stage_output; |
| 30 |
} |