tor-browser

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

sampler-operand.html (1346B)


      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 - sampler operands</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 
     22 <script>
     23 // ESSL(1.00, 3.00, 3.10) section 4.1.7
     24 // Except for array indexing, structure field selection, and
     25 // parentheses, samplers are not allowed to be operands in expressions.
     26 </script>
     27 
     28 <script id="samplerAdding" type="x-shader/x-fragment">
     29 // This covers an ANGLE bug.
     30 // See https://bugs.chromium.org/p/angleproject/issues/detail?id=2028.
     31 uniform sampler2D s1;
     32 uniform sampler2D s2;
     33 void main() {
     34    s1 + s2;
     35 }
     36 </script>
     37 
     38 <script>
     39 "use strict";
     40 GLSLConformanceTester.runTests([
     41    { fShaderId: 'samplerAdding',
     42      fShaderSuccess: false,
     43      linkSuccess: false,
     44      passMsg: 'Adding on samplers should fail'
     45    },
     46 ]);
     47 
     48 var successfullyParsed = true;
     49 </script>
     50 </body>
     51 </html>