OLD | NEW |
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 Loading... |
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-image-data.js"></scrip
t> | 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 var ext = null; |
41 | 41 if (!(ext = gl.getExtension(extensionTypeName))) { |
42 if (!(ext = gl.getExtension("OES_texture_half_float"))) { | 42 testPassed("No " + extensionTypeName + " support -- this is legal"); |
43 testPassed("No OES_texture_half_float support -- this is legal"); | |
44 return false; | 43 return false; |
45 } | 44 } |
46 | |
47 // Required by the test harness. | 45 // Required by the test harness. |
48 gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES; | 46 gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES; |
49 | 47 testPassed("Successfully enabled " + extensionTypeName + " extension"); |
50 testPassed("Successfully enabled OES_texture_half_float extension"); | |
51 return true; | 48 return true; |
52 } | 49 } |
53 </script> | 50 </script> |
54 </head> | 51 </head> |
55 <body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'> | 52 <body onload='generateTest("OES_texture_half_float", "OES_texture_half_float_lin
ear", "HALF_FLOAT_OES", testPrologue)()'> |
56 <canvas id="texcanvas" width="1" height="2"></canvas> | |
57 <canvas id="example" width="1" height="2"></canvas> | |
58 <div id="description"></div> | 53 <div id="description"></div> |
| 54 <canvas id="canvas" style="width: 50px; height: 50px;"> </canvas> |
59 <div id="console"></div> | 55 <div id="console"></div> |
60 </body> | 56 </body> |
61 </html> | 57 </html> |
OLD | NEW |