Implement conservative depth layout qualifiers. Based partly on a submission.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27758 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
12
Test/420.frag
Normal file
12
Test/420.frag
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user