mirror of
https://github.com/libretro/RetroArch.git
synced 2024-06-02 19:57:24 -04:00
da29639d70
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: f3a75d1d4ba6b559d5c89550f800a518baad522d
41 lines
664 B
GLSL
41 lines
664 B
GLSL
static int counter;
|
|
static float4 FragColor;
|
|
|
|
struct SPIRV_Cross_Input
|
|
{
|
|
nointerpolation int counter : TEXCOORD0;
|
|
};
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float4 FragColor : SV_Target0;
|
|
};
|
|
|
|
void frag_main()
|
|
{
|
|
float4 _33;
|
|
for (;;)
|
|
{
|
|
if (counter == 10)
|
|
{
|
|
_33 = 10.0f.xxxx;
|
|
break;
|
|
}
|
|
else
|
|
{
|
|
_33 = 30.0f.xxxx;
|
|
break;
|
|
}
|
|
}
|
|
FragColor = _33;
|
|
}
|
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
|
{
|
|
counter = stage_input.counter;
|
|
frag_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.FragColor = FragColor;
|
|
return stage_output;
|
|
}
|