aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/condition-05.vert
blob: 1b4293738d8964020580dea933285cbabdf81f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// [config]
// expect_result: pass
// glsl_version: 1.20
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]

#version 120
/* PASS */

uniform bool a;
uniform int b;

void main()
{
  float x;

  x = (a) ? 2.0 : b;
  gl_Position = vec4(x);
}