summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/hlsl.if.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/hlsl.if.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/hlsl.if.frag28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/hlsl.if.frag b/chromium/third_party/glslang/src/Test/hlsl.if.frag
new file mode 100644
index 00000000000..1f0dde713e1
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/hlsl.if.frag
@@ -0,0 +1,28 @@
+float4 PixelShaderFunction(float4 input) : COLOR0
+{
+ if (input == input)
+ return input;
+
+ if (input == input)
+ return input;
+ else
+ return -input;
+
+ if (input == input)
+ ;
+
+ if (input == input)
+ ;
+ else
+ ;
+
+ [flatten] if (input == input) {
+ return input;
+ }
+
+ if (input == input) {
+ return input;
+ } else {
+ return -input;
+ }
+}