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.
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>
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;
25 gl_Position = $(gl_Position_1) + $(gl_Position_2);
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;
40 <script src=
"../../js/js-test-post.js"></script>