summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/spv.bool.vert
blob: cc8a1857b9029ae63b4e0156b10da48fbdc4718f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 450

const bool condition = false;

uniform ubname {
    bool b;
} ubinst;

bool foo(bool b)
{
	return b != condition;
}

void main()
{
    gl_Position = foo(ubinst.b) ? vec4(0.0) : vec4(1.0);
}