mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-11 04:43:36 +00:00
13 lines
351 B
GLSL
13 lines
351 B
GLSL
|
#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
|