summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/spv.300layout.frag
blob: 69687f6db3ab4bf63fa0e6986f95fa41fbd34395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#version 310 es

precision mediump float;

in vec4 pos;
in vec3 color;

layout(location = 7) out vec3 c;
layout(LocatioN = 3) out vec4 p[2];

struct S {
    vec3 c;
    float f;
};

in S s;

void main()
{
    c = color + s.c;
    p[1] = pos * s.f;
}