Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html

Issue 14860016: Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 2
3 /* 3 /*
4 ** Copyright (c) 2013 The Khronos Group Inc. 4 ** Copyright (c) 2013 The Khronos Group Inc.
5 ** 5 **
6 ** Permission is hereby granted, free of charge, to any person obtaining a 6 ** Permission is hereby granted, free of charge, to any person obtaining a
7 ** copy of this software and/or associated documentation files (the 7 ** copy of this software and/or associated documentation files (the
8 ** "Materials"), to deal in the Materials without restriction, including 8 ** "Materials"), to deal in the Materials without restriction, including
9 ** without limitation the rights to use, copy, modify, merge, publish, 9 ** without limitation the rights to use, copy, modify, merge, publish,
10 ** distribute, sublicense, and/or sell copies of the Materials, and to 10 ** distribute, sublicense, and/or sell copies of the Materials, and to
(...skipping 15 matching lines...) Expand all
26 --> 26 -->
27 27
28 <!DOCTYPE html> 28 <!DOCTYPE html>
29 <html> 29 <html>
30 <head> 30 <head>
31 <meta charset="utf-8"> 31 <meta charset="utf-8">
32 <link rel="stylesheet" href="../../resources/js-test-style.css"/> 32 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
33 <script src="../../resources/js-test-pre.js"></script> 33 <script src="../../resources/js-test-pre.js"></script>
34 <script src="../resources/webgl-test.js"></script> 34 <script src="../resources/webgl-test.js"></script>
35 <script src="../resources/webgl-test-utils.js"></script> 35 <script src="../resources/webgl-test-utils.js"></script>
36 <script src="../resources/tex-image-and-sub-image-2d-with-canvas.js"></script> 36 <script src="../resources/oes-texture-float-and-half-float-linear.js"></script>
37 <script> 37 <script>
38 "use strict"; 38 "use strict";
39 function testPrologue(gl) { 39 function testPrologue(gl, extensionTypeName) {
40 var ext = null; 40 if (!gl.getExtension(extensionTypeName)) {
41 41 testPassed("No " + extensionTypeName + " support -- this is legal");
42 if (!(ext = gl.getExtension("OES_texture_half_float"))) {
43 testPassed("No OES_texture_half_float support -- this is legal");
44 return false; 42 return false;
45 } 43 }
46 44 testPassed("Successfully enabled " + extensionTypeName + " extension");
47 // Required by the test harness.
48 gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES;
49
50 testPassed("Successfully enabled OES_texture_half_float extension");
51 return true; 45 return true;
52 } 46 }
53 </script> 47 </script>
54 </head> 48 </head>
55 <body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'> 49 <body onload='generateTest("OES_texture_float", "OES_texture_float_linear", "FLO AT", testPrologue)()'>
56 <canvas id="example" width="32" height="32"></canvas>
57 <div id="description"></div> 50 <div id="description"></div>
51 <canvas id="canvas" style="width: 50px; height: 50px;"> </canvas>
58 <div id="console"></div> 52 <div id="console"></div>
59 </body> 53 </body>
60 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698