fix the spelling in whole piglit
[piglit.git] / tests / vulkan / shaders / gs-double-interpolator.vk_shader_test
blob9fa7ce91d9e82d48cadc4b6a49878ad5ec63ed63
1 # Tests passing double values through a geometry shader.
3 [require]
4 geometryShader
5 shaderFloat64
7 [vertex shader]
8 #version 450 core
10 layout(location = 0) out double OutDouble;
12 void main() { OutDouble = 1.234; }
14 [geometry shader]
15 #version 450 core
17 layout(triangles) in;
18 layout(triangle_strip, max_vertices = 3) out;
20 layout(location = 0) in double InDouble[3];
21 layout(location = 0) out double OutDouble;
23 void main() {
24   gl_Position = vec4(0);
26   for(int i = 0; i < 3; i++) {
27     OutDouble = InDouble[i];
28     EmitVertex();
29   }
31   EndPrimitive();
34 [fragment shader]
35 #version 450 core
37 layout(location = 0) flat in double InDouble;
38 layout(location = 0, index = 0) out vec4 Color;
40 void main() { Color = float(InDouble).xxxx; }
42 [test]
43 draw arrays POINT_LIST 0 1