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>GLSL varying struct with inline definition test
</title>
12 <link rel=
"stylesheet" href=
"../../resources/js-test-style.css"/>
13 <script src=
"../../js/js-test-pre.js"></script>
14 <script src=
"../../js/webgl-test-utils.js"></script>
15 <script src=
"../../js/glsl-conformance-test.js"></script>
18 <div id=
"description"></div>
19 <div id=
"console"></div>
20 <script id=
"vshader" type=
"x-shader/x-vertex">#version
300 es
30 gl_Position = vPosition;
33 <script id=
"fshader" type=
"x-shader/x-fragment">#version
300 es
34 precision highp float;
40 out vec4 my_FragColor;
43 my_FragColor = vec4(
1 - v_s.field, v_s.field,
0,
1);
46 <script type=
"application/javascript">
50 GLSLConformanceTester.runRenderTests([
57 passMsg: 'Vertex output struct / fragment input struct with an inline definition should compile and link'