xref: /aosp_15_r20/external/skia/tests/sksl/shared/Octal.hlsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1cbuffer _UniformBuffer : register(b0, space0)
2{
3    float4 _7_colorGreen : packoffset(c0);
4    float4 _7_colorRed : packoffset(c1);
5};
6
7
8static float4 sk_FragColor;
9
10struct SPIRV_Cross_Output
11{
12    float4 sk_FragColor : SV_Target0;
13};
14
15float4 main(float2 _21)
16{
17    int i1 = 1;
18    int i2 = 342391;
19    int i3 = 2000000000;
20    int i4 = -2000000000;
21    bool _38 = false;
22    if (true)
23    {
24        _38 = true;
25    }
26    else
27    {
28        _38 = false;
29    }
30    bool _41 = false;
31    if (_38)
32    {
33        _41 = true;
34    }
35    else
36    {
37        _41 = false;
38    }
39    bool _44 = false;
40    if (_41)
41    {
42        _44 = true;
43    }
44    else
45    {
46        _44 = false;
47    }
48    float4 _45 = 0.0f.xxxx;
49    if (_44)
50    {
51        _45 = _7_colorGreen;
52    }
53    else
54    {
55        _45 = _7_colorRed;
56    }
57    return _45;
58}
59
60void frag_main()
61{
62    float2 _17 = 0.0f.xx;
63    sk_FragColor = main(_17);
64}
65
66SPIRV_Cross_Output main()
67{
68    frag_main();
69    SPIRV_Cross_Output stage_output;
70    stage_output.sk_FragColor = sk_FragColor;
71    return stage_output;
72}
73