From 63d4794e8ef11a0ea0832b578c8c37da805c51cb Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 24 May 2016 13:15:01 +0200 Subject: [PATCH] Add test case: Link 2 ESSL fragment shader units --- Test/baseResults/es-link1.frag.out | 48 ++++++++++++++++++++++++++++++ Test/es-link1.frag | 8 +++++ Test/es-link2.frag | 8 +++++ Test/runtests | 1 + 4 files changed, 65 insertions(+) create mode 100644 Test/baseResults/es-link1.frag.out create mode 100644 Test/es-link1.frag create mode 100644 Test/es-link2.frag diff --git a/Test/baseResults/es-link1.frag.out b/Test/baseResults/es-link1.frag.out new file mode 100644 index 00000000..c033e210 --- /dev/null +++ b/Test/baseResults/es-link1.frag.out @@ -0,0 +1,48 @@ +es-link1.frag +Shader version: 100 +0:? Sequence +0:5 Function Definition: main( (global void) +0:5 Function Parameters: +0:7 Sequence +0:7 move second child to first child (temp mediump 4-component vector of float) +0:7 'gl_FragColor' (fragColor mediump 4-component vector of float FragColor) +0:7 Function Call: calculateColor( (global mediump 4-component vector of float) +0:? Linker Objects + +es-link2.frag +Shader version: 100 +0:? Sequence +0:5 Function Definition: calculateColor( (global mediump 4-component vector of float) +0:5 Function Parameters: +0:7 Sequence +0:7 Branch: Return with expression +0:7 vector-scale (temp mediump 4-component vector of float) +0:7 'varyingColor' (smooth in mediump 4-component vector of float) +0:7 Constant: +0:7 0.500000 +0:? Linker Objects +0:? 'varyingColor' (smooth in mediump 4-component vector of float) + + +Linked fragment stage: + + +Shader version: 100 +0:? Sequence +0:5 Function Definition: main( (global void) +0:5 Function Parameters: +0:7 Sequence +0:7 move second child to first child (temp mediump 4-component vector of float) +0:7 'gl_FragColor' (fragColor mediump 4-component vector of float FragColor) +0:7 Function Call: calculateColor( (global mediump 4-component vector of float) +0:5 Function Definition: calculateColor( (global mediump 4-component vector of float) +0:5 Function Parameters: +0:7 Sequence +0:7 Branch: Return with expression +0:7 vector-scale (temp mediump 4-component vector of float) +0:7 'varyingColor' (smooth in mediump 4-component vector of float) +0:7 Constant: +0:7 0.500000 +0:? Linker Objects +0:? 'varyingColor' (smooth in mediump 4-component vector of float) + diff --git a/Test/es-link1.frag b/Test/es-link1.frag new file mode 100644 index 00000000..fe4da41d --- /dev/null +++ b/Test/es-link1.frag @@ -0,0 +1,8 @@ +#version 100 + +mediump vec4 calculateColor(); + +void main() +{ + gl_FragColor = calculateColor(); +} diff --git a/Test/es-link2.frag b/Test/es-link2.frag new file mode 100644 index 00000000..e7b5a477 --- /dev/null +++ b/Test/es-link2.frag @@ -0,0 +1,8 @@ +#version 100 + +varying mediump vec4 varyingColor; + +mediump vec4 calculateColor() +{ + return varyingColor * 0.5; +} diff --git a/Test/runtests b/Test/runtests index 6e6524ab..d54fb580 100755 --- a/Test/runtests +++ b/Test/runtests @@ -96,6 +96,7 @@ function runBulkTest { runBulkTest mains1.frag mains2.frag noMain1.geom noMain2.geom runBulkTest noMain.vert mains.frag runBulkTest link1.frag link2.frag link3.frag +runBulkTest es-link1.frag es-link2.frag runBulkTest recurse1.vert recurse1.frag recurse2.frag runBulkTest 300link.frag runBulkTest 300link2.frag