• 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 _46 = float4(_10_testMatrix2x2[0].x, _10_testMatrix2x2[0].y, _10_testMatrix2x2[1].x, _10_testMatrix2x2[1].y) * (1.0f / _10_colorGreen.x);
19    float4 infiniteValue = _46;
20    float4 _59 = float4(_10_testMatrix2x2[0].x, _10_testMatrix2x2[0].y, _10_testMatrix2x2[1].x, _10_testMatrix2x2[1].y) * (1.0f / _10_colorGreen.y);
21    float4 finiteValue = _59;
22    bool _69 = false;
23    if (isinf(_46.x))
24    {
25        _69 = all(isinf(_46.xy));
26    }
27    else
28    {
29        _69 = false;
30    }
31    bool _77 = false;
32    if (_69)
33    {
34        _77 = all(isinf(_46.xyz));
35    }
36    else
37    {
38        _77 = false;
39    }
40    bool _83 = false;
41    if (_77)
42    {
43        _83 = all(isinf(_46));
44    }
45    else
46    {
47        _83 = false;
48    }
49    bool _89 = false;
50    if (_83)
51    {
52        _89 = !isinf(_59.x);
53    }
54    else
55    {
56        _89 = false;
57    }
58    bool _96 = false;
59    if (_89)
60    {
61        _96 = !any(isinf(_59.xy));
62    }
63    else
64    {
65        _96 = false;
66    }
67    bool _103 = false;
68    if (_96)
69    {
70        _103 = !any(isinf(_59.xyz));
71    }
72    else
73    {
74        _103 = false;
75    }
76    bool _109 = false;
77    if (_103)
78    {
79        _109 = !any(isinf(_59));
80    }
81    else
82    {
83        _109 = false;
84    }
85    float4 _110 = 0.0f.xxxx;
86    if (_109)
87    {
88        _110 = _10_colorGreen;
89    }
90    else
91    {
92        _110 = _10_colorRed;
93    }
94    return _110;
95}
96
97void frag_main()
98{
99    float2 _21 = 0.0f.xx;
100    sk_FragColor = main(_21);
101}
102
103SPIRV_Cross_Output main()
104{
105    frag_main();
106    SPIRV_Cross_Output stage_output;
107    stage_output.sk_FragColor = sk_FragColor;
108    return stage_output;
109}
110