Skip to content

Commit

Permalink
Merge pull request #1096 from zhenyao/tex
Browse files Browse the repository at this point in the history
Add a texture image related tests generator
  • Loading branch information
toji committed Jul 6, 2015
2 parents 2530327 + f9fb58d commit bef0120
Show file tree
Hide file tree
Showing 206 changed files with 11,469 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/tests/conformance2/textures/00_test_list.txt
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
misc/00_test_list.txt
canvas/00_test_list.txt
image/00_test_list.txt
image_data/00_test_list.txt
svg_image/00_test_list.txt
video/00_test_list.txt
webgl_canvas/00_test_list.txt
33 changes: 33 additions & 0 deletions sdk/tests/conformance2/textures/canvas/00_test_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
tex-image-and-sub-image-2d-with-canvas-r8-red-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-r16f-red-half_float.html
tex-image-and-sub-image-2d-with-canvas-r16f-red-float.html
tex-image-and-sub-image-2d-with-canvas-r32f-red-float.html
tex-image-and-sub-image-2d-with-canvas-r8ui-red_integer-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rg8-rg-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rg16f-rg-half_float.html
tex-image-and-sub-image-2d-with-canvas-rg16f-rg-float.html
tex-image-and-sub-image-2d-with-canvas-rg32f-rg-float.html
tex-image-and-sub-image-2d-with-canvas-rg8ui-rg_integer-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgb8-rgb-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-srgb8-rgb-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgb565-rgb-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgb565-rgb-unsigned_short_5_6_5.html
tex-image-and-sub-image-2d-with-canvas-r11f_g11f_b10f-rgb-unsigned_int_10f_11f_11f_rev.html
tex-image-and-sub-image-2d-with-canvas-r11f_g11f_b10f-rgb-half_float.html
tex-image-and-sub-image-2d-with-canvas-r11f_g11f_b10f-rgb-float.html
tex-image-and-sub-image-2d-with-canvas-rrg9e5-rgb-half_float.html
tex-image-and-sub-image-2d-with-canvas-rrg9e5-rgb-float.html
tex-image-and-sub-image-2d-with-canvas-rgb16f-rgb-half_float.html
tex-image-and-sub-image-2d-with-canvas-rgb16f-rgb-float.html
tex-image-and-sub-image-2d-with-canvas-rgb32f-rgb-float.html
tex-image-and-sub-image-2d-with-canvas-rgb8ui-rgb_integer-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgba8-rgba-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-srgb8_alpha8-rgba-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgb5_a1-rgba-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgb5_a1-rgba-unsigned_short_5_5_5_1.html
tex-image-and-sub-image-2d-with-canvas-rgba4444-rgba-unsigned_byte.html
tex-image-and-sub-image-2d-with-canvas-rgba4444-rgba-unsigned_short_4_4_4_4.html
tex-image-and-sub-image-2d-with-canvas-rgba16f-rgba-half_float.html
tex-image-and-sub-image-2d-with-canvas-rgba16f-rgba-float.html
tex-image-and-sub-image-2d-with-canvas-rgba32f-rgba-float.html
tex-image-and-sub-image-2d-with-canvas-rgba8ui-rgba_integer-unsigned_byte.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R11F_G11F_B10F", "RGB", "FLOAT", testPrologue)();
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R11F_G11F_B10F", "RGB", "HALF_FLOAT", testPrologue)();
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R11F_G11F_B10F", "RGB", "UNSIGNED_INT_10F_11F_11F_REV", testPrologue)();
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R16F", "RED", "FLOAT", testPrologue)();
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R16F", "RED", "HALF_FLOAT", testPrologue)();
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-->

<!--
This file is auto-generated from py/tex_image_test_generator.py
DO NOT EDIT!
-->


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../resources/js-test-style.css"/>
<script src="../../../js/js-test-pre.js"></script>
<script src="../../../js/webgl-test-utils.js"></script>
<script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script>
</head>
<body>
<canvas id="example" width="32" height="32"></canvas>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
function testPrologue(gl) {
return true;
}

generateTest("R32F", "RED", "FLOAT", testPrologue)();
</script>
</body>
</html>
Loading

0 comments on commit bef0120

Please sign in to comment.