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.
10 <meta charset=
"utf-8">
11 <title>WebGL2 Uniform Block Layout Behavior Testing
</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>
19 <div id=
"description"></div>
20 <div id=
"console"></div>
21 <script id=
"ES3VertexShader" type=
"x-shader/x-vertex">#version
300 es
22 layout(std140) uniform Block
28 gl_Position = vec4(val);
31 <script id=
"ES3FragmentShader" type=
"x-shader/x-fragment">#version
300 es
36 out highp vec4 my_FragColor;
38 my_FragColor = vec4(val);
41 <script type=
"application/javascript">
44 GLSLConformanceTester.runTests([
46 vShaderId:
"ES3VertexShader",
48 fShaderId:
"ES3FragmentShader",
51 passMsg:
"A uniform block's layout defaults to std140 if not specified."
54 var successfullyParsed = true;