Backed out changeset 7272b7396c78 (bug 1932758) for causing fenix debug failures...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance2 / glsl3 / shader-with-mis-matching-uniform-block.html
blob2bf41a38251a433a49d601bc88b10e4ef44227e7
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>GLSL mis-matching uniform block</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="vshader-uniform-block-precision" type="text/something-not-javascript">#version 300 es
22 uniform Block {
23 mediump vec4 val;
26 void main()
28 gl_Position = val;
30 </script>
31 <script id="fshader-uniform-block-precision" type="text/something-not-javascript">#version 300 es
32 uniform Block {
33 highp vec4 val;
36 out highp vec4 out_FragColor;
37 void main()
39 out_FragColor = val;
41 </script>
42 <script>
43 "use strict";
44 description("Shaders with precision mis-matching uniform blocks should fail");
46 GLSLConformanceTester.runTests([
48 vShaderId: 'vshader-uniform-block-precision',
49 vShaderSuccess: true,
50 fShaderId: 'fshader-uniform-block-precision',
51 fShaderSuccess: true,
52 linkSuccess: false,
53 passMsg: "Shaders with precision mis-matching uniform blocks should fail"
55 ], 2);
56 var successfullyParsed = true;
57 </script>
58 </body>
59 </html>