John Kessenich | e00e72d | 2015-12-08 20:48:49 -0700 | [diff] [blame] | 1 | #version 450 |
2 | |||||
3 | const bool condition = false; | ||||
4 | |||||
5 | uniform ubname { | ||||
6 | bool b; | ||||
7 | } ubinst; | ||||
8 | |||||
9 | bool foo(bool b) | ||||
10 | { | ||||
11 | return b != condition; | ||||
12 | } | ||||
13 | |||||
14 | void main() | ||||
15 | { | ||||
16 | gl_Position = foo(ubinst.b) ? vec4(0.0) : vec4(1.0); | ||||
17 | } |