multisample-corruption-stress.html (1044B)
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 <title>WebGL Multisample Renderbuffer Corruption Test</title> 12 <link rel="stylesheet" href="../resources/js-test-style.css"/> 13 <script src="../js/js-test-pre.js"></script> 14 <script src="../jss/webgl-test-utils.js"> </script> 15 <script src="../js/tests/iterable-test.js"> </script> 16 </head> 17 <body> 18 <canvas id="example" width="2048" height="2048" style="width: 128px; height: 128px;"></canvas> 19 <div id="description"></div> 20 <div id="console"></div> 21 <script> 22 "use strict"; 23 24 description(document.title); 25 26 var wtu = WebGLTestUtils; 27 28 var gl = wtu.create3DContext("example", {antialias: true, preserveDrawingBuffer: true}); 29 var test = IterableTest.createMultisampleCorruptionTest(gl); 30 var iterations = parseInt(wtu.getUrlOptions().iterations, 10) || 100; 31 IterableTest.run(test, iterations); 32 33 var successfullyParsed = true; 34 </script> 35 36 </body> 37 </html>