blob: 76f64dd9c43db466e52b8542c5ae1cb3d8d96035 [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
row_major float2x2 _7_testMatrix2x2 : packoffset(c0);
float4 _7_colorGreen : packoffset(c2);
float4 _7_colorRed : packoffset(c3);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
float4 main(float2 _22)
{
float4 _33 = 0.0f.xxxx;
if (determinant(_7_testMatrix2x2) == (-2.0f))
{
_33 = _7_colorGreen;
}
else
{
_33 = _7_colorRed;
}
return _33;
}
void frag_main()
{
float2 _18 = 0.0f.xx;
sk_FragColor = main(_18);
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.sk_FragColor = sk_FragColor;
return stage_output;
}