Bug 1918529 - fix some subpixel misalignment issues with gfx.webrender.svg-filter...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / glsl / misc / struct-nesting-under-maximum.html
blob1707e57007a70309663a2ffd214e9f6c7b24138f
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>WebGL GLSL Conformance Tests</title>
12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
13 <link rel="stylesheet" href="../../../resources/glsl-feature-tests.css"/>
14 <script src="../../../js/js-test-pre.js"></script>
15 <script src="../../../js/webgl-test-utils.js"></script>
16 <script src="../../../js/glsl-conformance-test.js"></script>
17 </head>
18 <body>
19 <div id="description"></div>
20 <div id="console"></div>
21 <script id="vertexShader" type="text/something-not-javascript">
22 // shader with struct nesting less than maximum in WebGL spec should succeed
23 struct nesting4 {
24 vec4 vecfield;
27 struct nesting3 {
28 nesting4 field4;
31 struct nesting2 {
32 nesting3 field3;
35 struct nesting1 {
36 nesting2 field2;
39 uniform nesting1 uniform1;
40 void main()
42 gl_Position = uniform1.field2.field3.field4.vecfield;
44 </script>
45 <script>
46 "use strict";
47 GLSLConformanceTester.runTest();
48 var successfullyParsed = true;
49 </script>
50 </body>
51 </html>