OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. |
| 5 --> |
| 6 <!DOCTYPE html> |
| 7 <html> |
| 8 <head> |
| 9 <meta charset="utf-8"> |
| 10 <title>WebGL GLSL Conformance Tests</title> |
| 11 <link rel="stylesheet" href="../../../resources/js-test-style.css"/> |
| 12 <script src="../../../resources/js-test-pre.js"></script> |
| 13 <script src="../../resources/webgl-test-utils.js"></script> |
| 14 <script src="../../resources/glsl-conformance-test.js"></script> |
| 15 </head> |
| 16 <body> |
| 17 <div id="description"></div> |
| 18 <div id="console"></div> |
| 19 <script id="fragmentShader" type="text/something-not-javascript"> |
| 20 // fragment shader with conditional scoping should succeed |
| 21 precision mediump float; |
| 22 void main() { |
| 23 int k = 3; |
| 24 |
| 25 if (true) int g = k = 4; |
| 26 else int q = k = 5; |
| 27 |
| 28 g = 3; |
| 29 q = 4; |
| 30 |
| 31 if (true) int g = 4; |
| 32 else int k = 10; |
| 33 |
| 34 if (true) { int g = 10; } |
| 35 else { int k = 20; } |
| 36 |
| 37 gl_FragColor = vec4(1.); |
| 38 } |
| 39 </script> |
| 40 <script> |
| 41 GLSLConformanceTester.runTest(); |
| 42 successfullyParsed = true; |
| 43 </script> |
| 44 </body> |
| 45 </html> |
| 46 |
| 47 |
OLD | NEW |