mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
28 lines
558 B
GLSL
28 lines
558 B
GLSL
|
static float2 FragColor;
|
||
|
static float2 x0;
|
||
|
|
||
|
struct SPIRV_Cross_Input
|
||
|
{
|
||
|
float2 x0 : TEXCOORD0;
|
||
|
};
|
||
|
|
||
|
struct SPIRV_Cross_Output
|
||
|
{
|
||
|
float2 FragColor : SV_Target0;
|
||
|
};
|
||
|
|
||
|
void frag_main()
|
||
|
{
|
||
|
bool2 _27 = (x0.x > x0.y).xx;
|
||
|
FragColor = float2(_27.x ? float2(1.0f, 0.0f).x : float2(0.0f, 1.0f).x, _27.y ? float2(1.0f, 0.0f).y : float2(0.0f, 1.0f).y);
|
||
|
}
|
||
|
|
||
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
||
|
{
|
||
|
x0 = stage_input.x0;
|
||
|
frag_main();
|
||
|
SPIRV_Cross_Output stage_output;
|
||
|
stage_output.FragColor = FragColor;
|
||
|
return stage_output;
|
||
|
}
|