tor-browser

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

shader-with-mis-matching-uniform-block.html (1475B)


      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>GLSL mis-matching uniform block</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="vshader-uniform-block-precision" type="text/something-not-javascript">#version 300 es
     22 uniform Block {
     23    mediump vec4 val;
     24 };
     25 
     26 void main()
     27 {
     28    gl_Position = val;
     29 }
     30 </script>
     31 <script id="fshader-uniform-block-precision" type="text/something-not-javascript">#version 300 es
     32 uniform Block {
     33    highp vec4 val;
     34 };
     35 
     36 out highp vec4 out_FragColor;
     37 void main()
     38 {
     39    out_FragColor = val;
     40 }
     41 </script>
     42 <script>
     43 "use strict";
     44 description("Shaders with precision mis-matching uniform blocks should fail");
     45 
     46 GLSLConformanceTester.runTests([
     47 {
     48  vShaderId: 'vshader-uniform-block-precision',
     49  vShaderSuccess: true,
     50  fShaderId: 'fshader-uniform-block-precision',
     51  fShaderSuccess: true,
     52  linkSuccess: false,
     53  passMsg: "Shaders with precision mis-matching uniform blocks should fail"
     54 },
     55 ], 2);
     56 var successfullyParsed = true;
     57 </script>
     58 </body>
     59 </html>