2018-11-01 10:22:14 +00:00
|
|
|
#ifndef SPIRV_CROSS_CONSTANT_ID_0
|
|
|
|
#define SPIRV_CROSS_CONSTANT_ID_0 10u
|
|
|
|
#endif
|
|
|
|
static const uint s = SPIRV_CROSS_CONSTANT_ID_0;
|
2018-06-25 07:48:17 +00:00
|
|
|
static const bool _13 = (s > 20u);
|
2019-01-30 12:31:17 +00:00
|
|
|
static const uint f = _13 ? 30u : 50u;
|
2018-06-25 07:48:17 +00:00
|
|
|
|
|
|
|
static float FragColor;
|
|
|
|
|
|
|
|
struct SPIRV_Cross_Output
|
|
|
|
{
|
|
|
|
float FragColor : SV_Target0;
|
|
|
|
};
|
|
|
|
|
|
|
|
void frag_main()
|
|
|
|
{
|
2019-01-30 12:31:17 +00:00
|
|
|
FragColor = float(f);
|
2018-06-25 07:48:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SPIRV_Cross_Output main()
|
|
|
|
{
|
|
|
|
frag_main();
|
|
|
|
SPIRV_Cross_Output stage_output;
|
|
|
|
stage_output.FragColor = FragColor;
|
|
|
|
return stage_output;
|
|
|
|
}
|