[Piglit] [PATCH 04/13] glsl-1.10: Add tests for literal floats with exponents.
Matt Turner
mattst88 at gmail.com
Sat Jul 5 23:03:16 PDT 2014
---
.../spec/glsl-1.10/compiler/literals/valid-float-exponent-E.vert | 9 +++++++++
.../spec/glsl-1.10/compiler/literals/valid-float-exponent-e.vert | 9 +++++++++
2 files changed, 18 insertions(+)
create mode 100644 tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-E.vert
create mode 100644 tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-e.vert
diff --git a/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-E.vert b/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-E.vert
new file mode 100644
index 0000000..7678e8e
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-E.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ vec4 f = vec4(1E5, -1E5, 1E-5, -1E-5);
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-e.vert b/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-e.vert
new file mode 100644
index 0000000..725cccb
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/literals/valid-float-exponent-e.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ vec4 f = vec4(1e5, -1e5, 1e-5, -1e-5);
+ gl_Position = vec4(1.0);
+}
--
1.8.3.2
More information about the Piglit
mailing list