Add tests for indexed indirect draw calls and VertexIndex semantics
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / data / vulkan / draw / VertexFetch.vert
1 #version 430
2
3 layout(location = 0) in vec4 in_position;
4 layout(location = 1) in vec4 in_color;
5 layout(location = 2) in int in_refVertexIndex;
6
7 layout(location = 0) out vec4 out_color;
8
9 out gl_PerVertex {
10     vec4 gl_Position;
11 };
12
13 void main() {
14         gl_Position = in_position;
15         if (gl_VertexIndex == in_refVertexIndex)
16                 out_color = in_color;
17         else
18                 out_color = vec4(1.0, 0.0, 0.0, 1.0);
19 }