summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/420.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/420.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/420.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/420.frag b/chromium/third_party/glslang/src/Test/420.frag
new file mode 100644
index 00000000000..98ddf3d2e52
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/420.frag
@@ -0,0 +1,12 @@
+#version 420 core
+
+layout(depth_any) out float gl_FragDepth;
+layout(depth_greater) out float gl_FragDepth; // ERROR: redeclaration with different qualifier
+
+void main()
+{
+ gl_FragDepth = 0.3;
+}
+
+layout(depth_less) in float depth; // ERROR: depth_less only applies to gl_FragDepth
+layout(depth_any) out float gl_FragDepth; // ERROR, done after use