diff options
author | Tom Gall <tom.gall@linaro.org> | 2013-01-09 22:54:43 -0600 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2013-01-09 22:54:43 -0600 |
commit | aed636a41c672291d2df21c8ce2c37f986c4fadd (patch) | |
tree | aee17f9a88c17d06ead692e417835c73eb461f33 /tests/spec/glsl-es-1.00/execution | |
parent | 5ed5ea394a7a7824b7205dff135ea1d8319bfe3f (diff) | |
parent | c85d6aec699c9f666dd003d6df5ea0dfe574120d (diff) |
Merge branch 'master' of git://anongit.freedesktop.org/git/piglit
Diffstat (limited to 'tests/spec/glsl-es-1.00/execution')
-rw-r--r-- | tests/spec/glsl-es-1.00/execution/sanity.shader_test | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/execution/sanity.shader_test b/tests/spec/glsl-es-1.00/execution/sanity.shader_test new file mode 100644 index 00000000..a1dc07a0 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/sanity.shader_test @@ -0,0 +1,42 @@ +# Fill the window with red, then green, then blue. + +[require] +GL >= 2.0 es + +[vertex shader] +#version 100 + +attribute vec4 vertex; + +void main() { + gl_Position = vertex; +} + +[fragment shader] +#version 100 + +uniform vec4 u_color; + +void main() { + gl_FragColor = u_color; +} + +[vertex data] +vertex/float/2 +-1.0 -1.0 + 1.0 -1.0 + 1.0 1.0 +-1.0 1.0 + +[test] +uniform vec4 u_color 1.0 0.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 1.0 0.0 0.0 1.0 + +uniform vec4 u_color 0.0 1.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 1.0 0.0 1.0 + +uniform vec4 u_color 0.0 0.0 1.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 0.0 1.0 1.0 |