Bug 1918529 - fix some subpixel misalignment issues with gfx.webrender.svg-filter...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / glsl / bugs / multiplication-assignment.html
blobcb157cdec6df09f417babe3f604093a8eb198410
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 -->
7 <!DOCTYPE html>
8 <html>
9 <head>
10 <meta charset="utf-8">
11 <title>Multiplication assignment operator compilation bug</title>
12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
13 <script src="../../../js/js-test-pre.js"></script>
14 <script src="../../../js/webgl-test-utils.js"></script>
15 <script src="../../../js/glsl-conformance-test.js"></script>
16 </head>
17 <body>
18 <script id="fshader" type="x-shader/x-fragment">
19 precision mediump float;
20 uniform mat3 rot;
21 float foo(vec3 bar) {
22 bar *= rot;
23 return 0.0;
26 void main(void){
27 gl_FragColor = vec4(foo(vec3(0)));
29 </script>
30 <div id="description"></div>
31 <div id="console"></div>
32 <script>
33 "use strict";
35 description();
36 debug("");
37 debug('Verify multiplication assignment operator compiles correctly - regression test for <a href="https://code.google.com/p/chromium/issues/detail?id=384847">Chromium bug 384847</a>');
39 GLSLConformanceTester.runTests([
41 fShaderId: 'fshader',
42 fShaderSuccess: true,
43 linkSuccess: true,
44 passMsg: "vec3 *= mat3 multiplication assignment operator",
46 ]);
48 </script>
49 </body>
50 </html>