summaryrefslogtreecommitdiffstats
path: root/tests/playground/cbuf_without_inst.frag
blob: de92e6893e3080ec99d18b99e2ef61fac9957eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 440

layout(std140, binding = 0) uniform buf1 {
    vec3 v;
    float f;
} ubuf1;

layout(std140, binding = 1) uniform buf2 {
    float f2;
}; // no instance name

layout(location = 0) out vec4 fragColor;

void main()
{
    fragColor = vec4(ubuf1.v, ubuf1.f + f2);
}