f3e4a1af5ffec7f778cc384949c6f64439bda080
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / data / vulkan / draw / VertexFetchInstancedFirstInstance.vert
1 #version 430
2
3 layout(location = 0) in vec4 in_position;
4 layout(location = 1) in vec4 in_color;
5
6 layout(location = 0) out vec4 out_color;
7
8 out gl_PerVertex {
9     vec4 gl_Position;
10 };
11
12 void main() {
13         vec2 perVertex = vec2(in_position.x, in_position.y);
14         vec2 perInstance[6]     = vec2[6](vec2(0.7, -0.7), vec2(-0.75, 0.8), vec2(0.0, 0.0), vec2(0.3, 0.0), vec2(0.0, -0.3),vec2(0.3, -0.3) );
15
16         gl_Position = vec4(perVertex + perInstance[gl_InstanceIndex], 0.0, 1.0);
17         out_color = in_color;
18 }