mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
501fd33b68
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: d4b0625cbd7377e720b4fa1d63e6a3c09da5db63
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;
|
|
}
|