summaryrefslogtreecommitdiff
path: root/chromium/third_party/glslang/src/Test/spv.voidFunction.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.voidFunction.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/spv.voidFunction.frag34
1 files changed, 34 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.voidFunction.frag b/chromium/third_party/glslang/src/Test/spv.voidFunction.frag
new file mode 100644
index 00000000000..c3bc45c2f7c
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/spv.voidFunction.frag
@@ -0,0 +1,34 @@
+#version 400
+
+in vec4 bigColor;
+in vec4 BaseColor;
+in float d;
+
+float bar = 2.0;
+
+void foo()
+{
+ bar++;
+
+ return;
+}
+
+void foo2()
+{
+ bar++;
+}
+
+void main()
+{
+ vec4 outColor = bigColor;
+
+ foo();
+
+ foo2();
+
+ outColor.x += bar;
+
+ gl_FragColor = outColor;
+
+ return;
+}