perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-vs-sign.shader_test
blob1e328a456684b4339d660c2581a98f5cf48496b0
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 varying vec4 color;
6 uniform vec4 arg0;
7 void main()
9         gl_Position = gl_Vertex;
10         color = sign(arg0) + vec4(1.5, -0.5, 0.5, 0.5);
13 [fragment shader]
14 varying vec4 color;
16 void main()
18         gl_FragColor = color;
21 [test]
22 uniform vec4 arg0 -5.0 5.0 0.0 0.0
23 draw rect -1 -1 2 2
24 probe rgb 1 1 0.5 0.5 0.5 0.5