summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/spv.bool.vert
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.bool.vert')
-rw-r--r--chromium/third_party/glslang/src/Test/spv.bool.vert17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.bool.vert b/chromium/third_party/glslang/src/Test/spv.bool.vert
new file mode 100644
index 00000000000..cc8a1857b90
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/spv.bool.vert
@@ -0,0 +1,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);
+}