From eb12d5d19790fe91d7ee0514459295ad42b636eb Mon Sep 17 00:00:00 2001 From: Ken Russell Date: Mon, 9 Jul 2018 17:27:25 -0700 Subject: [PATCH] Added test cases for structs as out and inout parameters. (#2663) The highp variant of these tests fails on certain GPUs. Regression tests for the Chromium bugs http://crbug.com/851870 and http://crbug.com/851873. Test cases originally from https://github.com/mrdoob/three.js/issues/14137 . --- .../conformance/glsl/misc/00_test_list.txt | 2 + .../glsl/misc/struct-as-inout-parameter.html | 138 ++++++++++++++++++ .../glsl/misc/struct-as-out-parameter.html | 136 +++++++++++++++++ 3 files changed, 276 insertions(+) create mode 100644 sdk/tests/conformance/glsl/misc/struct-as-inout-parameter.html create mode 100644 sdk/tests/conformance/glsl/misc/struct-as-out-parameter.html diff --git a/sdk/tests/conformance/glsl/misc/00_test_list.txt b/sdk/tests/conformance/glsl/misc/00_test_list.txt index 9fc8111366..7a2daa442a 100644 --- a/sdk/tests/conformance/glsl/misc/00_test_list.txt +++ b/sdk/tests/conformance/glsl/misc/00_test_list.txt @@ -99,6 +99,8 @@ shader-without-precision.frag.html --min-version 1.0.3 shaders-with-uniform-structs.html --min-version 1.0.2 shaders-with-varyings.html shared.html +--min-version 1.0.4 struct-as-inout-parameter.html +--min-version 1.0.4 struct-as-out-parameter.html struct-nesting-exceeds-maximum.html struct-nesting-under-maximum.html --max-version 1.9.9 uniform-location-length-limits.html diff --git a/sdk/tests/conformance/glsl/misc/struct-as-inout-parameter.html b/sdk/tests/conformance/glsl/misc/struct-as-inout-parameter.html new file mode 100644 index 0000000000..f9a1df4098 --- /dev/null +++ b/sdk/tests/conformance/glsl/misc/struct-as-inout-parameter.html @@ -0,0 +1,138 @@ + + + + + + +GLSL Structure as Inout Parameter Test + + + + + + + + + + +
+
+ + + diff --git a/sdk/tests/conformance/glsl/misc/struct-as-out-parameter.html b/sdk/tests/conformance/glsl/misc/struct-as-out-parameter.html new file mode 100644 index 0000000000..d36da1d7da --- /dev/null +++ b/sdk/tests/conformance/glsl/misc/struct-as-out-parameter.html @@ -0,0 +1,136 @@ + + + + + + +GLSL Structure as Out Parameter Test + + + + + + + + + + +
+
+ + +