tor-browser

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

oes-texture-half-float-with-image-data.html (1236B)


      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 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
     12 <script src="../../js/js-test-pre.js"></script>
     13 <script src="../../js/webgl-test-utils.js"></script>
     14 <script src="../../js/tests/tex-image-and-sub-image-utils.js"></script>
     15 <script src="../../js/tests/tex-image-and-sub-image-2d-with-image-data.js"></script>
     16 <script>
     17 "use strict";
     18 function testPrologue(gl) {
     19    var ext = null;
     20 
     21    if (!(ext = gl.getExtension("OES_texture_half_float"))) {
     22        testPassed("No OES_texture_half_float support -- this is legal");
     23        return false;
     24    }
     25 
     26    // Required by the test harness.
     27    gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES;
     28 
     29    testPassed("Successfully enabled OES_texture_half_float extension");
     30    return true;
     31 }
     32 </script>
     33 </head>
     34 <body onload='generateTest("RGBA", "RGBA", "HALF_FLOAT_OES", testPrologue, "../../resources/")()'>
     35 <canvas id="texcanvas" width="2" height="2"></canvas>
     36 <canvas id="example" width="2" height="2"></canvas>
     37 <div id="description"></div>
     38 <div id="console"></div>
     39 </body>
     40 </html>