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

avoid-expression-lowering-to-loop.frag « frag « shaders « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9019ac0d36a530088cf574bd1532db813368e26a (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
#version 310 es
precision mediump float;
precision highp int;

layout(binding = 1, std140) uniform Count
{
    float count;
} _44;

layout(binding = 0) uniform mediump sampler2D tex;

layout(location = 0) in highp vec4 vertex;
layout(location = 0) out vec4 fragColor;

void main()
{
    highp float _24 = 1.0 / float(textureSize(tex, 0).x);
    highp float _34 = dFdx(vertex.x);
    float _62;
    _62 = 0.0;
    for (float _61 = 0.0; _61 < _44.count; )
    {
        _62 += (_24 * _34);
        _61 += 1.0;
        continue;
    }
    fragColor = vec4(_62);
}