summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/420.frag
blob: 98ddf3d2e52933e38e0547f5272e105b63fe15af (plain)
1
2
3
4
5
6
7
8
9
10
11
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