• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cbuffer _UniformBuffer : register(b0, space0)
2{
3    row_major float2x2 _10_testMatrix2x2 : packoffset(c0);
4    float4 _10_colorGreen : packoffset(c2);
5    float4 _10_colorRed : packoffset(c3);
6};
7
8
9static float4 sk_FragColor;
10
11struct SPIRV_Cross_Output
12{
13    float4 sk_FragColor : SV_Target0;
14};
15
16float4 main(float2 _25)
17{
18    float4 _42 = float4(_10_testMatrix2x2[0].x, _10_testMatrix2x2[0].y, _10_testMatrix2x2[1].x, _10_testMatrix2x2[1].y) * float4(1.0f, 1.0f, -1.0f, -1.0f);
19    float4 inputVal = _42;
20    bool _59 = false;
21    if (asuint(_42.x) == 1065353216u)
22    {
23        uint2 _51 = asuint(_42.xy);
24        _59 = all(bool2(_51.x == uint2(1065353216u, 1073741824u).x, _51.y == uint2(1065353216u, 1073741824u).y));
25    }
26    else
27    {
28        _59 = false;
29    }
30    bool _71 = false;
31    if (_59)
32    {
33        uint3 _62 = asuint(_42.xyz);
34        _71 = all(bool3(_62.x == uint3(1065353216u, 1073741824u, 3225419776u).x, _62.y == uint3(1065353216u, 1073741824u, 3225419776u).y, _62.z == uint3(1065353216u, 1073741824u, 3225419776u).z));
35    }
36    else
37    {
38        _71 = false;
39    }
40    bool _81 = false;
41    if (_71)
42    {
43        uint4 _74 = asuint(_42);
44        _81 = all(bool4(_74.x == uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).x, _74.y == uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).y, _74.z == uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).z, _74.w == uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).w));
45    }
46    else
47    {
48        _81 = false;
49    }
50    float4 _82 = 0.0f.xxxx;
51    if (_81)
52    {
53        _82 = _10_colorGreen;
54    }
55    else
56    {
57        _82 = _10_colorRed;
58    }
59    return _82;
60}
61
62void frag_main()
63{
64    float2 _21 = 0.0f.xx;
65    sk_FragColor = main(_21);
66}
67
68SPIRV_Cross_Output main()
69{
70    frag_main();
71    SPIRV_Cross_Output stage_output;
72    stage_output.sk_FragColor = sk_FragColor;
73    return stage_output;
74}
75