Bug 1918529 - fix some subpixel misalignment issues with gfx.webrender.svg-filter...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / glsl / literals / float_literal.vert.html
blob86bbf8a8830635a3b381e3000c9d1f834d885e4e
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">
23 // parsing floating point literals should succeed
24 void main() {
25 float zero = 0.0;
26 float fractionalConstant = 1.0;
27 float fractionalConstantExponent = 1.0e1;
28 float fractionalConstantPosExponent = 1.0e+1;
29 float fractionalConstantNegExponent = 1.0e-1;
30 float digitSequenceExponent = 1e1;
31 float digitSequencePosExponent = 1e+1;
32 float digitSequenceNegExponent = 1e-1;
33 float pointDigit = .1;
34 float digitPoint= 1.;
35 float upperCaseExponent = 1.0E1;
36 highp float posInRange = 4611686018427387903.; // 2^62 - 1
37 highp float posOutRange = 4611686018427387905.; // 2^62 + 1
38 highp float posHuge = 1E100;
39 highp float negInRange = -4611686018427387903.;
40 highp float negOutRange = -4611686018427387905.;
41 highp float negHuge = -1E100;
42 gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
44 </script>
45 <script>
46 "use strict";
47 GLSLConformanceTester.runTest();
48 var successfullyParsed = true;
49 </script>
50 </body>
51 </html>