diff options
author | Brian Paul <brianp@vmware.com> | 2009-07-29 09:41:08 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-07-29 09:42:24 -0600 |
commit | 4a20a7222be0fcb63949e18222ca8a3fffbf9bb2 (patch) | |
tree | 1ca503c596c50ffc58e7d77e1a78ae00b5ac6238 | |
parent | ae8c7da2446be84a2de6dbfad7b72288f4284695 (diff) |
glsl1: add additional GLSL 1.20 array declaration and constructor tests
Mesa doesn't handle these properly yet so they're currently disabled.
-rw-r--r-- | src/glean/tglsl1.cpp | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index 64678b9..10a43df 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -3175,6 +3175,86 @@ static const ShaderProgram Programs[] = { DONT_CARE_Z, FLAG_VERSION_1_20 }, +#if 0 // not working with Mesa yet + { + "GLSL 1.20 array constructor 3", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 [] colors = vec4[2](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, + { + "GLSL 1.20 array constructor 4", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 [2] colors = vec4[](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, + { + "GLSL 1.20 array constructor 5", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 [] colors = vec4[](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, + { + "GLSL 1.20 array constructor 6", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 colors[] = vec4[](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, + { + "GLSL 1.20 array constructor 7", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 colors[2] = vec4[](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, + { + "GLSL 1.20 array constructor 8", + NO_VERTEX_SHADER, + "#version 120 \n" + "vec4 colors[2] = vec4[2](vec4(0.5, 0.4, 0.3, 0.2), \n" + " vec4(0.7, 0.8, 0.9, 1.0)); \n" + "void main() { \n" + " gl_FragColor = colors[1]; \n" + "} \n", + { 0.7, 0.8, 0.9, 1.0 }, + DONT_CARE_Z, + FLAG_VERSION_1_20 + }, +#endif { "GLSL 1.20 const array constructor 1", NO_VERTEX_SHADER, |