OLD | NEW |
1 <!-- | 1 <!-- |
2 | 2 |
3 /* | 3 /* |
4 ** Copyright (c) 2012 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 |
11 ** permit persons to whom the Materials are furnished to do so, subject to | 11 ** permit persons to whom the Materials are furnished to do so, subject to |
12 ** the following conditions: | 12 ** the following conditions: |
13 ** | 13 ** |
14 ** The above copyright notice and this permission notice shall be included | 14 ** The above copyright notice and this permission notice shall be included |
(...skipping 15 matching lines...) Expand all Loading... |
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-video.js"></script> | 36 <script src="../resources/tex-image-and-sub-image-2d-with-video.js"></script> |
37 <script> | 37 <script> |
38 "use strict"; | 38 "use strict"; |
39 function testPrologue(gl) { | 39 function testPrologue(gl) { |
40 if (!gl.getExtension("OES_texture_float")) { | 40 var ext = null; |
41 testPassed("No OES_texture_float support -- this is legal"); | 41 |
| 42 if (!(ext = gl.getExtension("OES_texture_half_float"))) { |
| 43 testPassed("No OES_texture_half_float support -- this is legal"); |
42 return false; | 44 return false; |
43 } | 45 } |
44 | 46 |
45 testPassed("Successfully enabled OES_texture_float 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"); |
46 return true; | 51 return true; |
47 } | 52 } |
48 </script> | 53 </script> |
49 </head> | 54 </head> |
50 <body onload='generateTest("RGBA", "FLOAT", testPrologue)()'> | 55 <body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'> |
51 <canvas id="example" width="32" height="32"></canvas> | 56 <canvas id="example" width="32" height="32"></canvas> |
52 <div id="description"></div> | 57 <div id="description"></div> |
53 <div id="console"></div> | 58 <div id="console"></div> |
54 <video width="640" height="228" id="vid" controls> | 59 <video width="640" height="228" id="vid" controls> |
55 <source src="../resources/red-green.mp4" type='video/mp4; codecs="avc1.42E01E
, mp4a.40.2"' /> | 60 <source src="../resources/red-green.mp4" type='video/mp4; codecs="avc1.42E01E
, mp4a.40.2"' /> |
56 <source src="../resources/red-green.webmvp8.webm" type='video/webm; codecs="vp
8, vorbis"' /> | 61 <source src="../resources/red-green.webmvp8.webm" type='video/webm; codecs="vp
8, vorbis"' /> |
57 <source src="../resources/red-green.theora.ogv" type='video/ogg; codecs="theo
ra, vorbis"' /> | 62 <source src="../resources/red-green.theora.ogv" type='video/ogg; codecs="theo
ra, vorbis"' /> |
58 </video> | 63 </video> |
59 </body> | 64 </body> |
60 </html> | 65 </html> |
OLD | NEW |