summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.voidFunction.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.voidFunction.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.voidFunction.frag34
1 files changed, 34 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.voidFunction.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.voidFunction.frag
new file mode 100644
index 00000000000..228ea1ffdd7
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/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;
+}