Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / link.multiAnonBlocksValid.0.0.vert
1 #version 430
2
3 // Verify that matching by block name is working, not
4 // instance name, which was at one point failing on this
5 // test due to E.g anon@1 being different blocks for
6 // different compilation units
7
8 layout (std140) uniform Block
9 {
10         mat4 uProj;
11         mat4 uWorld;
12 };
13
14 out Vertex
15 {
16         vec4 v1;
17         vec4 v2;
18 };
19
20 layout (std140) uniform ColorBlock
21 {
22         vec4 color1;
23         vec4 color2;
24 };
25
26 vec4 getWorld();
27 vec4 getColor2();
28
29 out vec4 oColor;
30
31 void
32 main()
33 {
34         oColor = color1 * getColor2();
35         v1 = color1;
36
37         gl_Position = uProj * getWorld();
38 }