summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag
new file mode 100644
index 00000000000..769592bd599
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.dead-after-discard.frag
@@ -0,0 +1,10 @@
+#version 450
+
+layout(location =0 ) in float c;
+layout(location =0 ) out int o;
+
+void main() {
+ o = 1;
+ discard;
+ o = 3;
+}