tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

shader-with-function-recursion.frag.html (996B)


      1 <!--
      2 Copyright (c) 2019 The Khronos Group Inc.
      3 Use of this source code is governed by an MIT-style license that can be
      4 found in the LICENSE.txt file.
      5 -->
      6 
      7 <!DOCTYPE html>
      8 <html>
      9 <head>
     10 <meta charset="utf-8">
     11 <title>WebGL GLSL Conformance Tests</title>
     12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
     13 <link rel="stylesheet" href="../../../resources/glsl-feature-tests.css"/>
     14 <script src="../../../js/js-test-pre.js"></script>
     15 <script src="../../../js/webgl-test-utils.js"></script>
     16 <script src="../../../js/glsl-conformance-test.js"></script>
     17 </head>
     18 <body>
     19 <div id="description"></div>
     20 <div id="console"></div>
     21 <script id="fragmentShader" type="text/something-not-javascript">
     22 // shader with recursive function calls should fail
     23 void a();
     24 void b();
     25 void main()
     26 {
     27    a();
     28    gl_FragColor = vec4(0,0,0,0);
     29 }
     30 void a()
     31 {
     32    b();
     33 }
     34 void b()
     35 {
     36    a();
     37 }
     38 </script>
     39 <script>
     40 "use strict";
     41 GLSLConformanceTester.runTest();
     42 var successfullyParsed = true;
     43 </script>
     44 </body>
     45 </html>