Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / GL_ARB_draw_instanced.vert
1 #version 150
2 #extension GL_ARB_draw_instanced : require
3 #define ID gl_InstanceID
4
5 uniform mat4 gtf_ModelViewProjectionMatrix;
6 uniform vec3 instanceOffsets[3];
7 in vec4 va[gl_MaxVertexAttribs];
8 out vec4 color;
9
10 void main (void)
11 {
12         vec4 vertex = vec4(va[0].xy / 3.0, va[0].zw) + vec4(instanceOffsets[ID], 1.0);
13         color = vec4(0, 0, 0, 0);
14         for (int i = 1; i < gl_MaxVertexAttribs; i++)
15                 color += va[i];
16         gl_Position = gtf_ModelViewProjectionMatrix * vertex;
17         gl_PointSize = 1.0;
18 }