Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / attribs / gl-bindAttribLocation-aliasing.html
blobaae54715dc22e3293decd1ec877074a30967cdc4
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 <!DOCTYPE html>
7 <html>
8 <head>
9 <meta charset="utf-8">
10 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
11 <script src="../../js/js-test-pre.js"></script>
12 <script src="../../js/webgl-test-utils.js"></script>
13 <script src="../../js/tests/gl-bindattriblocation-aliasing.js"></script>
14 <title>bindAttribLocation with aliasing</title>
15 </head>
16 <body>
17 <div id="description"></div>
18 <div id="console"></div>
19 <canvas id="canvas" width="8" height="8" style="width: 8px; height: 8px;"></canvas>
20 <script id="vertexShader" type="text/something-not-javascript">
21 precision mediump float;
22 attribute $(type_1) a_1;
23 attribute $(type_2) a_2;
24 void main() {
25 gl_Position = $(gl_Position_1) + $(gl_Position_2);
27 </script>
28 <script>
29 "use strict";
30 description("This test verifies combinations of valid, active attribute types cannot be bound to the same location with bindAttribLocation.");
31 var wtu = WebGLTestUtils;
32 var canvas = document.getElementById("canvas");
33 var gl = wtu.create3DContext(canvas, {antialias: false});
34 var glFragmentShader = wtu.loadShader(gl, wtu.simpleColorFragmentShader, gl.FRAGMENT_SHADER);
36 runBindAttribLocationAliasingTest(wtu, gl, glFragmentShader, wtu.getScript('vertexShader'));
38 var successfullyParsed = true;
39 </script>
40 <script src="../../js/js-test-post.js"></script>
41 </body>
42 </html>