summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag
new file mode 100644
index 00000000000..7d9271c9cf3
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.discard.frag
@@ -0,0 +1,14 @@
+void foo(float f)
+{
+ if (f < 1.0)
+ discard;
+}
+
+void PixelShaderFunction(float4 input) : COLOR0
+{
+ foo(input.z);
+ if (input.x)
+ discard;
+ float f = input.x;
+ discard;
+}