ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_vertex_program / compute_position_from_texcoord.shader_test
blobc55bd83839e6ce95046c017cc31e29a2ae5db180
1 [require]
2 GL >= 1.3
3 ARB_vertex_program
5 [vertex program]
6 !!ARBvp1.0
7 ATTRIB texcoord = vertex.texcoord[0];
8 PARAM scale = {0.5, 0.5, 0.0, 1.0};
9 PARAM bias = {-0.25, -0.25, 0.0, 0.0};
10 MAD result.position, texcoord, scale, bias;
11 MOV result.color, vertex.color;
12 END
14 [test]
15 ortho -4 4 -4 4
16 color 0.25 0.75 0.5 0.25
17 draw rect tex -0.25 -0.25 0.5 0.5 0 0 1 1
18 relative probe rgba (0.5, 0.5) (0.25, 0.75, 0.5, 0.25)