diff options
-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 |