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

complex-expression-in-access-chain.frag « frag « shaders « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56b4c89a5902fc2e2575e6129976f50b5464ed01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#version 310 es
precision mediump float;
precision highp int;

layout(binding = 0, std430) buffer UBO
{
    vec4 results[1024];
} _34;

layout(binding = 1) uniform highp isampler2D Buf;

layout(location = 0) flat in mediump int vIn;
layout(location = 1) flat in mediump int vIn2;
layout(location = 0) out vec4 FragColor;

void main()
{
    mediump int _40 = texelFetch(Buf, ivec2(gl_FragCoord.xy), 0).x % 16;
    FragColor = (_34.results[_40] + _34.results[_40]) + _34.results[(vIn * vIn) + (vIn2 * vIn2)];
}