Welcome to mirror list, hosted at ThFree Co, Russian Federation.

loop-dominator-and-switch-default.frag « frag « shaders « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c193483d1c4bd6c0cb48ea8ae9aa2121e6aeae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#version 310 es
precision mediump float;
precision highp int;

layout(location = 0) out vec4 fragColor;

vec4 _80;

void main()
{
    mediump int _18 = int(_80.x);
    vec4 _82;
    _82 = _80;
    vec4 _89;
    for (mediump int _81 = 0; _81 < _18; _82 = _89, _81++)
    {
        vec4 _83;
        switch (_18)
        {
            case 0:
            {
                vec4 _74 = _82;
                _74.y = 0.0;
                _83 = _74;
                break;
            }
            case 1:
            {
                vec4 _76 = _82;
                _76.y = 1.0;
                _83 = _76;
                break;
            }
            default:
            {
                vec4 _88;
                _88 = _82;
                for (mediump int _84 = 0; _84 < _18; )
                {
                    vec4 _72 = _88;
                    _72.y = _88.y + 0.5;
                    _88 = _72;
                    _84++;
                    continue;
                }
                _89 = _88;
                continue;
            }
        }
        vec4 _79 = _83;
        _79.y = _83.y + 0.5;
        _89 = _79;
    }
    fragColor = _82;
}